Skip to main content
Glama

Create upload

create_upload

Step 1 of putting a binary or data file into the knowledge base: pdf / doc / ppt, images, .csv, .xls / .xlsx, or a large file of any kind (including a large .md/.txt/.html/.json). Returns a short-lived, single-use URL to PUT the file's raw bytes at, together with the method and headers to use. Send the bytes as the request body - not base64, not multipart, not JSON - one file per ticket. Use this rather than create_file / update_file for anything that isn't small plain text: those reject content they can't store inline rather than silently corrupting it. Also use this to overwrite an existing file's bytes - uploading to an existing path overwrites it. After the PUT returns, poll upload_status with the same path until it reports complete. Only usable if you can make an outbound HTTP request yourself - the bytes travel over that PUT, never through this tool.

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": {
      "path": "<path>",
      "context": "<context>"
    },
    "name": "create_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFull destination path in the knowledge base including the filename, e.g. '/reports/q3.pdf'. Must start with '/'. Uploading to an existing path overwrites it.
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
workspace_idNoWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace.

Output Schema

NameRequiredDescriptionDefault
noteYes
pathYes
methodYes
headersYes
maxSizeYes
expiresAtYes
uploadUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that the ticket is short-lived and single-use, that bytes must be sent as a raw request body (not base64/multipart/JSON), one file per ticket, and that the caller must be able to make an outbound HTTP request itself. It also discloses overwrite behavior for existing paths, which the annotations (destructiveHint=false) do not convey; because the overwrite happens on the external PUT rather than in this call, this is added context rather than a contradiction.

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?

Front-loads the purpose, then the return value, then hard format constraints, then sibling routing, then the next step. Every sentence carries operational information; nothing is redundant with the title or annotations.

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?

Covers the full workflow across two calls (create ticket, PUT bytes, poll upload_status), the caller capability prerequisite, and the payload encoding rules. With an output schema present and 100% schema coverage, no significant gap remains for an agent to invoke this 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 coverage is 100%, so path, context, and workspace_id are already fully documented in the input schema. The description restates the overwrite consequence of 'path' but adds no new format or constraint details beyond the schema, so the baseline 3 is appropriate.

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?

Names a concrete verb+resource ('Step 1 of putting a binary or data file into the knowledge base') and spells out the supported file classes. It also states exactly what the tool returns (a short-lived, single-use PUT URL plus method and headers), so an agent knows the tool's contract without opening the 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?

Explicitly routes the agent away from siblings: 'Use this rather than create_file / update_file for anything that isn't small plain text.' It names the alternative set, the reason (those reject non-inlinable content rather than corrupting it), the overwrite case, and the follow-up tool ('poll upload_status with the same path until it reports complete').

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