biterp

get_customer

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

Get Customer · 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.

Returns one customer record by ID.

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.
idstring (UUID)SimThe 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).

CampoTipoDescrição
idstring (UUID)—
tenant_idstring (UUID)—
typestring—
tax_idstring ou null—
tax_id_typestring ou nullValores: CPF, CNPJ, EIN, SSN.
legal_namestring—
trade_namestring ou null—
websitestring ou null—
address_streetstring ou null—
address_numberstring ou null—
address_complementstring ou null—
address_districtstring ou null—
state_idinteger ou null—
city_idinteger ou null—
postal_codestring ou null—
country_codestring—
reference_codestring ou null—
bank_codestring ou null—
branch_numberstring ou null—
account_numberstring ou null—
account_typestring ou null—
emailsarray de string—
phonesarray de string—
tagsarray de string—
is_blockedboolean—
metadataobject ou null—
created_atstring (date-time)—
updated_atstring (date-time)—
deleted_atstring (date-time) ou null—
countryobject ou null—
country.idinteger—
country.iso2string—
country.iso3string—
country.namestring—
stateobject ou null—
state.idinteger—
state.state_codestring ou null—
state.namestring—
cityobject ou null—
city.idinteger—
city.namestring—
br_dataobject ou null—
br_data.customer_idstring (UUID)—
br_data.iestring ou null—
br_data.ie_exemptboolean—
br_data.imstring ou null—
br_data.suframastring ou null—
br_data.tax_regimestring ou null—
br_data.cnae_primarystring ou null—
br_data.cnae_secondaryarray de string ou null—
br_data.nirestring ou null—
br_data.pix_keystring ou null—
br_data.pix_key_typestring ou null—
us_dataobject ou null—
us_data.customer_idstring (UUID)—
us_data.w9_on_fileboolean—
us_data.w9_received_datestring (date) ou null—
us_data.naics_codestring ou null—
us_data.sic_codestring ou null—
us_data.tax_classificationstring ou null—
us_data.sales_tax_exemptboolean—
us_data.sales_tax_exempt_certificatestring ou null—
us_data.sales_tax_exempt_expirystring (date) ou null—
us_data.resale_certificatestring ou null—
us_data.state_tax_idstring ou null—
us_data.state_of_incorporationstring ou null—
us_data.duns_numberstring ou null—
us_data.cage_codestring ou null—
us_data.bank_namestring ou null—
us_data.routing_numberstring ou null—
us_data.ach_authorizedboolean—
us_data.ach_authorization_datestring (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>"
        }
    }
}

Nesta página