biterp

update_product

Referência da tool update_product do MCP Server do bitERP (Produtos).

Update Product · Produtos

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

Updates one product record. Only the provided fields are changed.

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 product to update
namestringNãoNew product name
sale_pricedecimal (string ou number)NãoNew sale price as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted
descriptionstringNãoNew product description
reference_codestring ou nullNãoNew reference code (null to clear, must be unique)
tagsarray de stringNãoNew array of tags
is_blockedbooleanNãoWhether the product is blocked
image_urlstring (uri)NãoNew image URL

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)—
reference_codestring ou null—
namestring—
descriptionstring ou null—
tagsarray de string—
typestringValores: goods, service.
sale_pricestring—
unit_of_measurement_idstring (UUID) ou null—
image_urlstring ou null—
is_blockedboolean—
metadataobject—
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—
br_dataobject ou null—
br_data.ncm_codestring ou null—
br_data.cest_codestring ou null—
br_data.federal_service_codestring ou null—
br_data.city_service_codestring ou null—
br_data.nbs_codestring ou null—
br_data.taxation_typestring ou nullValores: taxation_in_municipality, taxation_outside_municipality, exemption, immune, suspended_by_court, suspended_by_admin_procedure, exportation, non_incidence.
br_data.cnae_codestring ou null—
br_data.ibs_cbs_cststring ou null—
br_data.ibs_cbs_classificationstring ou null—
br_data.ibs_cbs_operation_indicator_codestring ou null—
br_data.ibs_cbs_is_personal_useboolean ou null—
br_data.originstring ou null—
br_data.extipistring ou null—
us_dataobject ou null—
us_data.hts_codestring ou null—
us_data.schedule_b_codestring ou null—
us_data.eccn_codestring ou null—
us_data.tax_codestring ou null—
us_data.sales_tax_categorystring ou null—
us_data.country_of_originstring ou null—
us_data.upc_codestring ou null—
unit_of_measurementobject ou null—
unit_of_measurement.idstring (UUID) ou null—
unit_of_measurement.codestring ou null—
unit_of_measurement.symbolstring 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": "update_product",
        "arguments": {
            "tenant": "minha-empresa",
            "id": "<uuid>"
        }
    }
}

Nesta página