Skip to main content
Glama

b24_events_stats

Read-onlyIdempotent

Check event feed statistics and receiver configuration to diagnose missing Bitrix24 events, distinguishing 'nothing happened' from 'nothing is listening' and showing store, counts, and cursors.

Instructions

Report what the event feed has captured and whether it is configured.

Use this first when events are not arriving: it distinguishes "nothing happened" from "nothing is listening".

Returns: JSON: {"store": {"path","exists","size_bytes"}, "counts": {...}, "receiver": {"configured","path"}, "cursors": {...}}. receiver.configured false means the outgoing-webhook endpoint refuses every delivery until BITRIX_EVENT_TOKEN is set.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "b24_events_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real behavioral context beyond that: the distinction between empty results and a non-listening feed, and the fact that receiver.configured=false means the webhook endpoint refuses deliveries until BITRIX_EVENT_TOKEN is set — an auth prerequisite the agent could not infer from annotations.

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 purpose and the when-to-use directive are front-loaded in two tight sentences, which is exactly right. The 'Returns:' block repeats a return shape already covered by the output schema, so it is partly redundant, but the note on receiver.configured earns its place.

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?

Given a zero-parameter diagnostic tool with full annotation coverage and an output schema, the description supplies what structured fields cannot: the diagnostic intent, the fallback condition, and the meaning of the one failure-flag field. It does not explain what the counts or cursor entries represent, which would round out a troubleshooting call.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4 and there is no parameter meaning for the description to add. Nothing is missing on this dimension.

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 opens with a specific verb and scope: report what the event feed has captured and whether it is configured. The line 'distinguishes "nothing happened" from "nothing is listening"' makes it recognizably the diagnostic tool rather than a data-retrieval sibling like poll or history.

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?

It gives an explicit trigger condition: 'Use this first when events are not arriving.' That is clear when-to-use guidance. It stops short of naming when not to use it or which sibling to call after the diagnosis succeeds, but the diagnostic entry-point role is unambiguous.

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