Skip to main content
Glama

Docparser MCP by usefulapi

Upload a document (base64)

docparser_upload_document

WRITE: upload one small file as base64 content to a parser and parse it. Uses page credits of the account's plan. Docparser may buy extra credits by itself only if the account owner turned on automatic credit replenishment, or the account is on an annual plan that renews early when credits run out - check the Docparser billing settings first. This server never buys credits or changes the plan. Files up to about 2.3 MB; use docparser_fetch_document_from_url for larger files. Returns the new document id and the remaining quota. POST /v1/document/upload/{parser_id}.

Input Schema

NameRequiredDescriptionDefault
file_nameNoFile name with extension (e.g. invoice.pdf); a time-based name is used if omitted.
parser_idYesDocparser parser id (from docparser_list_parsers).
remote_idNoYour own reference for the document (stored by Docparser; usable as a filter later).
file_contentYesThe file, base64 encoded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file_content / maxLength
      Previous value: -8388608New value: +3145728
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark this as a non-read-only, non-idempotent, non-destructive write with open-world behavior. The description adds important context beyond annotations: page-credit consumption, the server never buying credits or changing plans, possible automatic replenishment on annual plans, and returned document id plus remaining quota.

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?

The purpose and write nature are front-loaded, followed by operational constraints and billing behavior. Every sentence carries useful information for correct invocation, and the size-limit alternative is stated directly.

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?

There is no output schema, so the description appropriately states what is returned: the new document id and remaining quota. Together with the size limit, billing caveat, and sibling reference, it gives an agent enough to call the tool correctly.

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 all four parameters are already documented. The description adds the file-size limit and confirms base64 content, but does not add syntax or meaning for parser_id, file_name, or remote_id beyond the schema.

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 (upload), resource (one small file), format (base64), and action (parse it) tied to a parser. It explicitly distinguishes itself from docparser_fetch_document_from_url for larger files, so an agent can select it without opening sibling schemas.

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?

Provides a clear condition for using this tool (files up to about 2.3 MB) and names the alternative explicitly for larger files. It also warns to check billing settings before use when credit replenishment could matter.

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.