Skip to main content
Glama
erp-mcp-server

erp-mcp-server

Detalhes do lead (CRM)

crm_lead_details
Read-onlyIdempotent

Fetch a lead's complete profile, activity history, and payment installments by ID to review CRM status and financial details.

Instructions

Todos os campos de um lead + histórico de atividades + parcelas de pagamento.

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": {
      "lead_id": "<lead_id>"
    },
    "name": "crm_lead_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoFormato da resposta: markdown (humano) ou json (máquina).markdown
lead_idYesID do lead (uuid).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description's added value is disclosing the shape of the payload (activity history plus payment installments, i.e. it aggregates financial data alongside CRM data), but it says nothing about volume, pagination, permissions, or behavior when the lead_id is unknown.

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?

One compact sentence with zero filler, front-loading the most important information (that it returns all fields of a single lead). It is a fragment without a verb, but nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 usefully enumerates the three sections of the response, which is the main thing an agent needs. It stops short of covering the edge cases that matter for a detail fetch: missing lead_id handling, response size, and whether the activity history or installments are paginated.

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% and both parameters (lead_id as uuid, format as markdown/json) are documented in the schema itself. The description adds no meaning about either parameter, so the baseline of 3 applies.

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 the resource (a lead) and enumerates exactly what is returned: all fields, activity history, and payment installments. That is specific enough to separate it from a list tool like crm_list_leads, which returns many leads, even though no sibling is named explicitly. It is a noun phrase rather than a verb+resource statement, which slightly weakens it.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool, when not to, or which sibling to pick. The single required lead_id implies a per-record lookup after a lead has already been identified, but the agent has to infer that from the schema rather than from the text.

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