Skip to main content
Glama

Function Action

importio_action_function
Destructive

Run a JavaScript function inside an importio_play_action pipeline; fields carries the upstream FunctionAction configuration. Advanced action: use it only when you know the upstream function action shape. Do not use it as the first fallback for form interaction failures; if the engine reports FunctionActionError or cannot read toString, stop and report the upstream action incompatibility.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fields": "<fields>"
    },
    "name": "importio_action_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoOptional second playAction argument forwarded after the envelope; omit it unless the upstream action expects one.
fieldsYesAction-specific configuration forwarded into the action envelope; each tool description states what it should contain where that contract is documented, otherwise it names the upstream configuration fields carries.
optionalNoFlag forwarded into the action envelope; omit it unless the upstream action documents it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / fields / description
      Added value: +"Action-specific configuration forwarded into the action envelope; each tool description states what it should contain where that contract is documented, otherwise it names the upstream configuration fields carries."
    • addedInput schema / properties / input / description
      Added value: +"Optional second playAction argument forwarded after the envelope; omit it unless the upstream action expects one."
    • addedInput schema / properties / optional / description
      Added value: +"Flag forwarded into the action envelope; omit it unless the upstream action documents it."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and non-idempotent, so the safety profile is covered structurally. The description adds genuinely new behavioral context: it is an advanced/low-level action, it has known failure modes (FunctionActionError, toString unreadable), and the correct response to those failures is to stop and report rather than retry. It does not state what side effects the injected function may cause, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, followed by the advanced-usage caveat and the failure-handling instruction in a logical order. Three sentences with no filler, though 'upstream' is repeated and the phrasing of the fields clause is slightly convoluted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent action with a nested object parameter and no output schema, the description covers when to use it and how to react to failures, which is the important part. It does not describe what the action returns or what a valid FunctionAction configuration looks like, leaving the agent to infer the contract from the upstream action.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all three parameters, including the optional 'input' and 'optional' envelope fields. The description only echoes that 'fields' holds the upstream FunctionAction configuration, which the schema text already conveys; no additional format, shape, or example is added. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Run a JavaScript function inside an importio_play_action pipeline') and clarifies that 'fields' carries the upstream FunctionAction configuration, which separates it from generic actions like importio_action_click or importio_action_input_change. It does not explicitly name a sibling as the alternative, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit eligibility condition ('use it only when you know the upstream function action shape') and an explicit exclusion ('Do not use it as the first fallback for form interaction failures'), plus a stop condition for FunctionActionError or unreadable toString. What it lacks is a named alternative tool to route to instead, so the when-not guidance is strong but not fully actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources