Skip to main content
Glama

Cancel Scraper Run

scraper_run_cancel
DestructiveIdempotent

Explicitly request server cancellation. Work already in flight can still finish; the original confirmed charge is never silently refunded or replayed. Poll scraper_run_get until terminal while current project access is available. If the project was deleted or its access check is unavailable, cancellation returns only run_id and cancellation_requested, including on a retry after a recorded cancellation; no result or pollable project evidence is returned.

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": {
      "run_id": "<run_id>"
    },
    "name": "scraper_run_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesServer-issued run ID.
verbosityNoconcise: the summary view with the tool's short result; full: the whole record. Only shapes the output.
idempotency_keyNoOptional and ignored: this call never charges, so it needs no retry key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the destructive/idempotent annotations, it discloses that cancellation is cooperative ('work already in flight can still finish'), that no charge is refunded or replayed, and that the degraded project-deleted path returns only run_id and cancellation_requested with no pollable evidence. With annotations already covering the safety profile, this is strong added context, though the normal successful response shape is left implicit.

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?

The cancellation semantics and the non-refund guarantee are front-loaded, and each sentence carries distinct information. Phrasing is dense and somewhat legalistic ('silently refunded or replayed'), but there is little wasted text.

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 destructive mutation with no output schema, the description covers the mutation's limits, the follow-up polling step, and the degraded return case. The one remaining gap is what a normal successful response looks like, which the agent must guess since no output schema exists.

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%, and the schema itself explains run_id, the verbosity enum, and that idempotency_key is ignored. The description adds no meaning about any parameter, so the baseline 3 applies.

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 states a specific action, 'Explicitly request server cancellation', and the run/polling context makes clear it operates on a scraper run. It is easy to distinguish from scraper_run_get, which it names as the polling follow-up, but it never clarifies how it differs from the sibling scraper_run_delete (cancel vs. remove record).

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 concrete post-call guidance: 'Poll scraper_run_get until terminal while current project access is available', which tells the agent what to do after invoking. It stops short of explicit when-not-to-use guidance or naming scraper_run_delete as the alternative for removing a run, so an exclusion rule is left to inference.

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