Skip to main content
Glama

List deals

list_deals
Read-only

Lista negociações ativas no pipeline de vendas. Retorna contatos com valor do negócio, etapa do pipeline, status, última atualização e quando foi a última mensagem do cliente e a da empresa (ultima_mensagem_cliente_em / ultima_mensagem_empresa_em). Com sem_resposta_ha_dias, traz só quem não respondeu à última mensagem da empresa há mais desse número de dias (ex.: etapa "Orçamento enviado" + 1 dia = lista do follow-up). Com agente, traz só quem tem conversa atendida por aquele agente (contas com vários agentes; ex.: o follow-up de uma marca não pega lead de outra).

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

Input Schema

NameRequiredDescriptionDefault
funilNoSó os negócios deste funil (id ou nome). Sozinho ou junto com pipeline_stage. Funil ou etapa que não existe devolve lista vazia.
limitNoQuantidade máxima (padrão 20, máx 100)
agenteNoNome do agente (ex.: "Desafio"): só contatos com conversa atendida por ele (opcional)
statusNoFiltrar por status do contato
min_valueNoFiltrar por valor mínimo do negócio (R$)
pipeline_stageNoFiltrar por nome exato da etapa do pipeline (opcional)
sem_resposta_ha_diasNoSó contatos em que a empresa falou por último e o cliente não respondeu há mais de N dias (opcional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / funil / description
      Previous value: -"Filtra a etapa só neste funil (id ou nome)."New value: +"Só os negócios deste funil (id ou nome). Sozinho ou junto com pipeline_stage. Funil ou etapa que não existe devolve lista vazia."
  2. Changed1 schema field changed
    • addedInput schema / properties / funil
      Added value: +{
      +  "description": "Filtra a etapa só neste funil (id ou nome).",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / agente
      Added value: +{
      +  "description": "Nome do agente (ex.: \"Desafio\"): só contatos com conversa atendida por ele (opcional)",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, closed-world behavior, yet the description adds meaningful context: the exact result payload (including the client/company last-message timestamps) and the semantics of the response when the funnel/stage does not exist (empty list, documented in the schema). It stops short of stating ordering, pagination behavior, or date/timezone conventions for the returned timestamps.

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?

Front-loads what is listed and what is returned before explaining filters, so an agent gets the essentials in the first sentence. Some redundancy with the schema (the agente and sem_resposta_ha_dias explanations partially restate parameter docs), but the examples earn their place.

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?

With no output schema, the description carries the return-value burden and does so by naming the fields returned. All seven optional filters are either self-documented in the schema or elaborated in the description, which is sufficient for a read-only listing tool with sensible defaults.

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 coverage is 100%, so a 3 would be the baseline, but the description goes beyond the schema for the two trickiest filters: sem_resposta_ha_dias is clarified as "empresa falou por último e cliente não respondeu há mais de N dias" with a worked example, and agente is framed by the multi-agent account scenario. That is added meaning the parameter descriptions alone do not convey as richly.

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?

Opens with a specific verb and resource ("Lista negociações ativas no pipeline de vendas") and then enumerates the fields returned (valor do negócio, etapa, status, última atualização, timestamps de mensagem). No sibling exposes deals, so the resource alone disambiguates it from list_contacts, list_pipelines and list_pipeline_stages.

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

Usage Guidelines4/5

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

Gives concrete usage context for the non-obvious filters, e.g. "etapa 'Orçamento enviado' + 1 dia = lista do follow-up" and explains that per-agent filtering prevents cross-brand contamination. It does not state when to prefer a different tool (e.g. list_follow_ups vs this) or what to do when no filter is needed, so no explicit alternatives are offered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources