Skip to main content
Glama

Get attachment

get_attachment
Read-only

Abre um anexo de conversa (attachment_id vem de get_conversation_messages). Foto: devolve a imagem para você ver. PDF: devolve o arquivo e, se o agente já leu, o texto lido. Áudio: devolve a transcrição (transcreve na hora, com a chave de IA da conta, e grava na mensagem se ainda não houver). Vídeo e outros documentos: só a descrição.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachment_idYesID do anexo (attachments[].attachment_id em get_conversation_messages)
incluir_pessoalNotrue = permite abrir anexo de conversa do número pessoal de quem está usando a chave.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior1/5

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

Annotations declare readOnlyHint=true, yet the description says audio is transcribed on the fly using the account's AI key and “grava na mensagem se ainda não houver” — a persistent write to the message. That is a real environment modification behind a read-only hint, i.e. an annotation contradiction. The rich disclosure itself is valuable (per-type returns, AI-key cost, on-the-fly transcription), but it directly conflicts with the declared safety profile.

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 with the action and source, then a compact per-type list that is easy to scan. Dense but nearly every clause carries information; only the restatement of the attachment_id origin duplicates the schema.

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

Completeness5/5

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

There is no output schema, and the description compensates well by specifying return content for each attachment type plus the cost/authorization side effect of audio transcription. The only omission is the personal-number flag, which the schema already covers.

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 parameters are already documented; the description only restates where attachment_id comes from. It says nothing about incluir_pessoal, whose scope (accessing the personal number's conversations) is a meaningful permission decision left entirely to the schema.

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?

Specific verb + resource (“abre um anexo de conversa”) plus an explicit per-mediatype breakdown of what comes back (image, PDF file/text, audio transcript, description only). It also names the sibling that produces the ID (get_conversation_messages), so the agent can place it in the workflow without opening any 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 description establishes provenance (“attachment_id vem de get_conversation_messages”) and the effective limits (video/other documents yield only a description), which is useful implied guidance. It never states when to call this versus inspecting the message payload, when it should be avoided, or how the personal-number case selects a different path.

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