Skip to main content
Glama

Patch comments

patch_comments
DestructiveIdempotent

Atomically resolve or reopen comment threads and edit comments the current connection wrote. An edit replaces the comment's text; the earlier text is not kept. Resolve a thread once its request is done; leave other people's threads for them unless asked.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "patch_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
threadsNoResolve or reopen threads.
commentsNoReplace the text of comments you wrote.
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds meaning they cannot convey: 'atomically' (all-or-nothing batch semantics) and 'the earlier text is not kept' (edits are irreversible, no history retained). It also discloses an authorization constraint, that edits are limited to comments the connection authored.

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 the two capabilities, then the destructive consequence, then the usage rule. No restatement of the title and no filler.

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?

With an output schema present, return values need no explanation, and the description covers atomicity, irreversibility, and authorship scope for a mutation tool. Minor gap: it does not mention that threads and comments are capped at 25 per call or that both arrays can be combined in one atomic patch.

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 coverage is 67%, so most parameter meaning is already structured, including the markdown/mention syntax for body. The description adds only the semantic that a comment edit replaces text rather than appending, and says nothing about the per-call maxItems of 25 for threads or comments.

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 names specific verbs and resources: resolving/reopening threads and editing comments, scoped to comments 'the current connection wrote.' That scope clause is what separates it from create_comments and list_comments, though no sibling is named explicitly.

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 gives concrete when-to guidance ('resolve a thread once its request is done') plus an explicit exclusion ('leave other people's threads for them unless asked'). It stops short of pointing at alternatives such as create_comments for new comments or list_comments for reading.

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