Skip to main content
Glama
brotato-controller

brotato-controller

by dzhen1515

stop_session

Gracefully stops an active autonomous runner job, force-terminating it after 10 seconds to end sessions when a job must be halted.

Instructions

Gracefully stop an active autonomous runner job (force-kills after 10s).

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": {
      "job_id": "<job_id>"
    },
    "name": "stop_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.5

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds real process behavior beyond that — termination is graceful first, then escalates to a force-kill after a 10-second timeout. It stops short of saying what happens to in-flight work at the moment of the kill or what state the job is left in, but the escalation semantics are valuable context.

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?

One sentence, front-loaded with the action and its graceful-then-forceful behavior, with no filler. Every clause earns its place.

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 single-parameter termination tool this covers the essentials of what happens and how fast, but there is no output schema and the description does not say what is returned (e.g. final job status) or whether the call fails if the job is already finished. Those gaps matter for an agent deciding whether to poll afterward.

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?

Schema description coverage is 0% and the description never mentions the single required parameter. Critically, the tool name says 'session' while the parameter is 'job_id', and the description says 'job' — leaving the identifier's origin (from start_session? from get_runner_status?) and format unexplained.

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 ('stop') and a specific resource ('an active autonomous runner job'), which clearly distinguishes this from the start/status siblings. It does not explicitly name the counterpart tool, but the resource-level specificity makes the intent unambiguous.

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 word 'active' implies a precondition (the job must be running), which is useful implicit guidance, but there is no explicit when-to-use/when-not-to-use statement and no routing to alternatives such as run_control or rollback_strategy. An agent must infer that this is the graceful-termination path versus other control surfaces.

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