Skip to main content
Glama

Stop a Devin session

devin_stop
Destructive

Cancels the current turn of a Devin subagent session by session ID, stopping active work and preventing further output.

Instructions

Cancels the session's current turn.

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": {
      "id": "<id>"
    },
    "name": "devin_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSession id returned by devin_run (format devin-<hex>)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known. The description adds useful specificity by scoping the effect to the current turn rather than the whole session, but it does not say whether the session survives, whether it can be resumed or messaged afterward, or what state the agent should expect. For a destructive operation that is a meaningful gap.

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 short, front-loaded sentence with no filler. Every word contributes to the meaning.

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

Completeness2/5

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

This is a destructive, open-world tool with no output schema, so the description is the only place consequences could be explained. It never says what happens to the session after cancellation, whether work is lost, or how the agent should follow up, leaving the agent under-informed before an irreversible call.

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 there is a single required `id` parameter with its own format description, so the schema carries the load. The description adds nothing about the id beyond what the schema states, which is the expected baseline when coverage is high.

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?

"Cancels the session's current turn" gives a specific verb (cancels) and a specific target (current turn), which is more precise than the tool name/title implies ('Stop a Devin session'). It does not distinguish itself from siblings such as devin_wait or devin_status, so an agent must infer the boundary. Mild tension between title (stop a session) and description (cancel current turn) remains unresolved.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this instead of devin_wait, devin_message, or simply letting the turn finish. Usage is only implied by the tool name. An agent gets no explicit conditions or exclusions.

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