Skip to main content
Glama

Update Comment

update_comment

Replace the content of an existing comment in AFFiNE while preserving its thread. Use this to edit comments without starting a new thread.

Instructions

Replace the content of an existing comment. This preserves the comment thread; use create_comment for a new thread.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesComment id returned by list_comments or create_comment.
contentYesReplacement comment content accepted by AFFiNE.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
okNo
codeNo
kindNo
errorNo
detailsNo
successNo
commentIdNo
retryableNo
Behavior4/5

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

Annotations already indicate this is a write operation (readOnlyHint=false) and not destructive (destructiveHint=false). The description adds valuable context beyond annotations by noting it preserves the comment thread, which clarifies its non-destructive nature. It doesn't detail auth requirements or rate limits, but the added context is sufficient.

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?

The description is two sentences, immediately front-loaded with the verb 'Replace,' and the second sentence adds an alternative without any fluff. Every word earns its place.

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?

For a simple tool with only 2 parameters and an existing output schema, this description fully covers what the tool does, when to use it, and its key behavioral nuance (preserving the thread). The output schema handles return values, and the description is sufficiently complete.

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%, with both parameters already well-described ('Comment id returned by list_comments or create_comment' and 'Replacement comment content accepted by AFFiNE'). The tool description adds no additional parameter semantics beyond what the schema provides, so the baseline of 3 is appropriate.

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 description clearly states the action ('Replace the content of an existing comment') with a specific verb and resource. It also distinguishes from create_comment by noting that it preserves the thread, making the tool's unique purpose clear.

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

Usage Guidelines5/5

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

The description explicitly says when to use this tool (to replace content of an existing comment) and when to use an alternative ('use create_comment for a new thread'). This provides clear contextual guidance versus its sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/irfanhak123/affine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server