list_customers
Referência da tool list_customers do MCP Server do bitERP (Clientes).
List Customers · Clientes
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Sim | Não | Sim | Não |
Descrição
A descrição abaixo é a que o servidor publica, em inglês, e é o texto que o agente lê para decidir quando usar a tool.
Lists customer records for one organization with cursor-based pagination (default 10 per page). Supports optional search and active-only filtering.
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
tenant | string | Sim | Defines which tenant will have data read or changed. Use list_tenants first and prefer the returned tenant slug. Writes are permanent, so when the user has more than one tenant you must confirm the tenant before any write and never assume or reuse a previous choice without confirmation. UUID is accepted only when already known safely. |
search | string | Não | Optional search term to filter customers by name, trade name or tax ID (without punctuation) |
cursor | string | Não | Cursor for pagination. Use next_cursor/previous_cursor from previous response. |
limit | integer | Não | Max results per page (default 10, max 100) |
active_only | boolean | Não | If true, only returns customers that are not blocked. Defaults to false. |
Resposta
O structuredContent da resposta traz os campos abaixo (até dois níveis; o schema completo está no outputSchema publicado no tools/list).
| Campo | Tipo | Descrição |
|---|---|---|
data | array de objetos | — |
data[].id | string (UUID) | — |
data[].tenant_id | string (UUID) | — |
data[].type | string | — |
data[].tax_id | string ou null | — |
data[].tax_id_type | string ou null | Valores: CPF, CNPJ, EIN, SSN. |
data[].legal_name | string | — |
data[].trade_name | string ou null | — |
data[].website | string ou null | — |
data[].address_street | string ou null | — |
data[].address_number | string ou null | — |
data[].address_complement | string ou null | — |
data[].address_district | string ou null | — |
data[].state_id | integer ou null | — |
data[].city_id | integer ou null | — |
data[].postal_code | string ou null | — |
data[].country_code | string | — |
data[].reference_code | string ou null | — |
data[].bank_code | string ou null | — |
data[].branch_number | string ou null | — |
data[].account_number | string ou null | — |
data[].account_type | string ou null | — |
data[].emails | array de string | — |
data[].phones | array de string | — |
data[].tags | array de string | — |
data[].is_blocked | boolean | — |
data[].metadata | object ou null | — |
data[].created_at | string (date-time) | — |
data[].updated_at | string (date-time) | — |
data[].deleted_at | string (date-time) ou null | — |
data[].country | object ou null | — |
data[].state | object ou null | — |
data[].city | object ou null | — |
data[].br_data | object ou null | — |
data[].us_data | object ou null | — |
has_next_page | boolean | — |
has_previous_page | boolean | — |
next_cursor | string ou null | — |
previous_cursor | string ou null | — |
Exemplo de chamada
Requisição tools/call com os parâmetros obrigatórios. Os valores são ilustrativos: troque minha-empresa pelo tenant devolvido por list_tenants e cada <...> por um valor real.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_customers",
"arguments": {
"tenant": "minha-empresa"
}
}
}
