Skip to main content
Glama

Cancel a sandbox goal

cancel_test_goal

Cancels a sandbox goal via POST /goals/:goalId/cancel, as the user's server would when a customer cancels: collected chunks (and a refundable deposit) are refunded less Trickl's fee, in the ledger only, and goal.cancelled 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": {
      "goalId": "<goalId>"
    },
    "name": "cancel_test_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalIdYesgoalId from create_test_goal

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only tell the agent readOnlyHint=false, so the description carries the real burden and delivers: chunks plus deposit are refunded less Trickl's fee, changes hit the ledger only (no real money movement), and a goal.cancelled event is emitted. What's missing is idempotency/error behavior (what happens on a second cancel, or on an invalid/foreign goalId).

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?

A single front-loaded sentence with the verb first and cost-free details in parentheses; nothing is filler. Slightly dense with the nested parenthetical about the refundable deposit, but it stays one readable clause chain.

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 one-parameter mutation with no output schema, the description covers side effects, money semantics, and the emitted event — the things an agent most needs. The only gap is return shape (does it return the cancelled goal object, or just an ack?), which matters somewhat since no output schema exists.

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% and the single goalId parameter is already documented as coming from create_test_goal, so the description cannot add much. It adds no syntax, format, or constraint detail beyond the schema — the baseline 3 for a fully-covered schema applies.

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 ("Cancels a sandbox goal") plus the exact endpoint POST /goals/:goalId/cancel, so the agent knows precisely what action fires. The 'sandbox' qualifier separates it from real production cancellation, and the endpoint distinguishes it from siblings like simulate_goal_event and create_test_goal.

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

Usage Guidelines3/5

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

The phrase "as the user's server would when a customer cancels" implies the test scenario (exercising your cancellation webhook/refund path), which is useful framing. However, it never names an alternative or exclusion — notably it doesn't say when to prefer simulate_goal_event over this or whether this can be called on an already-cancelled goal. Usage is implied, not stated.

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.