Skip to main content
Glama
robotraconteur-mcp

robotraconteur-mcp

by johnwason

robotraconteur_cancel_sequence

Stops running sequences by sequence_ids, aborting active generators and halting robot joint moves initiated by those sequences; use it to cancel grouped sequence runs on demand.

Instructions

Stop running sequences, given by sequence_ids, such as all those of one start call, at once. A cancel from the model arrives one turn after the last result, often seconds later, so to stop at a set time or on something happening, use max_duration_s or a stop_when step instead. A generator it is running, such as a trajectory, is aborted on the service, and a robot moved by robot_move_joints is also halted. It does not stop work that a service started from an ordinary function call that returned at once, such as a motion started without waiting for it, so stop that with the service's own command, such as in on_stop. An ordinary function call that is still running, such as a motion called with wait true, is not interrupted either: the sequence stops at once, but the service goes on until the call returns. Returns the sequence's final state and results, stopped, which says whether a step was stopped or the sequence was between steps, and not_run, how many step runs never started. If the sequence had already finished, cancel says so, and nothing is cancelled.

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": {
      "sequence_ids": "<sequence_ids>"
    },
    "name": "robotraconteur_cancel_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequence_idsYesThe sequences to stop, from robotraconteur_start_sequence. The result gives each in order, in sequences

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: it discloses that a running generator (trajectory) is aborted service-side, a robot moved by robot_move_joints is halted, in-flight blocking calls are NOT interrupted even though the sequence stops, and an already-finished sequence returns 'cancel says so' with no-op behavior. It also documents the return payload (final state, stopped, not_run), which substitutes for the missing output schema.

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-loaded with the core action and information-dense throughout; nearly every clause carries real behavioral content. It loses a point for a slightly tangled construction around "work that a service started from an ordinary function call that returned at once," which takes a re-read to parse.

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

Completeness5/5

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

For a single-parameter cancel tool with no annotations and no output schema, the definition covers exactly the gaps: what gets aborted where, what does not get interrupted, the async-timing caveat that motivates the tool's limits, and the shape and meaning of the return values.

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 parameter is already documented as coming from robotraconteur_start_sequence, which the description only restates. The description adds no format, ordering, or limit detail (the 1–50 maxItems bound lives only in the schema), so the baseline 3 is correct.

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?

Opens with a specific verb and resource ("Stop running sequences") plus the scoping key (sequence_ids) and clarifies the common aggregate case ("all those of one start call"). An agent can tell immediately this is the inverse of robotraconteur_start_sequence without opening the schema.

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 states when NOT to rely on it: a cancel arrives a turn after the last result, so for time-based or event-based stopping the agent is routed to max_duration_s or a stop_when step instead. It also enumerates what this tool will not stop — service work started from a returned ordinary call, and an in-flight call — and tells the agent to use the service's own command (e.g. in on_stop) for those cases.

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