Skip to main content
Glama

periodic_stop

Idempotent

Stops a named periodic TX task by exact name and removes it from the open session, freeing a hardware path so send_frame can resume.

Instructions

Stop one named periodic TX task and drop it from the session.

    Use the exact name from periodic_start or periodic_list. Success data is
    {name, stopped: true}. Unknown name returns SESSION_NOT_FOUND and changes
    nothing. The session stays open; this does not call close_device. Stopping
    frees a hardware periodic TX path so send_frame can work again. Session
    must already be open (error state is allowed so a failed stop can be retried).
    

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": {
      "device": "<device>",
      "name": "<name>"
    },
    "name": "periodic_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact task name previously passed to periodic_start
deviceYesDevice alias from config / list_devices

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.4
    • addedInput schema / properties / device / description
      Added value: +"Device alias from config / list_devices"
    • addedInput schema / properties / name / description
      Added value: +"Exact task name previously passed to periodic_start"
  2. First observedv0.1.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the safety profile (destructiveHint=false, idempotentHint=true), yet the description adds real context beyond them: the exact success payload, the SESSION_NOT_FOUND failure mode with a guarantee of 'changes nothing', the fact the session stays open, and that the session may be in an error state so a retry is possible. It does not spell out what happens to the task's buffered frames or whether the name can be reused, which keeps it short of a 5.

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?

The action and its scope are front-loaded in the first sentence, then prerequisites and error semantics follow in a logical order. The trailing parenthetical about retry in an error state is slightly awkward but still earns its place.

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 two-parameter mutation with an output schema, this covers the prerequisites (open session, exact name), the effect (task stopped, hardware path freed, session preserved), and the failure behavior, so an agent has everything needed to call it correctly and interpret the result.

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 both parameters are already documented, including 'Exact task name previously passed to periodic_start'. The description reinforces exact-match usage but adds no syntax, format, or edge-case detail the schema lacks, so the baseline of 3 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?

The opening sentence gives a specific verb and resource with scope: 'Stop one named periodic TX task and drop it from the session.' It is immediately distinguishable from periodic_start, periodic_list, and close_device, which the agent can rule out without opening any 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?

It names the source of the required input ('exact name from periodic_start or periodic_list'), states the motivating use case ('frees a hardware periodic TX path so send_frame can work again'), and explicitly rules out the neighboring alternative ('this does not call close_device'). That covers when to use, how to obtain arguments, and a common mistaken alternative.

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