Skip to main content

Function Settings Reference

Fields available under Resources → Functions. Labels are as they appear in the app. For concepts, see Functions.

Common fields​

FieldRequiredDescription
Function NameYesThe tool name the model sees. For Local Python it must match the name of a function defined in the code. For skills: lowercase letters, digits and single hyphens, at most 64 characters.
DescriptionYesWhat the tool does and when to use it. The model reads this to decide whether to call the tool. Skills: at most 1,024 characters.
Function TypeYesLocal (Python), MCP Stdio (Subprocess), MCP HTTP (SSE) or Skill (SKILL.md). Existing execution environment tools show their own type.
Approval OverrideNoInherit from risk appetite (default), Always require (pin) or Never require (pin). Team and agent pins take precedence over a function pin. A never-require pin can't skip approval for a critical-risk call unless the risk appetite bypasses all approvals.
Tags (comma-separated)NoLabels for filtering and search. Shown as removable chips under Current Tags.

The function's folder in the library tree is its path. New functions are created at /; drag a function onto a folder to move it.

Authority​

On the create form and the Definition tab.

ControlDescription
Link IntegrationOpens Link Integrations to Function to attach one or more integrations. Linked integrations appear as chips; click one to open it, or remove it with its delete icon.
Allowed OperationsOperations this function may call through the broker, picked from those the linked integrations declare. Empty means the function can't make brokered (credentialed) calls. A granted operation that has since been removed from the integration is shown with a warning icon; calls to it are refused.
InternalThe function authenticates to the FYAI platform itself as the caller (it calls FYAI's own API). The caller's identity is passed in jwt_claims, and internal MCP servers receive it as FYAI_API_TOKEN. Doesn't widen access to third-party integrations.

Local (Python)​

FieldRequiredDescription
CodeYesPython source. Edited on the Definition tab in the Source editor, which shows the cursor line and column and whether there is an unsaved edit. Save saves; Save and run saves then runs the console.

The parameter schema is derived from the function signature. See Creating Custom Functions.

Contract chips under the editor: parameter count, secret-shaped parameters, egress (brokered, direct egress, MCP, no network, unreadable), env fallback, and declared or undeclared operations.

MCP Stdio (Subprocess)​

FieldRequiredDescription
Command (e.g. npx)YesExecutable that starts the server, such as npx, uvx or python.
Arguments (JSON array e.g. ["-y", "pkg"])NoArguments as a JSON array. On the Definition tab they're edited one per line.
Server PlacementNoWorkspace — needs the session filesystem (default) or Stateless — wraps a remote API. Labelled Placement on the Definition tab.
.npmrc ContentNoCustom .npmrc for npm registry routing. Supports ${ENV_VAR} substitution.
EnvironmentNoDefinition tab only. Key/value environment variables for the subprocess. A value of integration:<id>:<secret name> is replaced with that secret from a linked integration.

MCP HTTP (SSE)​

FieldRequiredDescription
URLYesThe server endpoint. Labelled Endpoint on the Definition tab.
Headers (JSON object)NoHTTP headers. {{SECRET_NAME}} placeholders are filled from linked integration secrets. Edited as key/value rows on the Definition tab.

MCP tool controls​

On the Definition tab of either MCP type, in Discovered tools:

ControlDescription
OnExpose or hide the tool. Hidden tools are removed from the model's tool list.
Kindread or write, guessed from the tool name.
ApprovalPer-tool inherit, never require or always require.
Hide write toolsHides every write-kind tool.
RediscoverStarts the server as one of your agents and refreshes the tool list.

The Health card offers Retry start and Show full log.

Skill (SKILL.md)​

FieldRequiredDescription
SKILL.mdYesThe skill body in Markdown, injected when the model activates the skill.

Execution environment tool​

FieldRequiredDescription
Execution EnvironmentYesThe execution environment whose tools this function exposes.

Header controls​

ControlDescription
Killswitch (Active / Killed)Killing the function prevents it being built or run anywhere until reactivated, and locks its configuration read-only.

Actions​

ActionDescription
CreateSave a new function. Back returns to the type chooser.
UpdateSave changes. Only changed fields are sent.
CancelDiscard unsaved edits.
DeleteDelete after confirmation.
Copy FunctionCreate a copy under a New Function Name, including linked integrations and allowed operations.
Create Data SourceOpen Create Data Source from Function: Name, Description (optional), Attach integrations, Refresh mode (On demand or Scheduled (interval)), Interval (seconds) (minimum 60, default 900), Static arguments (JSON, optional). Create & Test creates it and runs a test fetch; Test again re-runs it.
Publish TemplatePlatform administrators only. Publish the current values as a platform template.
Import SkillTree header button. Upload a .zip, .tar.gz, .tgz or .tar archive, or give a public Git repository URL.

Platform-managed functions (installed from a platform template) are read-only for everyone except platform administrators.

Test console​

ControlDescription
Run as agentThe agent whose identity, integrations and execution environment the run uses.
ToolShown when the function exposes more than one tool.
ReloadRebuild the function's tools.
I supply the arguments / Let the agent decideDirect call with arguments, or a prompt to an agent that has only this function.
raw JSONEnter arguments as a JSON object instead of the form.
RunRun the test.
Result tabsOutput, Trace, Logs, Request.
Recent runsEarlier runs from the console; click one to reload its arguments.

See Testing Functions.