Skip to main content
Glama
discord-mcp

discord-mcp

messages_get

Read-onlyIdempotent

Fetch a single Discord message by ID to inspect its current content or verify it exists before editing; use it for one specific message rather than reading recent messages.

Instructions

Purpose: Fetch a single Discord message by ID.

When to use: - Inspect a specific message referenced by another tool or by the user. - Verify message exists / read its current content before editing.

When NOT to use: - Reading a window of recent messages → use messages_read.

Example: {channel_id:"112233445566778899", message_id:"999000999000999000"}

Returns: {message_id, channel_id, author_id, author_name, content, components?, embeds?, attachments?, flags?, timestamp, edited, pinned}. This is a selected message projection, not the entire Discord message. content is unchanged; rich fields are preserved in full when supplied by Discord, including unknown component types. Empty or absent upstream fields stay empty or absent.

Readable text: The human-readable MCP response derives text from original content, nested Text Display components in order, then embed author/title/description/fields/footer. All derived text is fenced as untrusted Discord data; raw structured fields are also untrusted. Attachment and media URLs are metadata only and are not fetched.

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": {
      "channel_id": "<channel_id>",
      "message_id": "<message_id>"
    },
    "name": "messages_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idYesChannel containing the message
message_idYesMessage to fetch

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.34.1
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "attachments": {
      -        "description": "Raw attachment metadata; URLs are not fetched",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "author_id": {
      -        "description": "Discord user ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "author_name": {
      -        "type": "string"
      -      },
      -      "channel_id": {
      -        "description": "Discord channel ID (snowflake)",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "components": {
      -        "description": "Complete raw Discord component tree",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "type": {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "type"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "content": {
      -        "description": "Original Discord content; may be empty for component-only messages",
      -        "type": "string"
      -      },
      -      "edited": {
      -        "type": "boolean"
      -      },
      -      "embeds": {
      -        "description": "Complete raw Discord embeds",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "flags": {
      -        "description": "Original Discord message flags, when supplied",
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "message_id": {
      -        "description": "Discord message ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "pinned": {
      -        "type": "boolean"
      -      },
      -      "timestamp": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "message_id",
      -      "channel_id",
      -      "author_id",
      -      "author_name",
      -      "content",
      -      "timestamp",
      -      "edited",
      -      "pinned"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "attachments": {
      +        "description": "Raw attachment metadata; URLs are not fetched",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "author_bot": {
      +        "type": "boolean"
      +      },
      +      "author_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "author_name": {
      +        "type": "string"
      +      },
      +      "channel_id": {
      +        "description": "Discord channel ID (snowflake)",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "components": {
      +        "description": "Complete raw Discord component tree",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "type": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "content": {
      +        "description": "Original Discord content; may be empty for component-only messages",
      +        "type": "string"
      +      },
      +      "edited": {
      +        "type": "boolean"
      +      },
      +      "edited_timestamp": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "embeds": {
      +        "description": "Complete raw Discord embeds",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "flags": {
      +        "description": "Original Discord message flags, when supplied",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "message_id": {
      +        "description": "Discord message ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "message_reference": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "channel_id": {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          "guild_id": {
      +            "type": "string"
      +          },
      +          "message_id": {
      +            "description": "Discord message ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "pinned": {
      +        "type": "boolean"
      +      },
      +      "reactions": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "referenced_author_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "referenced_message_state": {
      +        "enum": [
      +          "present",
      +          "deleted",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "started_thread_id": {
      +        "description": "Discord channel ID (snowflake)",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "timestamp": {
      +        "type": "string"
      +      },
      +      "webhook_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "message_id",
      +      "channel_id",
      +      "author_id",
      +      "author_name",
      +      "author_bot",
      +      "content",
      +      "timestamp",
      +      "edited",
      +      "pinned"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "author_id": {
      -        "description": "Discord user ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "author_name": {
      -        "type": "string"
      -      },
      -      "channel_id": {
      -        "description": "Discord channel ID (snowflake)",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "content": {
      -        "type": "string"
      -      },
      -      "edited": {
      -        "type": "boolean"
      -      },
      -      "message_id": {
      -        "description": "Discord message ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "pinned": {
      -        "type": "boolean"
      -      },
      -      "timestamp": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "message_id",
      -      "channel_id",
      -      "author_id",
      -      "author_name",
      -      "content",
      -      "timestamp",
      -      "edited",
      -      "pinned"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "attachments": {
      +        "description": "Raw attachment metadata; URLs are not fetched",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "author_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "author_name": {
      +        "type": "string"
      +      },
      +      "channel_id": {
      +        "description": "Discord channel ID (snowflake)",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "components": {
      +        "description": "Complete raw Discord component tree",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "type": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "content": {
      +        "description": "Original Discord content; may be empty for component-only messages",
      +        "type": "string"
      +      },
      +      "edited": {
      +        "type": "boolean"
      +      },
      +      "embeds": {
      +        "description": "Complete raw Discord embeds",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "flags": {
      +        "description": "Original Discord message flags, when supplied",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "message_id": {
      +        "description": "Discord message ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "pinned": {
      +        "type": "boolean"
      +      },
      +      "timestamp": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "message_id",
      +      "channel_id",
      +      "author_id",
      +      "author_name",
      +      "content",
      +      "timestamp",
      +      "edited",
      +      "pinned"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observedv0.22.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent safety profile, but the description adds substantive behavior beyond them: the result is a 'selected message projection, not the entire Discord message,' empty upstream fields stay empty, unknown component types are preserved, derived text is fenced as untrusted data, and attachment/media URLs are metadata only and never fetched. These are real operational constraints an agent cannot infer from the annotations.

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?

Purpose and when-to-use are front-loaded in labeled sections, which makes routing fast. The returns block runs long and includes low-value filler such as 'Empty or absent upstream fields stay empty or absent,' though most of it carries genuine information about the projection.

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?

For a two-parameter read tool, the definition covers purpose, alternatives, return shape, trust boundaries, and the fact that media URLs are not fetched. Nothing an agent needs in order to call it correctly is missing; the return-field listing is largely redundant with the existing output schema, but that is a conciseness issue rather than a completeness gap.

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%, so both parameters are already documented with patterns, establishing a baseline of 3. The worked example adds modest value by showing the two IDs supplied together in the correct pairing, but it introduces no constraint or format detail beyond what the schema already states.

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?

Description opens with a specific verb+resource: 'Fetch a single Discord message by ID.' It names the scope (single message) and explicitly contrasts with the sibling that handles the other scope, so an agent can distinguish it from `messages_read` without inspecting either schema.

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

Usage Guidelines5/5

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

Provides explicit 'When to use' (inspecting a referenced message, verifying content before editing) and 'When NOT to use' with the alternative named ('Reading a window of recent messages → use `messages_read`'). This is the full when/when-not/alternative pattern.

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