get_customer
Referência da tool get_customer do MCP Server do bitERP (Clientes).
Get Customer · 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.
Returns one customer record by ID.
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. |
id | string (UUID) | Sim | The UUID of the customer to retrieve |
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 |
|---|---|---|
id | string (UUID) | — |
tenant_id | string (UUID) | — |
type | string | — |
tax_id | string ou null | — |
tax_id_type | string ou null | Valores: CPF, CNPJ, EIN, SSN. |
legal_name | string | — |
trade_name | string ou null | — |
website | string ou null | — |
address_street | string ou null | — |
address_number | string ou null | — |
address_complement | string ou null | — |
address_district | string ou null | — |
state_id | integer ou null | — |
city_id | integer ou null | — |
postal_code | string ou null | — |
country_code | string | — |
reference_code | string ou null | — |
bank_code | string ou null | — |
branch_number | string ou null | — |
account_number | string ou null | — |
account_type | string ou null | — |
emails | array de string | — |
phones | array de string | — |
tags | array de string | — |
is_blocked | boolean | — |
metadata | object ou null | — |
created_at | string (date-time) | — |
updated_at | string (date-time) | — |
deleted_at | string (date-time) ou null | — |
country | object ou null | — |
country.id | integer | — |
country.iso2 | string | — |
country.iso3 | string | — |
country.name | string | — |
state | object ou null | — |
state.id | integer | — |
state.state_code | string ou null | — |
state.name | string | — |
city | object ou null | — |
city.id | integer | — |
city.name | string | — |
br_data | object ou null | — |
br_data.customer_id | string (UUID) | — |
br_data.ie | string ou null | — |
br_data.ie_exempt | boolean | — |
br_data.im | string ou null | — |
br_data.suframa | string ou null | — |
br_data.tax_regime | string ou null | — |
br_data.cnae_primary | string ou null | — |
br_data.cnae_secondary | array de string ou null | — |
br_data.nire | string ou null | — |
br_data.pix_key | string ou null | — |
br_data.pix_key_type | string ou null | — |
us_data | object ou null | — |
us_data.customer_id | string (UUID) | — |
us_data.w9_on_file | boolean | — |
us_data.w9_received_date | string (date) ou null | — |
us_data.naics_code | string ou null | — |
us_data.sic_code | string ou null | — |
us_data.tax_classification | string ou null | — |
us_data.sales_tax_exempt | boolean | — |
us_data.sales_tax_exempt_certificate | string ou null | — |
us_data.sales_tax_exempt_expiry | string (date) ou null | — |
us_data.resale_certificate | string ou null | — |
us_data.state_tax_id | string ou null | — |
us_data.state_of_incorporation | string ou null | — |
us_data.duns_number | string ou null | — |
us_data.cage_code | string ou null | — |
us_data.bank_name | string ou null | — |
us_data.routing_number | string ou null | — |
us_data.ach_authorized | boolean | — |
us_data.ach_authorization_date | string (date) 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": "get_customer",
"arguments": {
"tenant": "minha-empresa",
"id": "<uuid>"
}
}
}
