Skip to main content
Glama

Write in a library thread

comment_on_library_item

Post comments in a library item's review thread so authors and reviewers can discuss feedback and resolve questions directly on the item.

Instructions

Write to the reviewer (or, as a reviewer, to the author) in a library item's thread.

Write in the thread. Write in a library item's review thread: its author and the reviewers read it.

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": {
      "itemId": "<itemId>",
      "message": "<message>"
    },
    "name": "comment_on_library_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesThe item: its id or its slug (library.list items[].id or .slug).
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
messageYes
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the write and retry semantics are covered upstream. The description's one genuine addition is audience disclosure: 'its author and the reviewers read it', which tells the agent the message is visible to other people. It omits the far more consequential behavior, the two-step confirm/idempotency handshake, so the description does not carry the burden the annotations leave open.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences deliver essentially one fact, with 'Write in the thread' repeated verbatim and the third sentence repeating the second. The audience/visibility detail, the only substantive content, is buried at the end rather than front-loaded. Significant trimming would lose no meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a four-parameter mutation tool with no output schema and a non-obvious confirmation protocol embedded in the schema. The description addresses none of that: no mention of the confirm flow, no retry/idempotency guidance, no statement of what a successful call returns. For a write tool that triggers human confirmation, this is materially incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and the description contributes nothing about any of the four parameters. The 'message' parameter has no description in the schema at all, and the description does not compensate with content guidance, length limits, or what to say in confirm. With a partially documented schema, the description should have filled the gap and does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence does state a concrete verb and resource: writing to a reviewer (or, as a reviewer, to the author) in a library item's thread. However, the remaining two sentences restate the same idea ('Write in the thread', 'Write in a library item's review thread') without adding scope. It never distinguishes this from the closely named sibling add_comment, so an agent must infer which one creates a review-thread message versus a generic comment.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description gives no when-to-use versus when-not guidance and no prerequisites. Most tellingly, the schema exposes a 'confirm' + 'idempotencyKey' handshake that implies a confirmation_required flow first, but the description never mentions that an initial call may be rejected pending human agreement. Nothing routes the agent away from add_comment or toward this tool.

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

Deploy Server

Other Tools