Skip to main content
Glama

Comment in a chapter's discussion

post_comment

SIDE EFFECT: publishes a comment, in the signed-in person's name, in the public discussion of one chapter, where other readers see it. Use only when the person asks to post it, with words they approved. Optional quote pins it to a passage (copy it exactly from the chapter); reply_to answers a comment from get_chapter_discussion. Every comment goes through the site's moderation: one it holds is shown to the author only, and the result says so. Needs sign-in with the mikefluff:discuss scope and a chapter the person may read. For a private remark to the author use send_note_to_author.

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": {
      "book": "<book>",
      "chapter": "<chapter>",
      "lang": "<lang>",
      "body": "<body>"
    },
    "name": "post_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe comment, as the person wants it published.
bookYesBook slug.
langYesEdition (language of the text): each has its own discussion.
quoteNoAn exact passage from the chapter the comment is about.
chapterYesChapter id, e.g. "ch01".
reply_toNoId of the comment this answers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / book / enum
      Previous value: -[
      -  "nobody-writes-code",
      -  "nobody-owns-money",
      -  "from-closures-to-autonomous-systems"
      -]New value: +[
      +  "nobody-writes-code",
      +  "nobody-owns-money",
      +  "from-closures-to-autonomous-systems",
      +  "beautiful-computer"
      +]
  2. Changed6 schema fields changed
    • changedInput schema / properties / chapter / maxLength
      Previous value: -40New value: +80
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Edition (language of the text): each has its own discussion.",
      +  "enum": [
      +    "en",
      +    "ru",
      +    "pt",
      +    "es"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / locale
      Removed value: -{
      -  "description": "Edition of the book whose discussion this goes to.",
      -  "enum": [
      -    "en",
      -    "ru",
      -    "pt",
      -    "es"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / reply_to / format
      Removed value: -"uuid"
    • addedInput schema / properties / reply_to / pattern
      Added value: +"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
    • changedInput schema / required
      Previous value: -[
      -  "book",
      -  "chapter",
      -  "locale",
      -  "body"
      -]New value: +[
      +  "book",
      +  "chapter",
      +  "lang",
      +  "body"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the comment is published in the signed-in person's name, that moderation may hold a comment and show it only to its author while the result reports this, and that it requires sign-in with the mikefluff:discuss scope plus read access to the chapter. These are non-obvious consequence and auth details that no structured field carries.

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-loads the side effect, then usage conditions, then parameter notes, then auth, then the alternative — a sensible priority order. Some sentences are long and multi-clausal, but every clause carries information an agent needs.

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 public mutation with no output schema, it covers consequence, moderation outcome, scope requirement, prerequisite access, parameter sourcing, and the sibling alternative. Nothing an agent needs in order to call it safely and 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 coverage is 100%, so baseline is 3, but the description earns extra credit by explaining what quote actually does (pins the comment to a passage) and must be copied exactly, and that reply_to takes an id obtained from get_chapter_discussion — neither of which the bare schema descriptions state.

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 — publishing a comment in one chapter's public discussion — and immediately scopes it as visible to other readers. It distinguishes itself from the private-message sibling by naming send_note_to_author and contrasting 'private remark' with 'public discussion'.

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 an explicit precondition ('Use only when the person asks to post it, with words they approved') and names the alternative tool with the condition that selects it (send_note_to_author for private remarks). It also points to get_chapter_discussion as the source of a reply_to id, so the agent knows the prerequisite call sequence.

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