Skip to main content
Glama

cancel_measurement

DestructiveIdempotent

Cancel a queued or running measurement request using its request ID and a reason. Requests with unknown outcomes are flagged for operator review.

Instructions

Cancel a queued or running request. Requests with an unknown outcome are an operator's call.

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>",
      "reason": "<reason>"
    },
    "name": "cancel_measurement"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 readOnlyHint=false, so the safety profile is covered. The description goes beyond them by disclosing the cancellable state set (queued or running) and the unknown-outcome edge case that must be handed off, which materially shapes when an agent should fire this call. It stops short of saying what happens to the measurement record or whether cancellation can be undone.

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?

Two short sentences with no filler, and the primary action is front-loaded ahead of the edge-case caveat. The phrase "an operator's call" is slightly colloquial and could be read as either a permission rule or a discouraged path, costing a bit of precision.

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

Completeness3/5

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

For a two-parameter destructive mutation with annotations present and no output schema, the definition covers the scoping precondition but omits what the agent gets back, why the required reason is needed, and what state the measurement ends in. Adequate to select the tool, thin for calling it confidently.

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

Parameters2/5

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

Both parameters are required and schema description coverage is 0%, so the description carries the full burden of explaining them. It never mentions request_id or reason; in particular the meaning and expected content of the required "reason" field is left entirely to inference.

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?

"Cancel a queued or running request" gives a specific verb plus a scoped resource and narrows eligibility to two states, which is enough to distinguish it from get_measurement and request_measurement. The only friction is that it says "request" while the tool and siblings speak of measurements, leaving a small ambiguity about what object is actually being cancelled.

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 second sentence supplies a when-not condition: requests whose outcome is unknown should be escalated to an operator rather than cancelled here. That is useful negative guidance, but no sibling or alternative path is named and there is no statement of prerequisites (e.g. ownership or permissions) for invoking the cancellation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.