Skip to main content
Glama

Зависшие сделки

b24_stale_deals
Read-onlyIdempotent

Find open deals stalled for a set number of days or missing open tasks, ranked by value, to see what's stuck and where revenue is at risk.

Instructions

Открытые сделки без движения: не менялись больше days дней и/или без открытых задач. Возвращает count, amount_at_risk и deals с reasons («нет изменений N дней», «нет открытых задач»), самые крупные первыми. Отвечает на «что у нас зависло» и «где теряем деньги». Требует BITRIX24_WEBHOOK_URL (входящий вебхук с правами crm, task, user); лимит 2 запроса/с соблюдается автоматически. Только чтение.

Input Schema

NameRequiredDescriptionDefault
daysNoСколько дней без изменений считать зависанием
limitNo
category_idNo
responsible_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds genuinely new operational context: the required BITRIX24_WEBHOOK_URL with crm/task/user scopes, the 2 req/s rate limit being handled automatically, the return shape (count, amount_at_risk, deals with reasons) and the largest-first ordering.

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?

Front-loaded with the definition, then return shape, use cases, and prerequisites; each sentence carries information. Slightly list-dense but no filler.

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?

With no output schema, the description does the heavy lifting by describing the return payload and ordering, plus auth and rate-limit prerequisites. The main gap is that the filtering parameters (category_id, responsible_id, limit) are never explained, so an agent may not realize it can scope the search.

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

Parameters2/5

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

Schema description coverage is only 25% — just 'days' is documented — and the description adds no semantics for limit, category_id, or responsible_id, which are undocumented in both places. It only echoes the 'days' meaning already present in the schema, so it fails to compensate for the coverage gap.

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 a precise verb+resource: finds open deals that have not changed in more than N days and/or lack open tasks. Scope ('открытые сделки без движения'), the returned payload, and the business question it answers are all named, distinguishing it from b24_search_deals and b24_pipeline_report.

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 usage context via the questions it answers ('что у нас зависло', 'где теряем деньги'), which tells the agent when this tool is the right call. It stops short of naming alternative siblings or stating when not to use it.

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