Skip to main content
Glama

attach_files

Attach local screenshots, images, or PDFs to a comment by providing its number and file paths, so reviewers can see before/after evidence.

Instructions

Attach screenshots, images or PDFs (local file paths) to a comment, e.g. before/after shots of what you changed.

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": {
      "id": "<id>",
      "files": "<files>"
    },
    "name": "attach_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe comment number, as shown: 12.
filesYesPaths to local files (absolute, or relative to the current folder).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior: only screenshots/images/PDFs and only local file paths (absolute or relative per the schema), which tells the agent files must exist on disk. It does not say whether attachments are appended or replace existing ones, whether uploads can fail partially, or any size/type limits, which are real gaps for a mutation tool.

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?

A single, front-loaded sentence with the action and target stated first and a short clarifying example appended. No filler or repetition.

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

Completeness3/5

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

This is a simple two-parameter tool with no output schema, and the description covers the core action and supported inputs, which is close to sufficient. Still missing is what the agent should expect afterward (attachments visible on the comment, removable via remove_attachment) and any failure conditions.

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%, so both 'id' and 'files' are already documented, giving a baseline of 3. The description adds modest value by constraining the file types (screenshots, images, PDFs) beyond the schema's generic 'paths to local files', but it adds nothing about the comment id semantics.

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?

The description names a specific verb (Attach) and a concrete resource (screenshots, images or PDFs to a comment), so the agent knows exactly what the tool does. It stops short of a 5 because it never contrasts with the obvious inverse sibling remove_attachment, leaving differentiation implicit.

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 example 'before/after shots of what you changed' implies a usage context (illustrating work on a comment), which is more than nothing. However, there is no explicit when-to-use/when-not guidance, no prerequisites such as the comment needing to exist, and no mention of remove_attachment as the way to undo.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.