Skip to main content
Glama

contaazul_list_payables

Read-onlyIdempotent

Lista contas a pagar (parcelas de despesa). Filtros: tamanho_pagina (10, 20, 50 ou 100; outro valor é arredondado para baixo), pagina, data_vencimento_de, data_vencimento_ate (YYYY-MM-DD). A API do Conta Azul aceita no máximo 365 dias de vencimento por consulta; intervalos maiores (até 5 anos) são divididos automaticamente em janelas de 365 dias e o resultado volta junto, paginado e em ordem de vencimento (campo janelas_vencimento). Acima de 5 anos a chamada é recusada. Se o vencimento for omitido: com filtro de pagamento ou competência, usa esse período com 180 dias de folga de cada lado; sem filtro nenhum, usa de 182 dias atrás até 182 dias à frente; com só um lado, o outro fica a 365 dias. data_pagamento_de, data_pagamento_ate (YYYY-MM-DD, data em que foi pago; regime de caixa, pode ser usado sozinho, sem vencimento), data_competencia_de, data_competencia_ate (YYYY-MM-DD), ids_contas_financeiras (UUIDs, via contaazul_list_financial_accounts; o item da lista não traz a conta, então para separar totais por conta filtre uma conta por chamada), ids_categorias, ids_centros_de_custo, descricao, valor_de, valor_ate, status (PERDIDO, RECEBIDO, EM_ABERTO, RENEGOCIADO, RECEBIDO_PARCIAL, ATRASADO). O Conta Azul usa os MESMOS status de contas a receber (RECEBIDO aqui = pago) e o mesmo formato de item — parecido com list_receivables, mas são despesas.

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_payables"
  }
}

Input Schema

NameRequiredDescriptionDefault
paginaNo
statusNo
accountNo
valor_deNo
descricaoNo
valor_ateNo
ids_categoriasNo
tamanho_paginaNo
data_pagamento_deNo
data_pagamento_ateNo
data_vencimento_deNo
data_competencia_deNo
data_vencimento_ateNo
data_competencia_ateNo
ids_centros_de_custoNo
ids_contas_financeirasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / data_competencia_ate
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_competencia_de
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_pagamento_ate
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_pagamento_de
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / descricao
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / ids_categorias
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / ids_centros_de_custo
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / ids_contas_financeiras
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "string"
      +    }
      +  ]
      +}
    • addedInput schema / properties / valor_ate
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / valor_de
      Added value: +{
      +  "type": "number"
      +}
  2. Changed7 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 / 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. Changed6 schema fields changed
    • removedInput schema / properties / data_fim
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / data_inicio
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / data_vencimento_ate
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / data_vencimento_de
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / fornecedor_id
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / fornecedor_ids
      Removed value: -{
      -  "description": "Bulk mode: multiple values for fornecedor_id",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the bar for added context is surpassed by several details unique to this API: a hard 365-day window per query, automatic splitting up to 5 years with results merged and ordered by due date in a janelas_vencimento field, and outright rejection beyond 5 years. It further discloses the default date-window heuristics (180-day padding with payment/competência filters, ±182 days with no filter, 365 days when only one side is given), which are non-obvious and would otherwise produce silently wrong result sets.

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?

Purpose is front-loaded and the parallel-list of filters is scannable, with parenthetical clarifications attached directly to each parameter. The default-date-window passage is a long run-on chain that takes effort to parse, and a bulleted structure would have made the three fallback rules faster to apply, but no sentence is pure filler.

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?

For a 16-parameter, zero-required, zero-schema-documentation list endpoint with no output schema, the description supplies nearly everything an agent needs: pagination, all filters, date fallbacks, server-side windowing limits, and one return field (janelas_vencimento) plus ordering. The remaining omissions (a few unidentified params) are marginal against this level of coverage.

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 16 parameters and 0% schema description coverage, the description carries the full burden and mostly delivers: allowed tamanho_pagina values plus the round-down behavior, YYYY-MM-DD formats for all six date parameters, meaning of the pagamento (cash-basis) dates, UUID sourcing for account IDs, and the full status enumeration including the RECEBIDO = pago mapping. Gaps remain: the schema's "account" property is never explained, and descricao and valor_de/valor_ate are only named without stating whether they are substring match or min/max bounds.

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?

The description opens with a specific verb+resource in Portuguese: "Lista contas a pagar (parcelas de despesa)", and explicitly distinguishes itself from the closest sibling — "parecido com list_receivables, mas são despesas" — while warning that Conta Azul reuses the same statuses and item format. An agent can tell immediately this returns expense, not revenue, records.

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

Usage Guidelines5/5

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

It states concrete conditions for competing filter modes, e.g. data_pagamento can be used alone without vencimento, and it explicitly routes the agent to contaazul_list_financial_accounts to obtain UUIDs for ids_contas_financeiras. It also warns that list items don't carry the account, so separating totals per account requires one call per account — exactly the kind of when/when-not guidance that prevents a wrong call.

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.