Skip to main content
Glama

GetAttachmentTool

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

Input Schema

TableJSON 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

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the return shape (metadata plus a direct download URL) and the deliberate avoidance of binary inlining, but says nothing about authentication, URL expiry, or error behavior for missing attachments.

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, well-formed sentence that front-loads the primary output and appends the rationale in parentheses. No wasted words.

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?

With no annotations and no output schema, the description does a fair job of signaling the return payload (metadata + download URL). It is nonetheless thin for an unannotated read tool, omitting auth expectations and what happens on invalid IDs.

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%, so all three parameters (account_code, attachment_id, piece_relative_id) are already documented in the schema. The description adds no parameter-level detail beyond the generic phrase 'piece attachment', so the baseline 3 applies.

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 states a specific verb+resource: retrieving attachment metadata and a download URL for a piece attachment. This clearly differentiates it from the write-side sibling AddAttachmentTool, though it does not name any sibling explicitly.

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 phrase 'avoids inlining binary content' implies why you'd call this rather than fetching the raw file, giving implied usage context. However, there is no explicit when-to-use/when-not guidance, no mention of alternatives, and no stated prerequisites for the three required parameters.

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