Skip to main content
Glama

Cancel scan

scan_cancel

Cancels a running scan or workflow-owned process by scan ID, stopping active work when it is no longer needed.

Instructions

Cancel a running scan or workflow-owned process.

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": {
      "scan_id": "<scan_id>"
    },
    "name": "scan_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
scan_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare the operation is a non-read-only, non-destructive, closed-world mutation, so the bar is lower. The description adds the useful state constraint that only *running* scans can be canceled and that workflow-owned processes are in scope, but says nothing about irreversibility, effects on the parent workflow, or permissions.

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?

One front-loaded sentence with no filler. It is efficient, though its brevity is part of what leaves the behavioral and parameter gaps.

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?

An output schema exists so return values need not be explained, but for a cancellation tool with an undocumented required ID and a sibling that may cancel workflows, the definition should do more. As written, an agent could pick the wrong cancel tool or pass a malformed scan_id.

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% for the single required scan_id, and the description does not compensate by stating the identifier format or that IDs come from scans_list. The agent gets no semantic help beyond the property name.

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?

The description pairs the specific verb 'Cancel' with the resources 'running scan' and 'workflow-owned process', so an agent knows it terminates work in progress rather than querying it. It does not, however, distinguish itself from the sibling workflow_cancel, which appears to target an overlapping resource.

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 explicit when-to-use guidance, no prerequisites (e.g., that the scan must be running), and no routing to workflow_cancel for workflow-level cancellation. The agent must infer selection from the name alone.

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