Skip to main content
Glama

upload_issue_attachment

Attach a file to an Issue from base64 content (fileName + mimeType + contentBase64), for example the screenshot that shows a reported defect. Max 25 MB. The file is checked and stored exactly like an upload in the app: it counts against the organization's storage, its type is verified from its bytes, and an Issue attachment row is created. Anyone who can edit the Issue can attach. Optional sizeBytes (raw byte length) and sha256 (hex of the raw bytes) make the tool refuse a truncated or garbled upload rather than store a corrupt file. For a file already at a public URL, attach_issue_file_from_url fetches it on the server instead.

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": {
      "issueId": "<issueId>",
      "fileName": "<fileName>",
      "mimeType": "<mimeType>",
      "contentBase64": "<contentBase64>"
    },
    "name": "upload_issue_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256NoOptional: SHA-256 of the RAW file bytes, 64-char hex. Decoded bytes that do not match are refused.
issueIdYesThe Issue to attach to.
fileNameYesOriginal file name incl. extension, e.g. "screenshot.png".
mimeTypeYesMIME type, e.g. "image/png", "text/plain", "application/pdf".
sizeBytesNoOptional: exact byte length of the RAW file. A decoded length that differs is refused (catches truncation).
contentBase64YesBase64-encoded file bytes. Max 25 MB decoded.
idempotencyKeyNoOptional idempotency key. Pass a stable unique value (e.g. a UUID) to make this create safe to retry: calling again with the same key within 24h - even from a new session after a reconnect - replays the original result and creates no duplicate. Org-scoped; works across conversations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the 25 MB cap, that storage counts against the organization's quota, that the MIME type is verified from the actual bytes, and that a real Issue attachment row is created. The sizeBytes/sha256 enforcement (refuse truncated or garbled uploads rather than store a corrupt file) is behavioral detail an agent could not infer from the schema alone.

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?

Front-loaded with purpose and mechanism, then size limit, side effects, permissions, integrity options, and finally the alternative. Slightly long and repeats the 25 MB cap that also appears in the schema, but every sentence carries operational meaning.

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 7-parameter mutation with no output schema, it covers limits, permissions, side effects, and integrity checks. The only real gap is what the call returns beyond noting an attachment row exists, and the optional idempotencyKey is left entirely to the schema.

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?

Schema coverage is 100%, so the baseline is 3; the description edges above it by explaining the joint role of the required trio and the rationale behind the optional integrity parameters (guarding against truncation/garbling), not just their types. It does not cover idempotencyKey, though the schema already documents that fully.

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 (attach a file to an Issue) plus the exact input mechanism (base64 with fileName + mimeType + contentBase64) and a concrete use case (defect screenshot). This cleanly separates it from attach_issue_file_from_url, which is named later in the text.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use this tool when the bytes are in hand as base64; use attach_issue_file_from_url when the file already lives at a public URL and the server should fetch it. It also states the permission gate (anyone who can edit the Issue can attach), removing a common pre-call uncertainty.

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.