Skip to main content
Glama

Start Retained Scraper Run

scraper_run_create
Idempotent

Explicitly start a retained background scraper run that may contact public sites and spend plan credits. Requires idempotency_key and verified organization/project or legacy credential scope. The same key retrieves the original run, including failed or interrupted work, and never re-executes or re-charges it; never automatically retry with a new key. To finish a run that timed out or stopped partway, submit the resume.inputs from scraper_run_get as a new run with a new key. A synchronous scraper answer may also be kept as a completed run; retained.available says whether it was kept and retained.run_id reads it. Use scraper_run_create for work that should run in the background. Run results are retained for 30 days within bounded server capacity; kept synchronous results are the first to make room. For tool ai-visibility with project scope, the AI prompt, answer text and source evidence also enter this organization's AI history until the project is deleted; deleting the project queues their removal. Organization and credential scope do not retain that project history.

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": {
      "tool": "<tool>",
      "scope": "<scope>",
      "inputs": "<inputs>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "scraper_run_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYes
scopeYes
inputsYesThe selected scraper's documented inputs, without credentials or idempotency keys.
verbosityNoconcise: the summary view with the tool's short result; full: the whole record. Only shapes the output.
project_idNoRequired for project scope; ownership is checked by the server. For tool ai-visibility, project scope stores the AI prompt, answer text and source evidence in this organization's AI history until the project is deleted; deleting the project queues their removal. Organization and credential scope do not retain that project history.
webhook_urlNoOptional. An https URL (public host name, default port) that is sent a signed notice when the run ends: run id, state, outcome and counts, never results; read the run with scraper_run_get. Failed deliveries are retried for several hours. The retry schedule is bounded by recorded attempts, but a restart can replay an unrecorded attempt and delivery may still fail. A notice can arrive more than once and in no fixed order; its identity is run_id in the signed body. It is signed X-DataFluxor-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of t, a full stop and the raw body, keyed with the signing secret exactly as returned, whsec_v1_ prefix included, as UTF-8 text>; refuse a t more than 5 minutes from your clock. The signing secret is never returned through MCP: read it with an API key at GET /api/v1/scrape/webhook-secret. Ignored when the idempotency_key already belongs to a run (the answer says so).
idempotency_keyYesA unique request identity, retained for the 30-day run window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "serp",
      -  "suggest",
      -  "index-check",
      -  "crawl",
      -  "extract",
      -  "page",
      -  "search",
      -  "volatility",
      -  "competitor-gap",
      -  "ai-visibility"
      -]New value: +[
      +  "serp",
      +  "suggest",
      +  "index-check",
      +  "crawl",
      +  "extract",
      +  "page",
      +  "search",
      +  "volatility",
      +  "competitor-gap",
      +  "ai-visibility",
      +  "keyword-clusters"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations (readOnlyHint false, openWorldHint true, idempotentHint true) by disclosing credit spend, 30-day retention bounded by server capacity with kept synchronous results evicted first, and the AI-visibility project-history retention and deletion behavior. Idempotency semantics (same key returns the original run including failures, never re-executes or re-charges) are spelled out. It stops short of describing the run state model or polling cadence, and defers webhook signing detail to the schema, so it is rich but not exhaustive.

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?

Front-loaded with the action and its cost, then ordered as idempotency, resume, synchronous alternative, retention. Dense but almost every clause carries decision-relevant information; the retention paragraph is unavoidably long, though the AI-history sentences recur in the project_id schema and could be trimmed here.

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

Completeness5/5

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

For a 7-parameter, nested-input mutation tool with no output schema, the description supplies what matters: auth/scope requirements, credit cost, background-vs-sync choice, idempotency and resume rules, retention and eviction, and webhook behavior. An agent can call it correctly and interpret its outcome without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 71%, so much is already documented, but the description adds real meaning the schema cannot: idempotency_key is a replay-safe request identity that retrieves the prior run, and scope choice determines whether AI-visibility history is retained. Less is said about the tool enum values and the inputs object beyond pointing at each scraper's documented inputs, leaving some selection ambiguity.

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 (start) and resource (retained background scraper run), plus scope of effect: may contact public sites and spend plan credits. It explicitly distinguishes itself from synchronous scraper answers and from sibling run-management tools by noting the synchronous alternative and pointing to scraper_run_get for results.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (background work) versus the synchronous path, mandates idempotency_key, and warns never to retry with a new key. It also routes the resume-after-timeout case to scraper_run_get's resume.inputs and names scraper_run_get for reading results, covering the alternatives an agent would otherwise guess at.

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