Skip to main content
Glama

upload-attachment_multipart_form_data

Upload a PDF attachment without sending file bytes through this tool. Required: attachment.filename (local PDF path; no control characters). Optional: attachment.name only if the Common Paper attachment name should differ from the file basename; attachment.description. Do not send uploaded_by — the OAuth-authenticated MCP user is recorded as the uploader. Returns JSON with curl_command where the path is already shell-escaped — run that command exactly as returned. Do not base64-encode the PDF into this tool and do not use generate-api-key for uploads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
curl_commandYesReady-to-run curl that POSTs the local PDF to the signed upload URL. The @path is shell-escaped by the server. Execute the string exactly as returned; do not re-quote or modify arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare write semantics (readOnlyHint=false, destructiveHint=false, openWorldHint=false). The description adds crucial non-obvious behavior: the call returns JSON containing a curl_command that is already shell-escaped and must be executed verbatim, and the uploader identity is derived from the OAuth user rather than a submitted field. That is high-value disclosure the annotations cannot convey.

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?

The critical fact (no file bytes through this tool) is front-loaded in the first clause, and the remaining sentences each carry a distinct constraint. It is somewhat dense with stacked prohibitions, but 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?

An output schema exists, so return-value explanation is not required, and the description still notes the curl_command payload. For a write tool with a three-branch anyOf schema, the description coherently steers the agent to the correct branch and covers the required invocation step, though it leaves the application_json variant's contract for the agent to infer.

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

Parameters4/5

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

Reported schema description coverage is 0% for the top-level param, so the description must compensate, and it does: it marks filename as required (local PDF path, no control characters), name as optional and only when it should differ from the basename, description as optional, and explicitly forbids sending uploaded_by. It does not describe the base64/pdf variant fields, which the schema still contains.

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 ('Upload a PDF attachment') and immediately resolves the confusing tool name by clarifying that file bytes are NOT sent through this tool. It implicitly separates itself from the sibling upload-attachment_application_json by forbidding base64 encoding, so an agent can distinguish the two 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 situational context (MCP client sends metadata only; the returned curl_command performs the actual byte upload) plus explicit exclusions ('Do not base64-encode', 'do not use generate-api-key for uploads'). It does not name the application_json sibling as the alternative for API-key clients, so the when-to-use-the-other-variant guidance is left implicit.

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.