Skip to main content
Glama

Typebar (formerly SuperDocs)

process_uploaded_document

Fetches the file uploaded via request_upload_url and runs the same parsing pipeline as upload_document_base64: every paragraph, heading, table, row, and cell gets a unique chunk ID, enabling targeted structural edits via chat ("remove row 3 of the pricing table" works), with tables, borders, shading, alternating row colors, fonts, and inline styling preserved on edit and export. By default the response is compact (metadata only, no document body) to keep your context small — the document is loaded into the session and you edit it via chat; pass return_html=true if you need the parsed HTML inline. Uploading and parsing is NOT itself a billable operation — you are charged only when the AI edits the document. Specify parse_mode='document' to load as the active editable document, or parse_mode='attachment' to load as a read-only AI-searchable reference.

Input Schema

NameRequiredDescriptionDefault
filenameYesSame filename passed to request_upload_url.
upload_idYesThe upload_id returned by request_upload_url.
parse_modeNo'document' = parse and load as the active editable doc; 'attachment' = process asynchronously as AI-searchable reference (returns job_id to poll).document
session_idYesSession ID to load this document/attachment into. Must match the chat/async session-id format — letters, digits, '_', '-', '.' only (no ':'); max 256 chars.
return_htmlNoWhen false (default), the response is compact — metadata only (chunks_count, version_id, page_setup), no document body — to keep your context small; the document is loaded into the session and you edit it via chat. Set true only if you actually need the parsed HTML returned inline.
authorizationNo

Output Schema

NameRequiredDescriptionDefault
htmlNo
job_idNo
statusYes
filenameYes
warningsNo
page_setupNo
parse_modeYes
session_idYes
version_idNo
chunks_countNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the non-billable upload/parse model (charged only on AI edits), the compact-by-default response to protect context, that the document is loaded into the session and edited via chat, and that attachment mode processes asynchronously returning a job_id to poll. These are non-obvious, high-value behavioral facts an agent could not infer from the schema.

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?

Content is dense and front-loaded, leading with the verb and pipeline rather than burying it, and every sentence carries information. However, it is delivered as one long run-on paragraph with several em-dash asides, which hurts scannability for a definition this content-rich.

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?

An output schema exists so return values needn't be explained, and the description covers the workflow prerequisite (request_upload_url), both parse modes, the async job_id path, the default response shape, and the billing model. For a 6-parameter parsing/ingestion tool with no annotations, nothing essential to calling it correctly 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 83%, so the schema already documents filename, upload_id, session_id, parse_mode, and return_html in detail, and the description largely restates the parse_mode and return_html semantics rather than adding new syntax or constraints. The added framing (edit-via-chat, context-size tradeoff) is useful but not parameter-level detail, so the baseline 3 holds.

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+resource ('fetches the file uploaded via request_upload_url and runs the same parsing pipeline as upload_document_base64') and immediately positions itself relative to two named siblings, making the distinction from upload_document_base64 explicit. The scope of what gets parsed (paragraphs, headings, tables, rows, cells) further sharpens what the tool actually produces.

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?

Clearly conditions usage on the preceding request_upload_url call and explains the parse_mode='document' vs 'attachment' choice and the return_html default. It does not explicitly state when to prefer this over upload_document_base64/upload_attachment_base64, leaving the routing between upload paths to inference.

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.