Skip to main content
Glama

contaazul_list_sales

Read-onlyIdempotent

Lista vendas (GET /venda/busca). Filtros: data_inicio/data_fim (emissão, AAAA-MM-DD), data_criacao_de/ate (AAAA-MM-DD), data_alteracao_de/ate (AAAA-MM-DDTHH:MM:SS), ids_clientes, ids_vendedores, ids_categorias, ids_produtos, numeros, situacoes (enum de BUSCA: in_process, approved, invoiced, canceled, proposal, proposal_accepted, proposal_refused, scheduled, committed; sinônimos em_andamento, aprovado, faturado, cancelado, orcamento, orcamento_aceito, orcamento_recusado e agendado são convertidos), termo_busca, ordenação por numero/cliente/data. Paginação: pagina + tamanho_pagina (10, 20, 50, 100, 200, 500 ou 1000); a resposta traz total_itens, totais e quantidades por situação. data_alteracao_de e data_alteracao_ate só valem juntos na API: informe os dois; se vier só um, o outro é completado (sem _ate = agora; sem _de = 30 dias antes do _ate).

Bulk support: accepts cliente_ids for batched execution.

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

Input Schema

NameRequiredDescriptionDefault
tiposNo
paginaNo
totaisNo
accountNo
numerosNo
origensNo
data_fimNo
situacoesNo
cliente_idNo
cliente_idsNo
data_inicioNo
termo_buscaNo
ids_clientesNo
ids_produtosNo
status_vendaNo
ids_categoriasNo
ids_vendedoresNo
tamanho_paginaNo
data_criacao_deNo
data_criacao_ateNo
data_alteracao_deNo
data_alteracao_ateNo
campo_ordenado_ascendenteNo
campo_ordenado_descendenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedInput schema / properties / campo_ordenado_ascendente
      Added value: +{
      +  "enum": [
      +    "numero",
      +    "cliente",
      +    "data"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / campo_ordenado_descendente
      Added value: +{
      +  "enum": [
      +    "numero",
      +    "cliente",
      +    "data"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / data_alteracao_ate
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_alteracao_de
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_criacao_ate
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_criacao_de
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / ids_categorias
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / ids_clientes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / ids_produtos
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / ids_vendedores
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / numeros
      Added value: +{
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / origens
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / situacoes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / termo_busca
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tipos
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / totais
      Added value: +{
      +  "enum": [
      +    "waiting_approved",
      +    "approved",
      +    "canceled",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  2. Changed8 schema fields changed
    • removedInput schema / properties / account / description
      Removed value: -"Quando o install tem mais de uma empresa Conta Azul: company_id, label, ou parcial. Ver contaazul_list_accounts."
    • removedInput schema / properties / cliente_ids / description
      Removed value: -"Bulk mode: multiple values for cliente_id"
    • removedInput schema / properties / pagina / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / pagina / minimum
      Removed value: -1
    • changedInput schema / properties / pagina / type
      Previous value: -"integer"New value: +"number"
    • removedInput schema / properties / tamanho_pagina / maximum
      Removed value: -100
    • removedInput schema / properties / tamanho_pagina / minimum
      Removed value: -1
    • changedInput schema / properties / tamanho_pagina / type
      Previous value: -"integer"New value: +"number"
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds genuinely new behaviour: which page sizes are legal (10–1000), what the response contains (total_itens, totais, quantidades por situação), and the non-obvious server rule that a lone data_alteracao_de/_ate is auto-completed (missing _ate = now, missing _de = 30 days before _ate).

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 description is front-loaded with the resource and endpoint, then groups filters, status enum, ordering and pagination in a logical order with no filler sentences. It is a dense run-on block rather than structured clauses, which costs a little readability for a 24-parameter tool.

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?

For a tool with no output schema the description does sketch the response shape (total_itens, totais, quantidades por situação), which is important. However, given 24 parameters and no schema descriptions, the unexplained parameters (tipos, origens, account, status_venda, totais, cliente_id vs ids_clientes) and the absence of defaults for pagina/tamanho_pagina leave real gaps.

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?

With 0% schema description coverage across 24 parameters, the description carries the whole burden and does so for most: date formats (AAAA-MM-DD vs AAAA-MM-DDTHH:MM:SS), the situacoes enum values plus accepted Portuguese synonyms, ordenação fields, and pagination. Several parameters still go unexplained — tipos, origens, account, status_venda, the totais enum, and the overlap between cliente_id, cliente_ids and ids_clientes — which keeps it below 5.

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 states a specific verb and resource ('Lista vendas') and even names the underlying endpoint (GET /venda/busca), so an agent knows exactly which resource is being fetched. It does not explicitly differentiate itself from siblings such as contaazul_list_sale_items, but the resource noun is distinct enough that mis-selection is unlikely.

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?

Usage is only implied: the list of filters suggests you call this when you need to retrieve sales matching date ranges, clients, products or statuses. There is no explicit when-to-use versus when-not-to-use statement, no mention of alternatives such as contaazul_list_sale_items or contaazul_get_budget, and no prerequisites stated.

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.