Skip to main content
Glama

add_comment

Add a comment to a file with optional user mentions via @username, up to 1000 characters. Provide file ID and message to post the comment.

Instructions

Add a comment to a file.

Use @username in the message to mention other users. Maximum message length is 1000 characters.

Args: file_id: The numeric file ID to comment on. message: The comment text (max 1000 characters). Use @username to mention users.

Returns: Confirmation with the new comment ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
messageYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.3/5.0
Behavior4/5

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

Description discloses that a new comment is created, that @username mentions are supported, that the message is length-capped at 1000 characters, and that a confirmation with the new comment ID is returned. Annotations only indicate it is not read-only, idempotent, or destructive, so this adds genuinely useful behavioral context.

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?

Tightly structured with intro, constraint notes, Args, and Returns. The only minor redundancy is restating @username and max length in both the intro and the message arg, but it is small and keeps each section self-contained.

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 two-parameter mutation with an output schema, the description covers both parameters, the mention feature, the length limit, and the return value. No critical information appears missing for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of parameter meaning. It defines file_id as the numeric file ID to comment on and message as the comment text with max length and @username syntax, fully compensating for the schema's lack of descriptions.

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?

States the exact action and object: 'Add a comment to a file.' This clearly distinguishes it from sibling comment tools like list_comments, edit_comment, and delete_comment by naming the creation action and the target resource.

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?

Provides actionable constraints: use @username to mention users and maximum message length of 1000 characters. However, it does not explicitly say when to choose this tool over edit_comment, delete_comment, or list_comments; usage context is implied rather than directly stated.

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

Deploy Server

Other Tools