Skip to main content
Glama

Execute prepared operation

perps_execute_operation
Destructive

State-changing. Executes a previously previewed action using its confirmationToken from the matching perps_prepare_* tool. Tokens are single-use and expire (~90s). Pass the preview's summary too: it is what the user reads when asked to confirm this call. After executing, re-verify with perps_list_positions / perps_get_order.

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": {
      "confirmationToken": "<confirmationToken>",
      "summary": "<summary>"
    },
    "name": "perps_execute_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryYesThe summary field of the same preview, copied unchanged. The call is refused with confirmation_summary_mismatch when it describes another operation.
confirmationTokenYesSingle-use token returned by a perps_prepare_* tool (expires ~90s).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the bar is lower, yet the description still adds real context: the mutation is gated behind a single-use expiring token, the call can be refused with confirmation_summary_mismatch if the summary does not match, and the user reads the summary at confirmation time. It also prescribes post-execution re-verification, which is exactly the behavior an agent needs for a non-idempotent write.

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

Conciseness5/5

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

Front-loads the risk signal ('State-changing.') before any mechanics, then packs token lifetime, summary rationale, and follow-up verification into short declarative sentences. No sentence is filler.

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 destructive two-parameter tool with no output schema, it covers preconditions, failure mode, and post-conditions well. The only gap is what the call itself returns (e.g., an operation id or status) — the 're-verify with perps_list_positions' line partially compensates but does not say what to look for.

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 the schema already documents both parameters' syntax and the mismatch failure mode, making 3 the baseline. The description adds one piece of meaning not in the schema: the summary is the text the user actually reads when asked to confirm this call, which explains why it must be copied unchanged rather than paraphrased.

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 specific verb and resource ('executes a previously previewed action') and immediately scopes the input to a confirmationToken 'from the matching perps_prepare_* tool'. That naming pattern cleanly separates it from the read/query siblings like perps_list_positions and perps_get_order.

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

Usage Guidelines5/5

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

Explicitly sequences the tool: it must follow a perps_prepare_* preview whose token it consumes, and it names the follow-up verification tools (perps_list_positions / perps_get_order). It also states the constraint that makes misuse fail, namely single-use tokens expiring in ~90s.

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