Skip to main content
Glama
erp-mcp-server

erp-mcp-server

Listar leads (CRM)

crm_list_leads
Read-onlyIdempotent

Lists CRM leads filtered by pipeline, stage, owner, overdue status, or name/company search, with cursor pagination. Use it to retrieve recent leads and page through results.

Instructions

Lista leads com filtros (pipeline, fase, dono, inadimplência, busca por nome/empresa). Ordenado do mais recente. Paginação por cursor: passe before_created_at com o valor do próximo cursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMáximo de leads.
stageNoFiltra por fase exata (ex: "Proposta").
formatNoFormato da resposta: markdown (humano) ou json (máquina).markdown
searchNoBusca em nome e empresa (parcial).
pipelineNoFiltra por pipeline.
owner_nameNoFiltra por nome do dono/vendedor (parcial).
only_overdueNoApenas leads inadimplentes.
before_created_atNoCursor: retorna leads criados antes deste ISO (para próxima página).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false. The description adds useful behavioral context beyond those: ordering by most recent first and cursor pagination mechanics ('passe before_created_at com o valor do próximo cursor'). It does not mention rate limits or auth, but for a read-only list that is a minor gap.

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?

Three short sentences, front-loaded with purpose, then ordering, then pagination. Every sentence earns its place with no redundant or vague wording.

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?

For an 8-parameter, read-only list tool with no output schema and full annotation coverage, the description covers purpose, filters, ordering, and pagination adequately. It could mention whether filters combine with AND logic or clarify default result size, but those are largely covered by the schema defaults and limits.

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 each parameter is already documented. The description repeats the filter categories and gives a pagination instruction for before_created_at, but does not add syntax, constraints, or combination semantics beyond what the schema provides. 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?

States a specific verb ('Lista leads') and resource, and enumerates the filter dimensions. Clear enough to distinguish a list/search operation, but it does not explicitly name siblings like crm_lead_details or crm_pipeline_overview to differentiate when each should be used.

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?

Implies usage through the filter list and pagination instruction, but provides no explicit when-to-use/when-not guidance or named alternatives. It never says to use crm_lead_details for a single lead or crm_pipeline_overview for aggregate pipeline views.

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