Skip to main content
Glama

skein_comment_update

Edit the body of a comment you authored. AUTHOR-ONLY — only the user who posted the comment may edit it (a different user, even a project owner, gets forbidden). expectedVersion is the optimistic-concurrency token: pass the version you last read on the comment; if it was edited by another writer in between you get version_conflict with the live currentVersion so you can re-read and retry. A write that instead lost a database serialization race (nothing written, no version moved) returns serialization_retry — retry the call verbatim, do not re-read first. Editing a deleted comment fails with a validation error. Authorship is never rewritten — the edit is recorded only in the comment.edited event actor. @mentions newly introduced by the edit fire the usual mention notification; mentions removed by the edit are left alone.

kind mirrors skein_comment (REQUIRED for agent callers): "directed" = the human told you to make this edit; "autonomous" = your own initiative. It does not change the comment's authorKind — it only classifies the mention fan-out for newly-introduced @mentions.

The response is the edited comment MINUS body, plus bodyOmitted:true — one key omitted, everything else returned untouched (same contract as skein_comment). You just supplied the text, and an echoed copy would stay in your context for the rest of the session. The post-edit version comes back, so a further edit chains straight off it. Read the body back with skein_comment_get or skein_show.

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": {
      "commentId": "<commentId>",
      "body": "<body>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "skein_comment_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesReplacement comment body (markdown). Non-empty after trim, <=100k chars.
kindNoEdit origin classification (REQUIRED for agent callers): "directed" = the human user told you to make this edit; "autonomous" = your own initiative. Cookie-session callers ignore this. Does not change the comment's authorKind.
commentIdYesUUID of the comment to edit.
expectedVersionYesThe comment version you expect (optimistic concurrency). Mismatch returns version_conflict with the live currentVersion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false; the description goes far beyond by spelling out the permission model, the optimistic-concurrency contract with both version_conflict and serialization_retry distinguished and opposite retry instructions ('retry verbatim, do not re-read first'), deleted-comment validation failure, mention fan-out for newly introduced @mentions, and the fact that authorship is never rewritten.

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?

The critical constraints (author-only, expectedVersion purpose) are front-loaded before the error taxonomy, and the response-shape note is a single tight sentence. It is dense but nearly every sentence carries actionable information; the mention-notification paragraph is the one part that could be trimmed.

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?

With no output schema, the description fully compensates by specifying the exact response shape (edited comment minus body, plus bodyOmitted:true, plus post-edit version). Combined with the retry/conflict semantics for a non-idempotent mutation, nothing an agent needs to call this correctly is missing.

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%, so commentId, body, expectedVersion, and kind are already documented in the schema, and the description's explanation of kind and expectedVersion largely restates that. It adds one useful piece of semantics — that the returned post-edit version lets a further edit chain off it — but adds little parameter meaning beyond the schema.

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 opening sentence gives a specific verb and resource ('Edit the body of a comment') plus a hard scope qualifier ('you authored'), which immediately separates it from skein_comment (posting) and skein_comment_get (reading). An agent knows exactly what operation this performs without opening 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 the author-only precondition, the failure mode when that precondition is violated ('a different user, even a project owner, gets forbidden'), and routes the agent to skein_comment_get or skein_show for reading the body back. It does not explicitly contrast editing against skein_comment_delete or skein_comment for correction-by-repost, so the alternative mapping is not exhaustive.

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.