Skip to main content
Glama

b24_task_comments_list

Read-onlyIdempotent

List a task's comments from forum or chat storage, falling back to chat when the forum is empty and returning the source so empty results are trustworthy.

Instructions

List a task's comments, from wherever this portal actually keeps them.

Bitrix stores task comments in one of two places and does not tell you which: the legacy forum topic (task.commentitem.getlist) or the task's chat. On a chat-based portal forumTopicId is null and the forum method answers with an empty list even when comments exist — confirmed live: a comment added through b24_task_comment_add returned a real id, was visible in the chat, and the forum method still reported nothing. Reading only the forum therefore produces a false "no comments", which reads exactly like a write that failed.

So: read the forum first, and when it comes back empty fall back to the task chat. source says which one answered, so an empty result is trustworthy rather than ambiguous.

Returns: JSON: {"comments": [...], "count": , "source": "forum"|"chat"|"none", "task_id": }. Chat-sourced entries carry "is_system": true for Bitrix's own notices (task created, time logged), which have no author.

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": {
      "id": "<id>"
    },
    "name": "b24_task_comments_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTask id.
limitNoMax comments to return when they live in the task chat.
webhook_urlNoOverride the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default.
personal_webhookNoAct as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond by disclosing the dual storage backends, the confirmed failure mode of the forum-only read, and the meaning of 'source' and 'is_system'. This is exactly the kind of context an agent cannot get from structured fields.

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 key point is front-loaded in the first sentence and the ordering ('read forum first, fall back to chat') is clear. Some of the narrative around the live confirmation is longer than strictly needed, but it earns its place by justifying the design.

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?

Covers the one real hazard (false empty result), documents the return shape even though an output schema exists, and explains the source/is_system fields. Nothing needed to call this correctly is missing.

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% and the schema itself explains id, limit (chat-only), and the webhook override precedence. The description adds no syntax or format detail for any parameter, so the baseline 3 applies.

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?

Opens with a specific verb+resource ('List a task's comments') and immediately scopes it ('from wherever this portal actually keeps them'). This clearly separates it from the sibling write tool b24_task_comment_add and from general task getters like b24_task_get.

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?

Gives clear operating context: this is the read path, and the empty-result ambiguity is explained along with the trust model ('source' makes an empty result trustworthy). It does not explicitly name a sibling as an alternative or state when-not to use it, so it falls short of a 5.

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