Skip to main content
Glama

Undo crawl job

undo_crawl_job
DestructiveIdempotent

Take back what one crawl job imported. The normal case after a connector went wrong: a run that imported page furniture leaves rows that are individually worthless and collectively noise. Archives by default rather than deleting, because a status change is reversible. Rows a human has since touched — anything no longer in 'discovered' — are left alone and counted separately: a crawl may take back its own import, never someone's judgement. Use dry_run first to see what it would hit.

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": {
      "crawl_job_id": "<crawl_job_id>"
    },
    "name": "undo_crawl_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault archive. delete is irreversible and only for rows that are provably not tenders.
dry_runNoDefault false. true reports what would happen and changes nothing.
crawl_job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it explains the default archival behavior, why archiving is preferred, the irreversible nature of delete mode, and how human-reviewed rows are protected and counted separately. This is exactly the behavioral context an agent needs for a destructive undo operation.

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?

The description is front-loaded with purpose, then moves through scenario, default behavior, safety exclusion, and recommended workflow. Each sentence contributes operational or safety-relevant information without redundancy.

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 rich annotations, the description covers behavior, reversibility, exclusions, and recommended workflow well. The main remaining gap is that there is no output schema and the description does not specify the shape of the report or counted results.

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 67%, and the schema already documents mode and dry_run well. The description reinforces the archive default and dry-run workflow but adds no meaning for crawl_job_id, which remains undocumented in both places.

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 action and scope: undoing what one crawl job imported. It is clearly distinct from managing crawl jobs, schedules, or sources, and the metaphor 'take back' is immediately clarified in operational terms.

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 when-to-use context ('after a connector went wrong'), a safety prerequisite ('Use dry_run first'), and an important exclusion for human-touched rows. It does not explicitly compare against sibling tools such as deleting a crawl source, so it falls short of full alternative routing.

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