Skip to main content
Glama

Resumir cobranças por situação

inter_resumir_cobrancas
Read-onlyIdempotent

Summarizes charge totals by status for a date range, including receivable, received, overdue, canceled, and expired amounts. Use it to answer how much to receive or received.

Instructions

Totais (quantidade e valor) das cobranças de um período, por situação: a receber, recebido, vencido, cancelado, expirado... Mais barato que listar quando a pergunta é 'quanto tenho a receber' ou 'quanto recebi'. Aceita os mesmos filtros da listagem. Exemplos: 'quanto tenho a receber em dezembro' -> data_inicial='2026-12-01', data_final='2026-12-31'; 'quanto recebi em novembro' -> filtrar_por='pagamento', data_inicial='2026-11-01', data_final='2026-11-30'.

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": {
      "data_inicial": "<data_inicial>",
      "data_final": "<data_final>"
    },
    "name": "inter_resumir_cobrancas"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipoNoTipo de cobrança
pagadorNoTrecho do nome do pagador
cpf_cnpjNoCPF ou CNPJ do pagador (com ou sem pontuação)
situacaoNoSituação no Inter: RECEBIDO, A_RECEBER, ATRASADO (vencido), CANCELADO, EXPIRADO, MARCADO_RECEBIDO...
data_finalYesFim do período (AAAA-MM-DD; no máximo 366 dias depois do início; pode ser futura)
seu_numeroNo'Seu número' da cobrança (identificador de quem emitiu, até 15 caracteres)
filtrar_porNoQual data o período filtra (padrão: vencimento)vencimento
data_inicialYesInício do período (AAAA-MM-DD)
response_formatNo'markdown' para texto legível (padrão), 'json' para dados estruturadosmarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the bar is lower. The description adds value beyond them by disclosing that the response is aggregated (quantity and value per situation) and that the same filter set as the listing applies, which is not derivable from the annotations.

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 the tool returns, then the cheap-vs-listing rationale, then two worked examples — a logical order with no filler sentences. The trailing ellipsis in the situation list is slightly loose and partially duplicates the schema enum.

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?

With no output schema, the description compensates by saying the result is totals of quantity and value per situation, which is enough to know what comes back. It does not specify response formatting or how the situation buckets are labeled, a minor gap for a 9-parameter aggregation tool.

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 the baseline is 3; the description exceeds it by mapping intent to parameters, showing that "quanto recebi" requires filtrar_por='pagamento' with the period dates, which clarifies how the default vencimento filter would otherwise mislead. It does not explain situacao enum nuances (e.g., MARCADO_RECEBIDO) beyond what the schema already says.

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?

States a specific verb and resource (totais de quantidade e valor das cobranças) plus the aggregation dimension (por situação) and the period scope. It also distinguishes itself functionally from the listing tool ("Mais barato que listar", "Aceita os mesmos filtros da listagem"), so an agent can separate it from inter_listar_cobrancas without opening either schema.

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 triggers ("quanto tenho a receber", "quanto recebi") and explicitly routes enumeration-style needs to the listing tool on cost grounds. It stops short of stating when-not to use it (e.g., needing per-charge detail, where inter_consultar_cobranca would apply), so it is clear but not exhaustive.

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