Skip to main content
Glama

Publish or hide a comment (author)

moderate_comment
Idempotent

SIDE EFFECT: for the author only. publish shows a hidden or held comment to every reader of the chapter; hide takes one down (it stays visible to the author). Ids come from get_author_inbox or get_chapter_discussion. Needs the author signed in with the mikefluff:author scope.

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": {
      "comment_id": "<comment_id>",
      "action": "<action>"
    },
    "name": "moderate_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYespublish or hide.
comment_idYesThe comment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / comment_id / format
      Removed value: -"uuid"
    • addedInput schema / properties / comment_id / 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}$"
    • removedInput schema / properties / locale
      Removed value: -{
      -  "description": "Language of the result: en, ru, pt or es.",
      -  "enum": [
      -    "en",
      -    "ru",
      -    "pt",
      -    "es"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "comment_id",
      -  "action",
      -  "locale"
      -]New value: +[
      +  "comment_id",
      +  "action"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the key asymmetry: publish exposes the comment to every chapter reader, while hide removes it from readers but keeps it visible to the author, making the change effectively reversible and consistent with destructiveHint=false and idempotentHint=true. The required scope (mikefluff:author) and the 'author only' side effect 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?

Three short sentences, front-loaded with 'SIDE EFFECT: for the author only', then action semantics, then id provenance and auth. No filler and nothing repeated from the 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 two-parameter mutation with no output schema, the definition covers effects, actor restriction, id source, and auth scope. The only minor gap is that it does not indicate what a successful call returns or how failures (e.g. comment already published) are surfaced.

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 real meaning: it explains what each enum value does to visibility and tells the agent where comment_id values originate. That provenance guidance is not in the schema and is required to supply a valid UUID.

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?

The description names two concrete actions (publish, hide) and the exact effect of each on a comment's visibility, plus the actor restriction ('for the author only'). An agent can distinguish this moderation tool from content-creation siblings like post_comment without inspecting 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 Guidelines4/5

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

It states who may call it, supplies the upstream sources for ids (get_author_inbox, get_chapter_discussion), and names the required auth scope, which is strong contextual routing. It stops short of an explicit when-not or a named alternative for other moderation scenarios, so it is not a full 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