Skip to main content
Glama

file_comment_add

Adds a comment to a file or folder so visible users and the owner are notified. Use it to share plain-text feedback or notes directly on stored items.

Instructions

Comment on a file or folder. Everyone who can see the item reads it and its owner is told; needs the account's comments.write and the API key's comments:rw.

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": {
      "path": "<path>",
      "text": "<text>"
    },
    "name": "file_comment_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesadapter:// path of the file or folder
textYesthe comment, plain text

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description does real work: it discloses the side effect (everyone who can see the item reads it), the notification to the owner, and the two required permissions (account comments.write and API key comments:rw). It does not cover error behavior or whether duplicate comments are permitted, keeping it out of the top band.

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?

Two tight sentences with the action stated first and the effects/permissions packed into the second; nothing is wasted. It could be marginally clearer if the permission clause were separated, but the structure is front-loaded and efficient.

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 two-parameter mutation tool with full schema coverage and an output schema covering return values, the description supplies the key missing context: side effects and authorization requirements. Only edge-case behavior on failure remains unmentioned.

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 both 'path' and 'text' are already documented at the schema level. The description only adds that the target may be a file or a folder, a minor clarification, 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 opens with a specific verb+resource pair ('Comment on a file or folder'), which immediately separates it from siblings like file_comment_delete and file_comments. It does not explicitly name those alternatives, so it stops short of a full 5.

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

Usage Guidelines3/5

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

The intent (posting a comment) is implied clearly enough that an agent will not confuse it with reading or deleting comments, and the permission prerequisites hint at when the call will succeed. However, there is no explicit when-to-use/when-not guidance and no named alternative.

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