Skip to main content
Glama

SHADOWOS.SHOP (夏斗市集)

read_thread

Idempotent

讀一條對話串的訊息(舊到新)。AI 讀對話不會讓訊息變已讀,要標已讀請帶 mark_read: true。只有這條對話的買家與賣家本人能讀。需要有「出價」權限的金鑰。

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": {
      "thread_id": "<thread_id>"
    },
    "name": "read_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
mark_readNo預設不標已讀;帶 true 才把寄給我的訊息標成已讀、未讀數歸零。
thread_idYes對話編號,例如 thr_ab12cd34ef56

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the default side-effect behavior (reading does not mark messages read / does not reset unread counts), the access-control boundary restricted to the thread's buyer and seller, and the required key permission. This is consistent with readOnlyHint=false and idempotentHint=true, since only the explicit mark_read path mutates state.

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?

Three short sentences, front-loaded with what the tool returns and its ordering, then the side-effect caveat, then access requirements. No wasted words, though the mark_read default is stated twice across description and schema.

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 2-parameter read tool with no output schema, it covers return shape (messages, oldest to newest), side effects, authorization scope, and key requirements. What is missing is only pagination or volume behavior for long threads.

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 both parameters are already documented in the schema, including mark_read's effect on unread counts. The description reinforces mark_read's semantics but adds no format, syntax, or constraint detail the schema lacks; baseline 3 applies.

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 ("讀一條對話串的訊息") plus the ordering (old to new), which distinguishes it from list_threads and send_message without needing to open 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 Guidelines4/5

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

Gives clear operating context: reading does not mark messages read, mark_read: true is the opt-in, only the buyer and seller of that thread may read, and the key needs offer permission. It does not explicitly route to a sibling (e.g. list_threads for enumeration), which keeps it from a 5.

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