Skip to main content
Glama

Transportli Car Shipping

Cancel a shipping request

cancel_request
DestructiveIdempotent

Cancels a request that has not been booked. Only call it when the customer asked to cancel. Needs an API key.

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": {
      "request_id": "<request_id>"
    },
    "name": "cancel_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=false, so the bar is lower. The description still adds two facts outside the annotations: the precondition that the request must be unbooked, and that an API key is required. It does not say whether a cancellation is reversible or how a rejected booked request is reported.

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?

Three short sentences with no filler; the identity of the operation and its key precondition are front-loaded before the usage restriction and the auth note.

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 single-parameter mutation with no output schema and rich annotations, the description covers purpose, precondition, usage trigger and auth. The remaining omissions — reversibility and the response on a rejected request — are minor for a tool this simple.

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?

The schema provides no description for request_id (0% coverage) and the description never mentions the parameter, so it does not compensate for the gap. The name is self-explanatory and the pattern field conveys the accepted format, which keeps this at minimum-viable rather than poor.

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?

States a specific verb and resource ('Cancels a request') and adds a qualifying state ('that has not been booked'), which lets an agent distinguish it from get_request or create_shipping_request. It stops short of naming any sibling explicitly, so it lands just below the top of the scale.

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 when-to-use condition ('Only call it when the customer asked to cancel') and an implicit exclusion (requests already booked cannot be cancelled). It does not name a fallback tool for the booked case, so the agent must infer what to do instead.

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.