Skip to main content
Glama

Dievio

Cancel Search Job

cancel_search_job
DestructiveIdempotent

Cancel a queued search. Running searches cannot be safely cancelled while a worker is charging a chunk.

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

Input Schema

NameRequiredDescriptionDefault
job_idYes
request_idYesStable idempotency UUID. Reuse with identical arguments on retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds meaningful behavioral context by disclosing that only queued searches are safely cancellable, though it does not explain what happens to job data or the error behavior if the job is running.

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?

Two tightly written sentences, with the core action front-loaded and the key constraint immediately following. There is no wasted language.

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

Completeness4/5

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

For a low-complexity, two-parameter destructive tool with rich annotations, the description covers the essential safety constraint. It could add how to confirm a job is queued or what error to expect if it is running, but no output schema means return-value details are not required.

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?

The schema fully documents request_id as an idempotency UUID, while job_id has no schema description but is implicitly identified by the phrase 'queued search.' The description adds little explicit parameter meaning beyond that implication, which is reasonable at 50% schema coverage but not compensating further.

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 description states a specific verb and resource, 'Cancel a queued search,' and clarifies the scope by distinguishing queued searches from running ones. This is enough for an agent to distinguish it from sibling read/list/get search tools.

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

Usage Guidelines4/5

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

It gives a clear usage condition (queued searches) and an exclusion (running searches cannot be safely cancelled while a worker is charging a chunk). It does not point the agent to get_search_job or list_search_jobs to verify job state, nor describe alternatives, so it falls short of full when/when-not/alternative guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources