Skip to main content
Glama

get_comments

Read-only

Read a wiki page's discussion comments, including hidden text/images, authors, timestamps, and reply parents. Filter by author or comment ID and paginate long comment parts without posting.

Instructions

Read a page's discussion, including hidden text/images, author, time and reply parent.

Filter author by a case/diacritic-insensitive substring or select an exact comment_id. Items are comment parts, capped at max_chars; follow next_cursor for the full text. Attachment IDs work directly with read_attachment/get_material_image. This never posts comments.

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": {
      "page_id": "<page_id>"
    },
    "name": "get_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
authorNo
cursorNo
page_idYes
refreshNo
max_charsNo
comment_idNo

Output Schema

NameRequiredDescriptionDefault
itemsYes
totalYes
page_idYes
metadataYes
page_totalYes
source_urlYes
next_cursorYes
total_partsYes
discussion_availableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, yet the description adds genuinely new behavioral facts: hidden content is included, results are chunked into comment parts capped at max_chars, and full text requires following next_cursor. The attachment-ID interoperability note and the explicit 'never posts' guarantee are exactly the kind of context annotations cannot express.

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?

Four short sentences, purpose front-loaded, then filtering modes, then pagination/truncation, then cross-tool and scope notes. No restatement of the title and no filler; each line carries distinct information.

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?

An output schema exists, so return-value detail is unnecessary, and the pagination/truncation model is covered. What remains thin is refresh's effect (does it bypass a cache and change cost/latency?) and any ordering guarantee for the returned comment parts, which matters for a 7-parameter paginated reader.

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?

With 0% schema description coverage the description must carry the load, and it explains the non-obvious parameters well: author is a case/diacritic-insensitive substring match, comment_id is an exact selection, max_chars caps comment parts, and cursor is the next_cursor continuation. It leaves limit (page size, max 20) and especially refresh (cache invalidation semantics) undocumented.

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 ('Read a page's discussion') and enumerates the payload shape (hidden text/images, author, time, reply parent). Negative scoping ('This never posts comments') and cross-references to read_attachment/get_material_image make it clearly distinguishable from sibling read tools.

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 concrete selection rules between the two lookup modes: substring author filtering versus an exact comment_id. It also states the read-only boundary ('never posts comments'). It stops short of saying when to prefer this over get_page or search for discussion content, so no explicit sibling alternative is named for that case.

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