Skip to main content
Glama

Preview an action

preview_action
Read-only

Answers what take_action would send to a source's official API, such as the Simpro API or the Xero Accounting API, for an action discover_actions lists, and sends nothing: a summary and the exact payload. Refused for the same reasons take_action would be; a missing or wrong argument answers with the action's arguments. For a destructive action it answers a confirmation, bound to these arguments, that take_action needs within 5 minutes. Call it when the person should see the write before it is sent.

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>"
    },
    "name": "preview_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.
connection_idNoThe source it writes to. Omit when the company holds one.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover read-only/open-world/no-idempotency; the description adds substantial behavior on top: nothing is sent, refusals mirror take_action's, a bad argument echoes the action's arguments back, and destructive actions return a confirmation bound to these arguments with a 5-minute TTL. This is exactly the mutation-adjacent context the annotations cannot convey.

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-loads the core claim and every sentence carries information. The opening sentence is a long chain with a doubled colon ("sends nothing: a summary and the exact payload") that takes a second pass to parse.

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?

With no output schema, the description does tell the agent what comes back: a summary, the exact payload, and a TTL-bound confirmation for destructive actions. It does not characterize what the summary contains or how large the payload is, but coverage is adequate for this tool's complexity.

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 coverage is 100%, so name, arguments, and connection_id are already documented in the schema, and the description largely restates them (connection_id omitted when the company holds one). What it adds is that an omitted or wrong argument is answered with the action's own arguments, which is behavioral rather than genuine parameter semantics.

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?

States a precise verb and resource: it answers what take_action would send to a source's official API (Simpro, Xero) for an action discover_actions lists, and explicitly sends nothing. Naming both siblings makes it distinguishable from take_action and discover_actions without opening another schema.

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 an explicit trigger condition: "Call it when the person should see the write before it is sent," and points at take_action and discover_actions as the surrounding flow. It stops short of stating the converse (skip the preview and call take_action when no confirmation is needed), leaving that to inference.

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