Skip to main content
Glama

Stop a search

stop_search
Read-only

Stop a search started with start_search. Results found so far can still be read.

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": {
      "search_id": "<search_id>"
    },
    "name": "stop_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice name. Optional when the account has only one online device.
search_idYesThe search_id returned by start_search.

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 readOnlyHint=true and destructiveHint=false, and the description adds real value beyond them by disclosing the post-condition: results found so far can still be read. It does not explain what happens to the search process itself (cancelled vs paused) or whether the search_id remains valid, but for a two-parameter tool this is solid added 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?

Two sentences, zero waste, with the action and its dependency front-loaded and the reassuring side effect second. Nothing could be cut without losing information.

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 simple control tool with no output schema and fully covered parameters, the description supplies the essential context: what it terminates, what it depends on, and what remains readable. Minor gaps around the search's end state and result retrieval are not critical here.

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 description coverage is 100%, so search_id and the optional device parameter are already documented in the schema. The description adds no format, default, or identification guidance beyond that, so the baseline 3 is appropriate when the schema carries the load.

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?

States a specific verb+resource ('Stop a search') and ties it to the originating sibling tool ('started with start_search'), which lets an agent pair the two without opening either schema. It also names the effect on results, distinguishing it from generic termination tools like force_terminate.

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?

The description clearly establishes context (only meaningful for a search initiated by start_search) and reassures the agent that results are not lost, which is the key decision input for stopping early. It stops short of naming an alternative such as letting the search finish or using get_more_search_results to continue reading.

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