Skip to main content
Glama
amoCRM MCP Server

amoCRM MCP Server

by AntonTera

Analytics Get Pipeline Analytics

analytics_get_pipeline_analytics

Aggregate pipeline leads by status and responsible user across a date range, returning counts for workload and conversion analysis.

Instructions

Computed pipeline analytics: leads grouped by status_id and responsible_user_id (FR-21, ADR-005).

This is a computed aggregation, not a native amoCRM analytics endpoint. Internally fetches all leads for the specified pipeline and date range (paginating as needed), then groups and counts by status_id and responsible_user_id. Latency scales with lead count (~4s per 250 leads).

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": {
      "input": "<input>"
    },
    "name": "analytics_get_pipeline_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput for analytics_get_pipeline_analytics tool (FR-21). Computed aggregation: fetches all leads for pipeline + date range, groups by status_id and responsible_user_id, returns counts. Latency scales with lead count (~4s per 250 leads).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the tool paginates internally through all leads, that it is a computed aggregation rather than a server-side endpoint, and that latency scales linearly with lead count. It omits failure modes (timeouts, limits on very large pipelines) and any permission requirements, which keeps it from a 5.

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 computed-vs-native distinction is front-loaded, followed by method and then cost. Three sentences, no filler. Minor waste from repeating the grouping fields that the nested schema description already states verbatim.

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?

An output schema exists, so return values need not be spelled out, and the description supplies the two things an agent actually needs to plan a call: how the data is produced and how long it takes. Only the absence of any failure or scaling limit caveat leaves a small gap for a tool that fetches everything.

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 description coverage is 100%, so pipeline_id and both created_at bounds are already documented in the schema, including timestamp format. The description only restates the pipeline + date-range scope, adding no syntax or defaulting detail beyond the structured fields. Baseline 3 is appropriate.

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

Purpose4/5

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

The description names a specific resource ('pipeline analytics') and states exactly what is produced: leads grouped by status_id and responsible_user_id. It also clarifies it is a computed aggregation rather than a native amoCRM endpoint, which prevents a wrong mental model. It does not differentiate against the sibling analytics_get_events, so it stops short of a 5.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not-to-use statement and no named alternative. The latency note ('~4s per 250 leads') implicitly tells an agent to be cautious on large pipelines, but the agent must infer that usage rule rather than being told.

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