Skip to main content
Glama

GetAttachmentTool

Read-only

Attachment metadata and a direct download URL for a piece attachment (avoids inlining binary content).

Input Schema

NameRequiredDescriptionDefault
account_codeYesAccount code (e.g., "bcp", "jchsoft")
attachment_idYesDatabase ID (primary key) of the attachment (not relative_id)
piece_relative_idYesRelative ID of the piece the attachment belongs to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description still adds real behavioral value by disclosing the return mode: metadata plus a download URL rather than inlined binary content.

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 that leads with what is returned and uses the parenthetical only to disambiguate the response format. No wasted words.

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?

With no output schema, the description carries the burden of describing the return value, and it does so at a high level (metadata + download URL). It could say slightly more about what the metadata contains, but for a simple 3-parameter read operation with full annotations this is close to sufficient.

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 description coverage is 100% – account_code, piece_relative_id, and attachment_id are each documented in the schema, including the useful 'not relative_id' disambiguation on attachment_id. The description adds nothing about parameters, so the baseline 3 applies.

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 (get) and resource (attachment metadata + direct download URL) scoped to a piece attachment. This distinguishes it cleanly from AddAttachmentTool, the only other attachment-related sibling.

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 rather than stated: the parenthetical 'avoids inlining binary content' hints at when to prefer this over fetching raw content, but no alternative tool or condition is named. No explicit when/when-not guidance is given.

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