Skip to main content
Glama

Upload Document File

upload_document_file

Upload one file attached in the conversation to an Airparser inbox and wait up to 15 seconds for the parsed result. If parsing takes longer, the response has parsing_in_progress: true and the document id; the document is accepted and keeps being parsed.

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": {
      "inbox_id": "<inbox_id>",
      "file": "<file>"
    },
    "name": "upload_document_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe attached file to upload.
inbox_idYesTarget Airparser inbox id.
metadataNoOptional metadata object to attach as meta.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, open-world, non-idempotent, non-destructive, so the description is not the sole source of the safety profile. It still adds genuinely useful behavior the annotations cannot convey: a 15-second wait ceiling, the parsing_in_progress: true flag, and the fact that the document is accepted and continues parsing server-side rather than failing.

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?

Two tight sentences with no filler. The timeout and the in-progress fallback are front-loaded where an agent will see them before deciding how to handle the response.

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?

With no output schema, the description carries the burden of explaining the return, and it does so for the slow-path case (parsing_in_progress plus document id). It does not sketch the success-path parsed-result shape, which is a modest remaining gap for a tool with nested parameters and an external service.

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 the schema already documents inbox_id, the nested file object, and metadata. The description adds only the constraint that exactly one file is uploaded per call and that it lands in an inbox, which is marginal value beyond the schema.

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?

States a specific verb and resource ('Upload one file ... to an Airparser inbox') and scopes the input to a file already attached in the conversation. It does not differentiate itself from the sibling upload_document_sync, so the agent cannot tell from the text alone which upload variant is appropriate.

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

Usage Guidelines3/5

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

Usage is implied by the scoping phrase 'one file attached in the conversation' and by the Airparser inbox target, which tells the agent this is for files already in hand. There is no explicit when-to-use versus when-not guidance and no mention of the sync sibling as an alternative.

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