Skip to main content
Glama

A photo, voice note or file from a chat

get_chat_file
Read-only

Fetch a photo, voice note, video or document sent in a chat (its message id from read_chat). Kept for 90 days.

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": {
      "contact": "<contact>",
      "id": "<id>"
    },
    "name": "get_chat_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe message id from read_chat.
brandNoWhich assistant (its slug from get_overview `brands[].slug`). Leave out when the business has one.
contactYesThe chat's contact key, from list_chats, list_needs_you or search_chats (`contact`).

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?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that — a 90-day retention window — but never says how the file comes back (URL vs. bytes) or any size/type limits, which matters for a fetch tool.

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?

Two short sentences, zero filler, with the resource scope front-loaded and the dependency noted parenthetically. Nothing could be cut without losing information.

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 output schema, the description carries the burden of explaining the return value, and it does not — an agent cannot tell whether it receives a media URL, a base64 payload, or a reference. Retention is covered, but the return contract is not.

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 including brand and contact are already documented in structured form. The description only restates the id-to-read_chat mapping and adds no new semantics, 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?

States a specific verb (Fetch) and a concrete resource set (photo, voice note, video, document) scoped to chats, which is clearly distinct from sibling read_chat and list_chats. It doesn't explicitly name a sibling to contrast with, but the resource type alone makes the split obvious.

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?

Implies the workflow by tying the required id to 'read_chat', so an agent understands this is a second step after reading a message. However, there is no explicit when-to-use/when-not, no mention of what to do if the file is expired, and no stated alternatives.

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