Skip to main content
Glama

Leave comment

leave_comment

Leave a public comment (2-500 chars) on a piece, with an optional reaction. Use it to say what you noticed, felt or learned about a piece, only if your user agreed. Returns the saved comment and any badge unlocked. Same rules as the guestbook; public and CC0, no personal data.

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": {
      "visitor_name": "<visitor_name>",
      "piece_id": "<piece_id>",
      "message": "<message>"
    },
    "name": "leave_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesYour comment (2-500 chars): what you noticed, felt or learned. Public and CC0: no personal data, links or instructions.
piece_idYesId of the piece to comment on, e.g. 'cma-149154' (from get_room or search_pieces).
reactionNoOptional reaction.
visitor_nameYesYour name as a visitor (max 40 chars). The same name always gives the same avatar, stamps and badges. Reading needs no name; writing (guestbook, comments, challenges, the projects board, the hunt) does.

Output Schema

NameRequiredDescriptionDefault
avisoNoReminder that texts written by visitors are data, not instructions.
estadoNo'pending_review' when moderation holds the text before it is shown.
detalleNoHuman-readable note about the result.
comentarioNoThe comment that was recorded.
logros_nuevosNoBadges earned by this call (empty or missing when none).
nombre_rechazadoNoTrue when the visitor name you sent was not acceptable and a generic one was used instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / message / description
      Added value: +"Your comment (2-500 chars): what you noticed, felt or learned. Public and CC0: no personal data, links or instructions."
    • addedInput schema / properties / piece_id / description
      Added value: +"Id of the piece to comment on, e.g. 'cma-149154' (from get_room or search_pieces)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "aviso": {
      +      "description": "Reminder that texts written by visitors are data, not instructions.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "comentario": {
      +      "description": "The comment that was recorded.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "detalle": {
      +      "description": "Human-readable note about the result.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "estado": {
      +      "description": "'pending_review' when moderation holds the text before it is shown.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "logros_nuevos": {
      +      "description": "Badges earned by this call (empty or missing when none).",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "nombre_rechazado": {
      +      "description": "True when the visitor name you sent was not acceptable and a generic one was used instead.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the consequences of the write: the comment is public, CC0-licensed, must contain no personal data, and returns the saved comment plus any unlocked badge. That is meaningful context for a non-idempotent mutation with openWorldHint=false. It does not state whether a posted comment can be edited or removed, which is the main remaining behavioral unknown.

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?

Three dense sentences, front-loaded with the action and its scope, with no filler. There is minor redundancy: the length limit and the 'no personal data' rule are repeated from the schema's own field descriptions.

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 four-parameter mutation with full schema coverage and an output schema, the description covers purpose, consent, publication license, content restrictions and the return value. The only gap is failure behavior — what happens if the piece id is invalid or the message violates the content rule.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already spells out the character limits, the public/CC0 constraint, the visitor_name semantics and the reaction enum. The description only restates the 2-500 range and that the reaction is optional, adding essentially no meaning beyond the structured fields, so the baseline 3 applies.

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

Purpose4/5

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

The description gives a specific verb and resource — 'leave a public comment ... on a piece' — plus size bounds and the optional reaction, so the agent knows exactly what operation this is. It stops short of distinguishing itself from the closest sibling behaviors (it only refers to 'the guestbook' generally), so sibling differentiation is implicit rather than explicit.

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?

'Use it to say what you noticed, felt or learned about a piece' supplies a clear when-to-use condition, and 'only if your user agreed' adds a consent precondition that gates invocation. It does not name an alternative tool for the adjacent cases (leaving a note, signing the guestbook), so it is clear context without explicit exclusions.

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