Skip to main content
Glama
discord-tools

discord-tools

by craft-agent

Mark a Discord chat read

discord_read_mark
DestructiveIdempotent

Marks a Discord chat read up to a specified or newest mirrored message, clearing its unread and mention badges across all user devices only when requested.

Instructions

Marks one chat read on Discord up to a message: the one named in message, else the newest message the local mirror holds for the chat. Call it only when the person asks. It clears the chat's unread state and mention badge on every device the user has, the phone included, and no other tool marks anything read. Marking an older message than one already read does not make the newer messages unread again. The chat and the message are ids the local mirror knows (find them with discord_chat_read), never names, in an existing DM, group DM, server channel or thread. The request is attempted once and never retried. An uncertain error means it may have reached Discord and was not sent again; Discord offers no way to read the state back, and marking the same message again changes nothing further, so repeating the call is harmless, but tell the person first. The person approves every mark.

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

Input Schema

NameRequiredDescriptionDefault
accountNoThe account label; left out, the only signed-in account.
channelYesThe chat to mark read: the id of a DM, group DM, server channel or thread the mirror knows, from discord_chat_read; never a name.
messageNoThe id of the message of this chat to mark it read up to; it must be one the mirror holds (read the chat first). Left out, the newest message the mirror holds for the chat.

Output Schema

NameRequiredDescriptionDefault
chatYesThe chat as people see it: `#name`, a person's name, a group's name or its id.
noteYes
channelYes
messageYesThe id of the message the chat was marked read up to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the real-world effect (clears unread state and mention badge on every device, phone included), a subtle ordering rule (marking an older message does not unmake newer ones unread), the no-retry policy, and the meaning of an `uncertain` error. It also notes Discord offers no way to read the state back, which explains why the failure mode is ambiguous, and that the person approves every mark.

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?

The effect and default target are front-loaded, then guidance, then the error semantics. Every sentence carries information, though the error/idempotency passage is a single long chain that could be split for readability.

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?

An output schema exists, so return values need no explanation; the description instead covers everything else an agent needs for a one-shot, approval-gated mutation: prerequisites, default behavior, idempotency, retry policy, and error interpretation. Nothing material is missing.

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 the baseline is 3, but the description adds meaning beyond the schema: the default for `message` is the newest message the mirror holds, ids must come from `discord_chat_read` and never be names, and the chat may be a DM, group DM, server channel, or thread. The `account` default is left to the schema, which is the only small gap.

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?

It states a specific verb and resource ('marks one chat read') plus the exact scope the mark applies to, and even spells out the default target when `message` is omitted. It also distinguishes itself from siblings by stating 'no other tool marks anything read', so no other candidate tool competes for this action.

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?

Guidance is explicit on when to call it ('only when the person asks'), where the required ids come from ('find them with discord_chat_read'), and what to do in the ambiguous case ('tell the person first' before repeating). It also rules out names as inputs and clarifies which chat types are eligible.

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