Skip to main content
Glama
tg-secretary-mcp

tg-secretary-mcp

by developkiko

secretary_mark_read

Marks an incoming Telegram message as read on the owner’s behalf and clears everything before it in that chat; pass the latest message_id to mark the whole chat read.

Instructions

Mark an incoming message as read on the owner's behalf; everything before it in that chat is read too. Pass the latest message_id to clear the whole chat.

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": {
      "chat": "<chat>",
      "message_id": "<message_id>"
    },
    "name": "secretary_mark_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat: numeric id, @username, or part of the person's name
message_idYesmessage_id as shown by secretary_read

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false and openWorldHint=true but say nothing about scope of effect; the description fills that gap by disclosing that marking one message also marks all earlier messages in that chat as read. That cascade is exactly the kind of non-obvious side effect an agent needs. It stops short of saying whether the change is reversible or whether it propagates to the real chat platform, which keeps it from a 5.

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 clauses with zero filler, and the core action is front-loaded ahead of the cascade caveat and the parameter tip. Every sentence carries distinct information (what it does, side effect, how to use the parameter).

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?

For a two-parameter mutation tool with no output schema, the description covers the action, the cascade effect, the acting principal, and the parameter tactic. It is only marginally incomplete in not mentioning error behavior for an invalid or already-read message_id, or whether the effect is irreversible.

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 genuine meaning: it tells the agent to supply the *latest* message_id to clear an entire chat, which is behavioral guidance the schema's 'message_id as shown by secretary_read' does not convey. It does not clarify accepted values for 'chat' beyond the schema, but the added point-of-reference advice is meaningful.

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?

States a specific verb and resource ('Mark an incoming message as read') plus the actor context ('on the owner's behalf') and the cascade scope ('everything before it in that chat is read too'). The 'incoming' qualifier also distinguishes it from an outgoing/sent-message operation, so an agent can identify the operation without opening the 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 second sentence gives concrete usage tactics ('Pass the latest message_id to clear the whole chat'), which implicitly frames the bulk-clear use case. However, it never states when to use this versus the obvious alternative of reading messages first (secretary_read is only referenced indirectly in the schema) or whether a single-message mark is possible.

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