Skip to main content
Glama

Attach a file

attach_file

Upload a file and attach it to an issue, a comment, a doc or a project. Returns a url you can put in markdown, for example name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe file bytes, base64 encoded, up to 4MB decoded.
fileNameYesName to store the file under.
parentIdYesId of the issue, comment, doc or project. Issue identifiers are not accepted.
parentTypeYesWhat the file hangs off.
contentTypeYesMime type, for example "image/png".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false (mutation) and destructiveHint=false, so the safety profile is known. The description adds the return URL behavior and its markdown usage, which is a useful behavioral note, but it doesn't disclose permissions, reversibility, or side effects. No contradiction with annotations.

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 description is one sentence plus a return-format note, front-loaded with the verb and target types. Every word earns its place, with no filler or redundancy. Highly concise and well-structured.

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 5-param mutation tool with 100% schema coverage and no output schema, the description provides the essential purpose and return format. It doesn't cover edge cases (e.g., ID restrictions), but those are in the schema. Given annotations, this is adequately complete for an agent to call it correctly.

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 100%, with each parameter having a description. The tool description only reiterates the parent types from the enum and does not add meaning beyond the schema. Baseline 3 is appropriate since the schema carries the parameter semantics.

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?

The description states a specific verb ('upload and attach') with a clear resource ('file') and target types ('issue, comment, doc or project'). It also specifies the return output (a markdown URL), making its purpose unambiguous and distinct from sibling tools like list_attachments or read_attachment.

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 description implies usage by stating the action, but it does not explicitly contrast with alternatives or provide when-to-use/when-not-to-use guidance. For instance, it doesn't differentiate when to attach vs. list or read attachments. The intent is clear but relies on inference.

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.