Skip to main content
Glama
ilyaberdysh

amocrm-mcp

by ilyaberdysh

count_and_sum_leads

Count deals and sum their prices using custom filters without record limit. Get total count, total price, and breakdown by pipeline. Exclude closed deals to count only active deals.

Instructions

Подсчитывает количество и общую сумму сделок по фильтрам БЕЗ лимита в 200 записей. Возвращает {count, total_price, by_pipeline: [{pipeline_id, count, total_price}]}. ИСПОЛЬЗУЙ ЭТОТ ИНСТРУМЕНТ (а не get_leads) для: подсчёта количества сделок, суммы продаж, сравнения периодов, ответов на 'сколько всего сделок'. Параметр exclude_closed=true исключает закрытые сделки (выигранные 142 и проигранные 143) — используй для подсчёта АКТИВНЫХ сделок.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pipeline_idNoID воронки
status_idsNoID этапов/статусов
responsible_user_idsNoID ответственных менеджеров
created_byNoID создателей сделки
date_fromNoДата создания от (unix timestamp)
date_toNoДата создания до (unix timestamp)
updated_at_fromNoДата изменения от (unix timestamp)
updated_at_toNoДата изменения до (unix timestamp)
closed_at_fromNoДата закрытия от (unix timestamp)
closed_at_toNoДата закрытия до (unix timestamp)
price_fromNoМинимальная сумма
price_toNoМаксимальная сумма
queryNoПоиск по названию
exclude_closedNotrue = исключить закрытые (выигранные + проигранные), оставить только АКТИВНЫЕ сделки
Behavior4/5

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

Describes return format, explains no limit, and clarifies exclude_closed behavior. Lacks mention of read-only nature or rate limits, but with no annotations, description carries burden effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise, front-loaded with purpose and usage guidance; every sentence adds value.

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?

Completes the tool definition with return format, key differentiators, and parameter purpose. With 14 parameters and no output schema, additional context would be helpful but not necessary.

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 covers all parameters with descriptions, so baseline 3. Description adds context for exclude_closed but no additional parameter-level detail beyond schema.

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 explicitly states the tool counts and sums deals with filters, no 200-record limit, and distinguishes from get_leads.

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

Usage Guidelines5/5

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

Explicitly instructs to use this tool over get_leads for counting, summing, comparing periods, and provides guidance on exclude_closed parameter for active deals.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ilyaberdysh/amocrm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server