Skip to main content
Glama

Rerun file

rerun_file

Read a rejected file again, the same way as a new upload: stub identifies it and imports it, so the same rule may refuse it again. Only a file whose status is rejected; any other status, failed included, is not-rejected, and a password-protected file needs unlocking in the app first. Without confirm true it changes nothing and answers reason confirm-required naming the file; ask the user, then call again with confirm true. Answers the file's new status: processing (being read; check list_files later), stored or review. A file already being read again is already-rerunning. A file in a locked folder is refused. A missing or another business's id is not-found.

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": "rerun_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe file to read again (fil-…), from list_files
confirmNoSet true only after the user agreed to read the file again

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes far beyond that by disclosing the confirm gate ('Without confirm true it changes nothing'), the non-idempotent caveat that the same rule may refuse the file again, and the per-status outcomes. It also enumerates failure modes: already-rerunning, locked folder, and not-found for missing or foreign ids.

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 eligibility, and every clause carries information; nothing is filler. The prose is dense and clause-chained (semicolon-heavy), which slightly hurts scannability for an agent parsing the result codes.

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 still enumerates the returned statuses (processing, stored, review) and their follow-up (check list_files later), plus authorization scoping (another business's id is not-found). For a two-parameter mutation tool this covers everything needed to invoke it correctly.

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 100%, so both parameters are already documented, but the description adds the protocol meaning of confirm (first call yields reason confirm-required naming the file, then retry with true) and clarifies that id must come from list_files. That is meaningful semantics beyond the schema, though not exhaustive.

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 and resource ('Read a rejected file again') and immediately explains the mechanism: a stub identifies the file and imports it as a new upload would. The scope restriction to rejected-status files further sharpens it against generic upload/read siblings.

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?

Explicitly bounds eligibility ('Only a file whose status is rejected; any other status, failed included, is not-rejected') and names prerequisites (a password-protected file must be unlocked in the app first). It also prescribes the exact two-step interaction: ask the user, then call again with confirm true.

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