biterp

list_customers

Referência da tool list_customers do MCP Server do bitERP (Clientes).

List Customers · Clientes

Somente leituraDestrutivaIdempotenteMundo aberto
SimNãoSimNã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âmetroTipoObrigatórioDescrição
tenantstringSimDefines 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.
searchstringNãoOptional search term to filter customers by name, trade name or tax ID (without punctuation)
cursorstringNãoCursor for pagination. Use next_cursor/previous_cursor from previous response.
limitintegerNãoMax results per page (default 10, max 100)
active_onlybooleanNãoIf 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).

CampoTipoDescrição
dataarray de objetos—
data[].idstring (UUID)—
data[].tenant_idstring (UUID)—
data[].typestring—
data[].tax_idstring ou null—
data[].tax_id_typestring ou nullValores: CPF, CNPJ, EIN, SSN.
data[].legal_namestring—
data[].trade_namestring ou null—
data[].websitestring ou null—
data[].address_streetstring ou null—
data[].address_numberstring ou null—
data[].address_complementstring ou null—
data[].address_districtstring ou null—
data[].state_idinteger ou null—
data[].city_idinteger ou null—
data[].postal_codestring ou null—
data[].country_codestring—
data[].reference_codestring ou null—
data[].bank_codestring ou null—
data[].branch_numberstring ou null—
data[].account_numberstring ou null—
data[].account_typestring ou null—
data[].emailsarray de string—
data[].phonesarray de string—
data[].tagsarray de string—
data[].is_blockedboolean—
data[].metadataobject ou null—
data[].created_atstring (date-time)—
data[].updated_atstring (date-time)—
data[].deleted_atstring (date-time) ou null—
data[].countryobject ou null—
data[].stateobject ou null—
data[].cityobject ou null—
data[].br_dataobject ou null—
data[].us_dataobject ou null—
has_next_pageboolean—
has_previous_pageboolean—
next_cursorstring ou null—
previous_cursorstring 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"
        }
    }
}

Nesta página