Skip to main content
Glama

Get attachment

codecks_get_attachment
Read-onlyIdempotent

Retrieve a single Codecks attachment by ID, with optional field selection and safe relation expansion, for markdown or JSON responses.

Instructions

Get a single attachment by ID with optional field selection.

Available fields: content, createdAt, title Relations: account, card, creator, file

Example selection: ["content", "createdAt", "title"]

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>"
    },
    "name": "codecks_get_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesModel ID
selectionNoSelection array (fields/relations)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datamarkdown
include_relationsNoAttempt safe first-level relation expansion with guarded fallback

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered without description help. The description adds useful content on field selection and relation names, but says nothing about behavior on an unknown ID, whether relations are expensive, or how response_format changes the result.

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?

Front-loaded purpose sentence followed by two short structured lists and one example; nothing is padded. The example array largely restates the field list just above it, a minor redundancy, but the overall shape is efficient.

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?

For a simple read tool with full annotation coverage and a fully described schema, most needs are met. However, the description lists relations without explaining how to request them — whether they go in `selection` or in `include_relations` — leaving the interaction between those two parameters unresolved for the agent.

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

Parameters4/5

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

Schema coverage is 100%, which sets the baseline at 3, and the description goes beyond the schema by enumerating valid field names (content, createdAt, title) and relation names, which the schema only gestures at with "Selection array (fields/relations)". The concrete example of a selection array adds real meaning an agent could not read off the schema alone.

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 a single attachment by ID" names a specific verb (get), resource (attachment) and cardinality (single), which implicitly separates it from codecks_list_attachment. It does not explicitly name the sibling or state the exclusion, but the purpose is unambiguous without opening the schema.

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 "by ID" tells the agent a known identifier is required, implying this is a lookup rather than a discovery tool, but there is no explicit when-to-use/when-not guidance and no pointer to codecks_list_attachment for enumerating attachments.

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

Deploy Server

Other Tools