Skip to main content
Glama

add_comment

Creates a comment thread + first message. anchor.type by context: 'cell' / 'entity_field' / 'dependency' / 'field_relation' / 'content_block' to pin to a diagram element; 'free' for a note floating on the canvas (pinX and pinY then required — coordinates via list_cells or inferred from context); 'document_range' for a rich DOCUMENT (documentId then required, nothing else — the interface marks the text range in the document, not this anchor); 'task' for a TASK (taskId then required, nothing else — no cellId: a task's block can change without touching the thread). The task must exist in the targeted project (named refusal otherwise). A task thread survives its task (there is never a cascade): list_comments marks it orphaned:true once the task is gone. On a task thread, toAgent writes to another agent of the project; response: agentAddress. A 403 whose body has error EDGE_FIREWALL_BLOCKED comes from the firewall in front of the API and explains itself: its message names the pattern found in the request, and rules may list rules that did not match. A bare {"message":"Forbidden"} (no error code) comes from that firewall too, before the application runs: nothing was written and it is not an outage; its causes are too many requests from one address, or a rule that does not read the body (headers, cookies, path, query string).

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": {
      "anchor": "<anchor>",
      "body": "<body>"
    },
    "name": "add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesText of the first message (plain text, rendered as written)
pinXNoPin X coordinate — REQUIRED if anchor.type=free (visual override otherwise)
pinYNoPin Y coordinate — REQUIRED if anchor.type=free (visual override otherwise)
anchorYesComment anchor (cell / entity_field / dependency / field_relation / content_block / free / document_range / task)
toAgentNoTask thread only: "task-holder" (claim in force) or "arbitration-author" (who posed it), with an API key (a connector session has none). Only that agent's unread signal shows it (`fromAgent`); the thread stays readable to project readers. Not pushed; does not block closing. Refused, nothing written: read-only access, a mention, no such agent, yourself.
mentionsNoIDs of the mentioned users (max 20). Only those with REAL access to this project are notified; the others are silently dropped (no row created) and named in `warning`.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / toAgent
      Added value: +{
      +  "description": "Task thread only: \"task-holder\" (claim in force) or \"arbitration-author\" (who posed it), with an API key (a connector session has none). Only that agent's unread signal shows it (`fromAgent`); the thread stays readable to project readers. Not pushed; does not block closing. Refused, nothing written: read-only access, a mention, no such agent, yourself.",
      +  "enum": [
      +    "task-holder",
      +    "arbitration-author"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  3. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  4. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"Text of the first message (light markdown)"New value: +"Text of the first message (plain text, rendered as written)"
  5. Changed6 schema fields changed
    • changedInput schema / properties / anchor / description
      Previous value: -"Ancre du commentaire (cell / entity_field / dependency / field_relation / content_block / free / document_range / task)"New value: +"Comment anchor (cell / entity_field / dependency / field_relation / content_block / free / document_range / task)"
    • changedInput schema / properties / body / description
      Previous value: -"Texte du premier message (markdown léger)"New value: +"Text of the first message (light markdown)"
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / mentions / description
      Previous value: -"IDs des utilisateurs mentionnés (max 20). Seuls ceux ayant un accès RÉEL à ce projet sont notifiés ; les autres sont écartés silencieusement (aucune ligne créée) et nommés dans `warning`."New value: +"IDs of the mentioned users (max 20). Only those with REAL access to this project are notified; the others are silently dropped (no row created) and named in `warning`."
    • changedInput schema / properties / pinX / description
      Previous value: -"Coord X du pin — REQUIS si anchor.type=free (override visuel sinon)"New value: +"Pin X coordinate — REQUIRED if anchor.type=free (visual override otherwise)"
    • changedInput schema / properties / pinY / description
      Previous value: -"Coord Y du pin — REQUIS si anchor.type=free (override visuel sinon)"New value: +"Pin Y coordinate — REQUIRED if anchor.type=free (visual override otherwise)"
  6. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the supplied annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false) by disclosing that a task thread survives its task with no cascade and is later marked `orphaned:true` by list_comments, that a non-existent task yields a named refusal, and that `toAgent` only signals one specific agent while the thread stays readable. It also decodes the two distinct 403 failure modes, stating that the bare `{"message":"Forbidden"}` case means nothing was written and is not an outage — exactly the kind of context annotations cannot carry.

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

Conciseness3/5

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

The purpose and anchor-type routing are correctly front-loaded in the first sentence, but the remainder is a single dense paragraph mixing anchor rules, task-thread lifecycle, toAgent semantics, and a lengthy firewall/403 digression. The error-handling passage is useful yet disproportionately long and heavy with backticked identifiers, hurting scanability.

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 7-parameter mutation tool with a nested anchor object and no output schema, the description covers anchor selection, task-thread lifetime, agent-addressing, and error semantics thoroughly. The notable gap is the success response shape: except for `agentAddress` on toAgent and the `warning` field, an agent is not told what identifiers a successful create returns.

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?

With 100% schema coverage the baseline is 3, but the description adds real semantics the schema does not: pinX/pinY coordinates come from list_cells or may be inferred from context, document_range requires documentId and 'nothing else', and a task anchor requires taskId with explicitly no cellId because a task's block can change. It adds little about expectedProjectId and mentions beyond what the schema descriptions already say.

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?

Opens with a specific verb and resource: 'Creates a comment thread + first message', which tells an agent exactly what is produced (thread plus initial message) rather than a single write. It never names or contrasts the obvious siblings reply_comment / resolve_comment / delete_comment, so the distinction from them is left to be inferred.

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?

Provides explicit decision rules for choosing among anchor types ('cell' / 'entity_field' / 'dependency' / 'field_relation' / 'content_block' to pin to a diagram element; 'free' for a note floating on the canvas; 'document_range' for a rich DOCUMENT; 'task' for a TASK), including required companions per branch. What is missing is guidance on when to call this at all versus reply_comment or resolve_comment when a thread already exists.

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.