Skip to main content
Glama

upload_attachment

Idempotent

Upload evidence (receipt, contract original, picture) — base64 bytes, 10 MB max, deduplicated by content; returns the attachment id to link from a document.

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

Input Schema

NameRequiredDescriptionDefault
filenameYes
content_typeYes
content_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, but the description still adds real context that those annotations do not cover: a hard 10 MB ceiling, content-based deduplication, and the fact that it returns an id. It does not describe how uploads fail (oversize, unsupported type) or what deduplication returns for an already-seen file, so it earns a 4 rather than a 5.

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?

The definition is one dense, front-loaded sentence: what to upload and its examples, then the encoding, size cap and deduplication, then the return value. No filler, and the constraints an agent needs before calling are stated up front.

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?

This is a three-parameter write tool with no output schema and no parameter descriptions, and the description covers the essentials: encoding format, size limit, deduplication semantics and the returned id. It does not name the accepted content types, and it does not say whether it succeeds or fails when the same content was uploaded before.

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 0%, so the description must compensate, and it does so only partially: 'base64 bytes' explains the content_base64 parameter, and the 10 MB limit sets the size constraint for it, while filename and content_type are never explained. What the description says goes beyond the schema, but coverage is still incomplete.

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 specific verb (Upload) and resource (evidence/attachment), gives concrete examples of what counts as evidence (receipt, contract original, picture), and states the outcome (attachment id). An agent knows exactly what this tool does without opening the schema, and the sibling names (oryh_*, object_directory, setup_report) are unrelated functions that need no disambiguation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'to link from a document' implies the workflow context, namely upload the file first, then reference the returned id. That gives useful implied usage, but it never says when to use this tool instead of some alternative, and it gives no prerequisites or exclusions.

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