Skip to main content
Glama

Create document upload url

create_document_upload_url

Create a signed upload URL for the private 'documents' storage bucket so a file can be uploaded out-of-band, then registered with create_document. Returns { object_key, signed_url, token }.

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_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_nameYes
folder_idNoOnly used to build the storage path
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), and the description adds real value beyond them: the bucket is private, the upload happens out-of-band rather than through this call, and the exact return tuple { object_key, signed_url, token } is disclosed despite there being no output schema. The notable omission is URL expiry/lifetime, which determines how quickly the upload must occur.

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?

One sentence, front-loaded with the action and resource, then the workflow and return shape. Every clause carries information an agent needs; nothing is padding.

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 three-parameter tool with no output schema, the description supplies the missing return shape, the storage context, and the downstream handoff to create_document. The remaining gap is operational constraints around the signed URL itself (expiry, size or content-type limits, required permissions), which an agent would need to invoke it safely.

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 67% and two of three parameters already carry their own descriptions, including the super-admin scoping caveat on target_tenant_id. The description adds nothing about file_name (formats, extension handling) or how folder_id shapes the returned object_key, so it neither compensates for nor improves on 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?

Specific verb+resource: 'Create a signed upload URL for the private documents storage bucket'. It also scopes the purpose (out-of-band upload) and names the follow-up tool create_document, so an agent can tell this apart from the sibling that actually registers the document.

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?

The ordering is explicit: get a URL here, upload out-of-band, then call create_document to register. That covers when to use it and which alternative handles the registration step. It stops short of stating when NOT to use it (e.g., small inline payloads or replacing an existing file version).

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