Skip to main content
Glama

presign_file_upload

Mint a presigned multipart-POST URL to attach a file to a card. Returns the file envelope (file_id, status='pending') plus upload_url, upload_url_fields (signed policy fields the client must include in the multipart form), and upload_url_expires_in. POST the bytes directly to upload_url as multipart/form-data, including every entry from upload_url_fields and the file under a file field. Don't go through the MCP channel for the bytes. Then call commit_file to finalize. Mirrors POST /v1/files:upload.

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": {
      "card_id": "<card_id>",
      "filename": "<filename>",
      "content_type": "<content_type>"
    },
    "name": "presign_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idYes
filenameYes
size_bytesNo
content_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

With no annotations, the description carries the full burden and does substantial work: it discloses that the returned file is status='pending', that upload_url_expires_in bounds the window, that all upload_url_fields must be repeated in the form, and that commit_file is required to finalize. It omits permission requirements and size-limit/enforcement behavior, which matters for a mutation tool.

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?

Dense but front-loaded: purpose first, then return shape, then the exact client procedure, then the next step. No sentence is redundant, and the operational instructions are ordered the way an agent must execute them.

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?

Explains the full mint-then-upload-then-commit lifecycle, which is more than the annotations supply. Since an output schema exists it need not describe return values, and the remaining gaps (auth scope, size limits, expiry handling) are real but secondary for a presign helper.

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 must compensate for four undocumented parameters. It implies card_id is the target card and that filename/content_type describe the payload (the signed policy fields depend on them), but it adds no meaning for size_bytes and never states whether declared content_type must match the multipart part.

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 verb and resource -- "Mint a presigned multipart-POST URL to attach a file to a card" -- and immediately distinguishes itself from the finalization step by naming commit_file. An agent can tell this apart from commit_file without opening either schema.

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?

Gives clear workflow context: use this to get the URL, POST bytes directly to upload_url (explicitly not through the MCP channel), then call commit_file to finalize. The negative guidance about the byte channel is valuable, but there is no explicit exclusion versus other upload paths such as create_import_upload.

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