Skip to main content
Glama
GuildControl: Discord MCP

GuildControl: Discord MCP

Read exact Discord message attachment

read_message_attachment
Read-onlyIdempotent

Reads a specific attachment from an exact Discord message in a permitted guild channel or thread, returning native image/audio content with a resource-link fallback.

Instructions

Read one exact attachment from one exact message in a permitted guild channel or thread as a native MCP image or audio block, with an embedded octet-stream fallback and an equivalent private resource link. The connector refetches current Discord evidence, validates the signed CDN route, refuses redirects and credentials, enforces the configured MCP response budget while streaming, verifies supported media signatures, persists nothing, omits delivery URLs and raw payloads from metadata, and wipes transient bytes after encoding.

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": {
      "attachmentId": "<attachmentId>",
      "channelId": "<channelId>",
      "messageId": "<messageId>"
    },
    "name": "read_message_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
channelIdYesExact permitted guild channel or thread ID
messageIdYesExact Discord message ID containing the attachment
attachmentIdYesExact attachment ID from the current exact Discord message

Output Schema

NameRequiredDescriptionDefault
statusYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.0

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, yet the description adds substantial non-obvious behavior: it refetches live evidence rather than cached data, validates the signed CDN route, refuses redirects and credentials, enforces a streaming response budget, verifies media signatures, persists nothing, strips delivery URLs and raw payloads from metadata, and wipes transient bytes. These are exactly the operational and security facts an agent cannot get from the schema or annotations.

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

Conciseness3/5

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

The core purpose is front-loaded in the opening clause, which is good, but the entire definition is a single very long sentence chained with eight or more participial clauses. Every clause carries real information, yet the wall-of-text packing makes it harder to scan than a split structure would; 'one exact ... one exact' repetition adds emphasis but costs space.

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

Completeness4/5

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

With an output schema present and annotations covering the safety profile, the description is largely complete: it explains the media-block return shape, the fallback path, the resource link, and the security posture. Remaining gaps are error behavior and the actual budget limit or supported signature list, which an agent might want when choosing between this and fetching metadata first.

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?

All three parameters are required with 100% schema description coverage, and the schema already spells out that channelId must be a permitted guild channel/thread, messageId must be the containing message, and attachmentId must come from that exact current message. The description reinforces the 'one exact message / one exact attachment' precision constraint, though it adds no new per-parameter syntax or format detail; with full schema coverage this lands above the baseline 3.

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 and resource ('Read one exact attachment from one exact message') and immediately qualifies the return type as 'a native MCP image or audio block, with an embedded octet-stream fallback and an equivalent private resource link', which separates it functionally from metadata-returning siblings like get_message or read_messages. It does not name any sibling explicitly, so an agent must infer the boundary itself.

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 'in a permitted guild channel or thread' implies a permission precondition, but there is no when-to-use guidance, no statement of when to prefer this over fetching the message via get_message, and no exclusions or failure-mode routing. An agent can infer it is for pulling attachment bytes, but nothing tells it when not to call it.

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