Skip to main content
Glama

YouNeedToSign

Create a file upload

create_upload

Use this when the user wants to sign a file that you can read but can't attach directly, such as a file in your sandbox or workspace. Returns a one-time upload URL. Upload the file with an HTTP PUT using exactly the given headers, then call prepare_document with upload_id. Accepts PDF, Word (.docx), PNG or JPG files up to 25 MB.

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>",
      "mime_type": "<mime_type>",
      "size": "<size>"
    },
    "name": "create_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYes
file_nameYes
mime_typeYes

Output Schema

NameRequiredDescriptionDefault
upload_idYes
expires_inYes
upload_urlYes
upload_headersYes
example_commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safety profile (non-read-only, non-destructive, closed-world, non-idempotent). The description adds behavior annotations do not cover: the return is a one-time URL, the file must be sent via HTTP PUT with exactly the supplied headers, the upload_id must then be passed to prepare_document, and the accepted formats and 25 MB ceiling are stated.

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?

Three sentences, front-loaded with the trigger condition before the mechanics, and no filler. The middle sentence compresses format limits and the follow-up call efficiently; only the phrase 'the given headers' leans on the output schema to be unambiguous.

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?

An output schema exists, so the description rightly avoids describing response fields, and it covers the full three-step handshake plus input constraints. Remaining gaps are minor but real: no statement about URL expiry beyond 'one-time', no mention of whether authentication is required for the PUT, and nothing clarifying the file_name parameter.

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 0%, so the description carries the burden, and it only partly compensates. The accepted MIME types and the size ceiling restate values already fixed in the schema enum and maximum rather than explaining them, and file_name — whether an extension is expected, whether it is display-only, or the 150-character limit — is left entirely unexplained.

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 states a specific verb and resource (create a one-time upload URL) plus the exact situation that triggers it: the user wants to sign a file the agent can read but cannot attach. It also names the immediate next step (prepare_document with upload_id), so the agent can place this tool in the signing workflow without inspecting siblings.

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?

It gives a clear when-to-use condition ('can't attach directly, such as a file in your sandbox or workspace') and an explicit continuation path to prepare_document. It does not name a distinct alternative tool for the attach-directly case, so the agent must infer that other tools handle that, but the selection context is otherwise concrete.

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