Skip to main content
Glama

file_comments

Retrieve all comments on a file or folder, including author, body, and timestamp, to review discussions attached to that item.

Instructions

The comments on a file or folder: {comments: [{id, user_id, body, created_at, …}], node_id}. Everyone who can see the item reads them.

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>"
    },
    "name": "file_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesadapter://path

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

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden; it does disclose that anyone who can see the item can read the comments, which is a useful permission-model fact. It says nothing about ordering, pagination, behavior on items with zero comments, or what happens if the path is inaccessible, so the disclosure is partial.

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 definition is a single compact fragment with the core resource front-loaded and the return shape tucked into the same sentence. It is efficient, though the fragment style and the "…" ellipsis in the shape sketch are slightly informal for a specification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not explain return values — yet it partly duplicates them while omitting usage guidance and ordering/pagination behavior relevant to a list of comments. For a one-parameter read tool this is adequate but has clear gaps.

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 100% for the single `path` parameter, already documented as `adapter://path`, so the structured field does the work. The description adds no meaning about the path format or whether file and folder paths are treated differently, leaving this at baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (comments on a file or folder) and implies a read by describing the returned collection, which distinguishes it from file_comment_add and file_comment_delete. However, there is no explicit verb such as "list" or "fetch", so the agent must infer the operation from the return shape rather than from a stated action.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no mention of when to fetch comments, no prerequisites, and no reference to the sibling write tools (file_comment_add, file_comment_delete) that an agent might otherwise confuse it with. The only routing signal is an implicit one from the phrase "the comments on."

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