Skip to main content
Glama
amoCRM MCP Server

amoCRM MCP Server

by AntonTera

Leads Create Complex

leads_create_complex

Create a lead together with an embedded contact and company in one atomic amoCRM API call, validating field limits for consistent CRM records.

Instructions

Create a lead with embedded contact and company in one atomic call (FR-20, C-4).

Posts to /api/v4/leads/complex for atomic creation. Constraints enforced via Pydantic validation: max 1 contact, max 1 company, max 40 custom fields per entity.

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": "leads_create_complex"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput for leads_create_complex tool (FR-20, C-4). Atomic creation of lead + optional contact + optional company. Constraints: max 1 contact, max 1 company, max 40 custom fields per entity.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does meaningful work: it states that creation is atomic (all-or-nothing) and that Pydantic validation enforces max 1 contact, max 1 company and max 40 custom fields per entity, which tells the agent what will be rejected. It omits permission/auth requirements, rate limits, and what happens when the embedded contact or company already exists, so coverage is good but not complete.

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 sentence is front-loaded and the constraint sentence is the second most useful thing an agent needs. 'Atomic' is stated twice (once in prose, once via the endpoint path) and the ticket references (FR-20, C-4) appear twice, adding minor noise.

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?

An output schema exists, so return values need not be described, and the nested input structure is fully annotated in the schema while the description supplies the cardinality constraints. For a single-parameter atomic-create tool, nothing essential to correct invocation is missing beyond optional auth notes.

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?

Schema description coverage is 100% and the nested objects are already documented, so the baseline would be 3; the description adds beyond that by stating cardinality and size constraints (max 1 company, max 1 contact, max 40 custom fields per entity) that the schema does not encode. It does not clarify the relationship between status_id and pipeline_id, leaving a small gap.

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 gives a specific verb and resource plus a distinguishing capability: 'Create a lead with embedded contact and company in one atomic call.' That contrasts implicitly with a plain single-record create, so an agent can tell what is unique here. It never names a sibling (e.g. leads_create) outright, so the differentiation is inferred rather than stated.

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?

'In one atomic call' implies the case where lead, contact and company must be created together, but there is no explicit when-to-use/when-not or named alternative such as leads_create or leads_update. Guidance is present only by implication.

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