Skip to main content
Glama

List Comments

list_comments
Read-onlyIdempotent

Read open and resolved comment threads on the latest envelope session. Pass the envelope's document_id, not a session ID. Returns thread IDs (threads[].id), text, replies, resolution state, and enabled/read_only flags. Use a thread ID with reply_comment to add a message or with resolve_comment to change its resolution state. Requires envelopes:read.

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": {
      "document_id": "<document_id>"
    },
    "name": "list_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds what annotations cannot: the required envelopes:read permission and the fact that results are scoped to the latest envelope session. It does not discuss pagination or size limits, which is the only real gap.

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?

Front-loaded with the core action, followed by the parameter gotcha, then the return fields, then the companion tools. Every sentence is useful, though the enumeration of return fields partially overlaps the existing output schema.

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 one-parameter read tool with annotations and an output schema already supplied, the definition covers action, scoping, parameter disambiguation, permissions, and next-step tools. Nothing an agent needs in order to call it correctly 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 description coverage is 0%, so the description has to carry this alone, and it does the most important thing: it clarifies that document_id is the envelope's document identifier, not a session ID. It stops short of giving the expected format (e.g. UUID) for the single parameter, so it is strong but not exhaustive.

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 open and resolved comment threads') plus scope ('latest envelope session'). The sibling tools reply_comment and resolve_comment operate on threads rather than listing them, so an agent can distinguish this tool from them without opening any 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?

Gives explicit routing: use a returned thread ID with reply_comment to add a message, or with resolve_comment to change resolution state. It also warns to pass the envelope's document_id rather than a session ID, which is exactly the kind of usage constraint that prevents misinvocation.

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