Skip to main content
Glama

get_attachment_info

Read-only

Retrieve metadata for an uploaded attachment by UUID to inspect file details, verify stored files, and support download or processing decisions.

Instructions

Get metadata for an uploaded attachment.

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": {
      "attachment_id": "<attachment_id>"
    },
    "name": "get_attachment_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes that this is a safe non-mutating call, and the word "metadata" usefully signals that content is not fetched. Beyond that the description adds nothing — no indication of which metadata fields return, whether missing attachments error or return empty, or any size/permission caveats.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with the verb and scope front-loaded and no filler. It is not padded, though its brevity stems partly from under-specification rather than disciplined editing.

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

Completeness2/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 is the only source of what "metadata" contains, and it says nothing about returned fields or shape. For a lookup tool this leaves the agent unable to anticipate the response or handle a not-found case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the schema only tells us attachment_id is a required UUID string. The description does not clarify where that ID comes from (presumably upload_attachment or a parent listing) or how it is formatted beyond the UUID type, so it fails to compensate for the coverage gap even for a single parameter.

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?

"Get metadata for an uploaded attachment" names a specific verb (get) and resource (metadata of an attachment), so an agent can tell this apart from a content-download or upload operation. It does not explicitly contrast with siblings such as get_page or get_page_history, but the resource is narrow enough to be unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no prerequisites, no note on when to prefer this over retrieving the attachment itself, and no mention of what to do if the attachment ID is unknown. The agent must infer usage from the name alone.

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