Skip to main content
Glama

Take an action

take_action
DestructiveIdempotent

Sends an action discover_actions lists to its source's official API, such as the Simpro API or the Xero Accounting API; discover_actions names each action's source. Send a new idempotency_key for each write: the same key sent again never writes twice, and answers what the first call did, looking for the record at the source where that was unknown. A key sent again with a different action, source or arguments is refused. Refused unless this credential's person holds the action's level on its area of the source: "write", or "delete" for a destructive action. A destructive action needs the confirmation preview_action answered for the same arguments. A missing or wrong argument answers with the action's arguments.

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": {
      "name": "<name>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "take_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe action's name, as discover_actions lists it.
argumentsNoThe action's own arguments, as discover_actions with action named answers them.
confirmationNoFor a destructive action: the confirmation preview_action answered for these arguments.
connection_idNoThe source it writes to. Omit when the company holds one.
idempotency_keyYesA new value for each write, such as a UUID. Send the same value to retry it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / arguments / properties
      Added value: +{}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive/idempotent/open-world, but the description adds substantial depth beyond them: exact idempotency semantics (same key never writes twice, replays the first call's answer including source lookup), rejection when a key is reused with different action/source/arguments, the per-area permission model, and that missing or wrong arguments return the action's argument spec. This is the kind of consequence and failure-mode disclosure the annotations cannot carry.

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?

Front-loaded with the core action, then layered as idempotency, authorization, and error behavior. Sentences are dense but each carries distinct operational information; minor cost is awkward phrasing such as "answers what the first call did, looking for the record at the source where that was unknown."

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

Completeness4/5

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

For a mutation tool with no output schema, it covers the essentials an agent needs: prerequisites, idempotency, permission gate, confirmation, and the error response shape. The one gap is that it never says what a successful write returns (record, id, status), leaving the agent to infer the success payload.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description goes further by explaining how idempotency_key must be used (new per write, reused to retry) and that confirmation must match the preview for the same arguments. It adds little on connection_id or the arguments object beyond what the schema states.

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

Purpose5/5

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

Opens with a specific verb+resource pair: sends an action (enumerated by discover_actions) to its source's official API, naming Simpro and Xero as example sources. It clearly distinguishes itself from the read-only sibling and from preview_action, which is referenced as the required prior step for destructive actions.

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?

Gives concrete preconditions: the action name must come from discover_actions, a fresh idempotency_key per write, a required permission level ("write", or "delete" for destructive), and preview_action confirmation for destructive actions. It does not explicitly contrast itself with call_write_operation or state when to prefer those siblings, which keeps it short of a 5.

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