Skip to main content
Glama

Retry an owned failed request as a new task

data_retry_request

Retries the failed request identified by the path id. Creates a new request ID and preserves the failed source request for audit. Structured extraction requests also create a new recipe run. Website task/tool requests return WEBSITE_TOOL_RETRY_REQUIRES_NEW_REQUEST; submit a new task/tool request with a new idempotency key instead. Requires scope 'scrape:write'. Returns {ok,status,data,meta}; API failures return {ok:false,status,error}.

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": {
      "id": "<id>"
    },
    "name": "data_retry_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUUID of the target request or batch, as returned in the id field when it was created or listed.
idempotency_keyNoOptional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"UUID of the target request or batch, as returned in the id field when it was created or listed."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive, non-idempotent, open-world call; the description goes well beyond that by disclosing the side effects (a new request ID, a new recipe run for structured extraction, source preserved for audit), the required scope 'scrape:write', and the exact error code emitted for an unsupported request type. The return-shape note ({ok,status,data,meta} vs {ok:false,status,error}) is also behavior the annotations cannot express.

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?

Four sentences, each carrying a distinct payload: what it does, what it creates, the exception path with its error code and alternative, and the auth/return contract. The core action and the destructive-vs-audit nuance are front-loaded, and nothing is restated from the title or schema.

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?

With no output schema, the description compensates by describing both success and failure response envelopes, and it covers the auth requirement and the one refusal case an agent will realistically hit. For a two-parameter mutation tool, nothing needed to call it correctly or interpret the result is missing.

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 both the id (UUID of request or batch) and the idempotency_key (replay semantics, 409 IDEMPOTENCY_CONFLICT) are already fully documented in the schema. The description only echoes 'the path id' and mentions idempotency keys in the context of the alternative workflow, adding little meaning beyond the structured fields. Baseline 3 is appropriate here.

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 opens with a specific verb and resource ('Retries the failed request identified by the path id') and immediately clarifies the resulting semantics: a new request ID is created while the failed source is preserved for audit. That distinguishes it from data_create_request (which has no source request) and from data_get_request/data_cancel_request without needing to open any schema.

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?

It states the precondition (the target must be a failed request identified by id) and gives an explicit exclusion with a redirect: website task/tool requests are refused with WEBSITE_TOOL_RETRY_REQUIRES_NEW_REQUEST and must instead be submitted as a new task/tool request with a fresh idempotency key. That is a when-to-use / when-not-to-use / do-this-instead triple, which is the strongest form of routing 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