Skip to main content
Glama

Create document upload URL

create_document_upload_url

Step 1 of uploading a real file: reserves a document record (status 'pending_upload') and a one-time signed upload URL. PUT the raw file bytes directly to upload_url (e.g. curl -T /path/to/file "$upload_url") — the bytes never pass through this MCP server. Then call finalize_document_upload with document_id. The URL expires in ~2 hours; if the PUT never happens, call delete_document on document_id to avoid an orphaned pending record.

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": {
      "title": "<title>",
      "file_name": "<file_name>"
    },
    "name": "create_document_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
titleYes
agent_idNo
categoryNo
entity_idNo
file_nameYes
mime_typeNo
project_idNo
descriptionNo
entity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that a real record is reserved with status 'pending_upload', that the URL is one-time and expires in ~2 hours, that bytes bypass the MCP server entirely, and that abandoned reservations become orphans. Annotations only say readOnly=false/destructive=false/idempotent=false, so this adds real operational context (retry/duplication risk, cleanup obligations).

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?

Four dense sentences, front-loaded with the workflow step and followed by the exact mechanism (a curl example) and the fallback. No filler, no restatement of the title.

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?

For a mutation tool with no output schema, it still conveys what comes back (document_id and upload_url) and the full lifecycle around the call. The residual gap is parameter documentation for a 10-field schema with zero coverage, which is a real hole given how many optional linking fields exist.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters, so the description carries the full burden and does not meet it — it explains none of title, file_name, project_id, entity_type/entity_id, agent_id, category, or mime_type. It also never clarifies the distinction between the look-alike 'notes' and 'description' fields, or how entity_type pairs with entity_id.

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 two-part action (reserve a document record in 'pending_upload' status + mint a one-time signed upload URL) and immediately frames it as 'Step 1' of a multi-step flow. An agent can distinguish it from finalize_document_upload and delete_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?

Gives explicit sequencing: call this, then PUT bytes to upload_url, then call finalize_document_upload with document_id. It also names the failure path (if the PUT never happens, call delete_document to avoid an orphaned record), which is exactly the when-not guidance most tools lack.

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