Skip to main content
Glama

Create document upload

create-document-upload

Start uploading a file to keep as a document: a bank statement, an invoice or a receipt.

WHEN TO USE: You can run shell commands and the file is on the local disk (Claude Code, an agent). Without a shell — a chat with the PDF attached — you cannot send its bytes: ask the user to upload it in the RoboLedger app, then find it with list-documents.

WORKFLOW:

  1. Call this with the file's name (and its local path, to get a ready command).

  2. Run the returned upload_command. It PUTs the file; nothing passes through you.

  3. Call complete-document-upload with the upload_id and a title.

RETURNS: upload_id, upload_url, expires_in and upload_command.

NOTES: A PDF, PNG or JPEG, at most 25 MB; the type is taken from the file's extension. Nothing is recorded until the upload completes, and an upload never completed expires. Stored files are not indexed for search.

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": {
      "file_name": "<file_name>"
    },
    "name": "create-document-upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_nameYesThe file's name, ending in .pdf, .png, .jpg or .jpeg (e.g. 'checking-2026-09.pdf')
file_pathNoThe file's local path, used only to write upload_command; the server never reads it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses the critical behavior that the file bytes never pass through the agent ('It PUTs the file; nothing passes through you'), that nothing is recorded until the upload completes, that uncompleted uploads expire, the 25 MB size ceiling, extension-derived MIME type, and that stored files are not indexed for search. These are exactly the operational facts an agent needs and none are derivable from readOnlyHint/openWorldHint.

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?

Bold section headers (WHEN TO USE, WORKFLOW, RETURNS, NOTES) front-load the decision criteria, and every sentence carries operational content. It is on the longer side and the RETURNS list partially restates the workflow step, but no section is filler for a multi-step tool.

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 enumerating the four returned fields and tying them to the next call. Combined with the size/format limits and expiry semantics, an agent has everything needed to invoke this correctly and continue the workflow.

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 the baseline is 3, but the description adds the causal link the schema only hints at: file_path exists solely to produce a ready-made `upload_command` and the server never reads it, and the extension drives the accepted type. That meaningfully clarifies why an agent should supply a path even though the file is never transmitted.

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 ('Start uploading a file to keep as a document') and immediately scopes the accepted artifacts (bank statement, invoice, receipt). The numbered workflow makes clear this is step one of a three-call sequence, so an agent can distinguish it from complete-document-upload and create-document without opening 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 gives an explicit precondition for use ('You can run shell commands and the file is on the local disk') and an explicit exclusion with a fallback ('Without a shell ... ask the user to upload it in the RoboLedger app, then find it with list-documents'). The alternative path names a concrete sibling tool, leaving nothing 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.