Skip to main content
Glama
Woovi MCP Server

Woovi MCP Server

by izaakdias

get_customer_charges

Read-only

Retrieves a customer's charges for a date range and summarizes paid, expired, open, average ticket, and payment rate, combining customer lookup and charge listing in one call.

Instructions

Find a customer, then all their charges in a period, with totals (paid, expired, open, average ticket, payment rate). Composes get_customer + list_charges, so you do not have to.

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": {
      "customer_id": "<customer_id>"
    },
    "name": "get_customer_charges"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoYYYY-MM-DD or ISO 8601 date-time.
startNoYYYY-MM-DD or ISO 8601 date-time.
accountNoConfigured account name; omit for the default account.
customer_idYesCustomer correlationID or CPF/CNPJ.
max_chargesNoHow many charges to scan at most.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description adds real behavioral context beyond them: the tool performs two underlying lookups and returns computed aggregates rather than raw rows. It omits what happens when the customer is not found and whether aggregates are affected when the scan is capped, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, with the capability stated first and the sibling-composition rationale second. The parenthetical metric list is dense but each item is distinct information.

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?

An output schema exists, so return values need no explanation, and the description covers read-only behavior, aggregation, and composition. For a 5 it should address the edge cases introduced by the max_charges cap and by a customer_id that matches nothing.

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%, so the schema already documents start/end formats, customer_id identifier forms, and the max_charges cap, making 3 the baseline. The description adds only 'in a period' for the date range and does not warn that a hit max_charges makes the totals partial, which is the one semantic gap the schema does not resolve.

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 ('Find a customer, then all their charges in a period') and names the exact outputs produced ('paid, expired, open, average ticket, payment rate'). The composition note ('Composes get_customer + list_charges') explicitly separates it from the two sibling tools whose results it merges.

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?

'Composes get_customer + list_charges, so you do not have to' gives a clear selection rule: use this instead of making both calls. It stops short of explicit exclusions, e.g. that list_charges alone is preferable when no customer lookup or aggregate is needed, so it falls short of a 5.

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