Skip to main content
Glama

tfa.attachments.upload

Stage a small file; use the binary API for files over 36 KiB

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": {
      "name": "<name>",
      "mime": "<mime>",
      "base64": "<base64>"
    },
    "name": "tfa.attachments.upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
mimeYes
nameYes
base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it only discloses the size cutoff. It says nothing about what 'stage' implies (temporary vs permanent, expiry, whether a follow-up call is needed), required permissions, accepted MIME types, or whether the base64 payload is decoded and validated.

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?

A single front-loaded sentence with no filler and the alternative stated immediately. Brevity here is efficient, though it shades into under-specification rather than tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and zero schema descriptions, the description is the only documentation channel and leaves most of it blank. An agent can make the size-based routing decision but cannot reliably construct the base64/name/mime payload or predict what staging returns.

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

Parameters2/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 all three parameters — name, mime, and base64 — and it does not. The only implicit constraint is that the payload must stay small, which loosely bounds base64. No clarification of whether name includes an extension, whether mime must match the file, or how base64 should be encoded.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'stage' plus 'file' gives a rough sense of the action, but the description never says this uploads an attachment, nor does it connect to the tfa.attachments.* family or distinguish itself from tfa.attachments.read/metadata. 'Stage' is also ambiguous — an agent may not know whether the file is persisted immediately or held temporarily.

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?

It gives an explicit alternative and a concrete threshold: small files here, files over 36 KiB via the binary API. That is real routing guidance. It stops short of saying what 'small' means beyond the number, or naming any prerequisites before calling.

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