Skip to main content
Glama

Attach a file to a ticket

attach_file

Attach a file to the ticket: a log, a JSON dump, a Markdown report, a screenshot. Give text for a text file or base64 for anything else, never both. The file gets the next number in the ticket and a line in the thread. At most 10 MB.

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": {
      "project": "<project>",
      "number": "<number>",
      "name": "<name>"
    },
    "name": "attach_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe file name with its extension, like crash.log or before.png; the type is read from it unless contentType is given.
textNoThe file's text, for a text file (Markdown, JSON, a log).
base64NoThe file's bytes as base64, for an image or any other file.
numberYesThe ticket's number in this project, like 12.
projectYesThe project: its id, or its exact name.
contentTypeNoThe MIME type, when the name does not say: image/png, application/json.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds real context beyond that: the file receives the next sequential number on the ticket and produces a line in the thread, and there is a 10 MB ceiling. What it omits is whether duplicate names are allowed and what is returned on success.

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?

Three short sentences, front-loaded with the purpose, then the payload rule, then the side effects and limit. Every clause carries information and nothing is repeated from the schema.

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 six-parameter mutation tool with full schema coverage, the description covers the essential payload rule and the observable side effects. Since there is no output schema, the missing piece is any indication of what the call returns (attachment id, URL, or confirmation), which an agent would want before calling.

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 already 100%, so the baseline is 3, but the description earns more by stating the mutual exclusion between `text` and `base64` — a constraint the schema itself does not encode — and by tying the 10 MB limit to the payload parameters. It adds no detail on `contentType` beyond what the schema says.

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

Purpose4/5

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

Names a specific verb and resource ('Attach a file to the ticket') and enumerates concrete file kinds (log, JSON dump, Markdown report, screenshot), which makes the scope unambiguous. It does not explicitly contrast with siblings such as read_file or add_comment, so it stops short of the top score.

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?

Usage is implied by the tool name and the examples, but there is no explicit statement of when to use this versus alternatives (e.g., add_comment for text-only notes, or read_file for fetching). The one guidance it does give — 'Give text ... or base64 ..., never both' — is about how to fill parameters rather than when to call the tool.

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