biterp

create_supplier

Referência da tool create_supplier do MCP Server do bitERP (Fornecedores).

Create Supplier · Fornecedores

Somente leituraDestrutivaIdempotenteMundo aberto
NãoNãoNãoNã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.

Creates one supplier record in the organization master data.

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.
typestringSimSupplier type: individual (a natural person) or company (a business entity) Valores: individual, company.
legal_namestringSimLegal name of the supplier (required). For individuals: full name. For companies: razao social.
tax_idstringNãoTax identification number of the party: CPF or CNPJ in Brazil, SSN or EIN in the United States. Unique per organization.
tax_id_typestringNãoType of the tax identification number: CPF, CNPJ, EIN or SSN (uppercase) Valores: CPF, CNPJ, EIN, SSN.
trade_namestringNãoTrade name / brand name (nome fantasia)
websitestringNãoWebsite URL
address_streetstringNãoStreet name only, without the number (logradouro). Example: "Av. Paulista"
address_numberstringNãoStreet number, up to 10 characters (numero). Example: "1000" or "S/N"
address_complementstringNãoUnit, suite, floor or building (complemento). Example: "Conj. 12"
address_districtstringNãoNeighborhood (bairro). Example: "Bela Vista"
country_codestringNãoCountry: ISO 3166-1 alpha-2 (BR), alpha-3 (BRA), numeric code (076) or name (Brasil/Brazil). Defaults to the organization's country.
statestringNãoState: code (e.g. SP), name (e.g. São Paulo) or, for Brazil, the 2-digit IBGE state code
state_idintegerNãobitERP states catalog id (alternative to state)
citystringNãoCity name (e.g. Campinas). Resolved within the given state; without a state, within the country. Ambiguous names return an error.
city_idintegerNãobitERP cities catalog id, or the 7-digit IBGE municipality code for Brazil (alternative to city)
postal_codestringNãoPostal/ZIP code (CEP)
is_blockedbooleanNãoWhether the supplier is blocked. Defaults to false.
reference_codestringNãoInternal supplier/vendor reference code
emailsarray de stringNãoArray of email addresses for the supplier (purchase/AP contacts)
phonesarray de stringNãoArray of phone numbers for the supplier
tagsarray de stringNãoArray of tags for categorization
br_dataobjectNãoBrazil-specific data. Only accepted when the organization is in Brazil.
br_data.iestringNãoState tax registration (inscricao estadual)
br_data.ie_exemptbooleanNãoWhether the party is exempt from the state tax registration
br_data.imstringNãoMunicipal tax registration (inscricao municipal)
br_data.suframastringNãoSUFRAMA registration (Manaus free trade zone)
br_data.tax_regimestringNãoTax regime: individual (natural person), simples_nacional, mei, lucro_presumido, lucro_real or outros Valores: individual, simples_nacional, mei, lucro_presumido, lucro_real, outros.
br_data.cnae_primarystringNãoPrimary CNAE activity code
br_data.cnae_secondaryarray de stringNãoSecondary CNAE activity codes
br_data.nirestringNãoCompany registry number at the state board of trade (NIRE)
br_data.pix_keystringNãoPIX key used to pay or receive from the party
br_data.pix_key_typestringNãoType of the PIX key Valores: cpf, cnpj, email, phone, random.
us_dataobjectNãoUnited States-specific data. Only accepted when the organization is in the United States.
us_data.w9_on_filebooleanNãoWhether a signed W-9 form is on file
us_data.w9_received_datestring (date)NãoDate the W-9 was received (YYYY-MM-DD)
us_data.naics_codestringNãoNAICS industry code
us_data.sic_codestringNãoSIC industry code
us_data.tax_classificationstringNãoFederal tax classification (e.g. c_corp, s_corp, llc, individual)
us_data.sales_tax_exemptbooleanNãoWhether the party is exempt from sales tax
us_data.sales_tax_exempt_certificatestringNãoSales tax exemption certificate number
us_data.sales_tax_exempt_expirystring (date)NãoExpiry date of the sales tax exemption (YYYY-MM-DD)
us_data.resale_certificatestringNãoResale certificate number
us_data.state_tax_idstringNãoState tax ID
us_data.state_of_incorporationstringNãoTwo-letter code of the state of incorporation
us_data.duns_numberstringNãoD-U-N-S number
us_data.cage_codestringNãoCAGE code
us_data.bank_namestringNãoName of the bank of the party
us_data.routing_numberstringNãoABA routing number of the bank account of the party
us_data.ach_authorizedbooleanNãoWhether ACH payments are authorized
us_data.ach_authorization_datestring (date)NãoDate the ACH authorization was given (YYYY-MM-DD)

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—
countryobject ou null—
stateobject ou null—
cityobject ou null—
br_dataobject ou null—
br_data.supplier_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.supplier_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—
created_by_user_idstring (UUID) ou null—
updated_by_user_idstring (UUID) ou null—
deleted_by_user_idstring (UUID) ou null—
created_atstring (date-time)—
updated_atstring (date-time)—
deleted_atstring (date-time) ou null—
_tenantobject—
_tenant.idstring (UUID)—
_tenant.slugstring—
_tenant.company_namestring—

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": "create_supplier",
        "arguments": {
            "tenant": "minha-empresa",
            "type": "individual",
            "legal_name": "<legal_name>"
        }
    }
}

Nesta página