update_product
Referência da tool update_product do MCP Server do bitERP (Produtos).
Update Product · Produtos
| Somente leitura | Destrutiva | Idempotente | Mundo aberto |
|---|---|---|---|
| Não | Sim | 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.
Updates one product record. Only the provided fields are changed.
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 product to update |
name | string | Não | New product name |
sale_price | decimal (string ou number) | Não | New sale price as decimal string (numeric(18,6), e.g. "1500.000000"); a JSON number with at most 6 decimals is also accepted |
description | string | Não | New product description |
reference_code | string ou null | Não | New reference code (null to clear, must be unique) |
tags | array de string | Não | New array of tags |
is_blocked | boolean | Não | Whether the product is blocked |
image_url | string (uri) | Não | New 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).
| Campo | Tipo | Descrição |
|---|---|---|
id | string (UUID) | — |
tenant_id | string (UUID) | — |
reference_code | string ou null | — |
name | string | — |
description | string ou null | — |
tags | array de string | — |
type | string | Valores: goods, service. |
sale_price | string | — |
unit_of_measurement_id | string (UUID) ou null | — |
image_url | string ou null | — |
is_blocked | boolean | — |
metadata | object | — |
created_by_user_id | string (UUID) ou null | — |
updated_by_user_id | string (UUID) ou null | — |
deleted_by_user_id | string (UUID) ou null | — |
created_at | string (date-time) | — |
updated_at | string (date-time) | — |
deleted_at | string (date-time) ou null | — |
br_data | object ou null | — |
br_data.ncm_code | string ou null | — |
br_data.cest_code | string ou null | — |
br_data.federal_service_code | string ou null | — |
br_data.city_service_code | string ou null | — |
br_data.nbs_code | string ou null | — |
br_data.taxation_type | string ou null | Valores: taxation_in_municipality, taxation_outside_municipality, exemption, immune, suspended_by_court, suspended_by_admin_procedure, exportation, non_incidence. |
br_data.cnae_code | string ou null | — |
br_data.ibs_cbs_cst | string ou null | — |
br_data.ibs_cbs_classification | string ou null | — |
br_data.ibs_cbs_operation_indicator_code | string ou null | — |
br_data.ibs_cbs_is_personal_use | boolean ou null | — |
br_data.origin | string ou null | — |
br_data.extipi | string ou null | — |
us_data | object ou null | — |
us_data.hts_code | string ou null | — |
us_data.schedule_b_code | string ou null | — |
us_data.eccn_code | string ou null | — |
us_data.tax_code | string ou null | — |
us_data.sales_tax_category | string ou null | — |
us_data.country_of_origin | string ou null | — |
us_data.upc_code | string ou null | — |
unit_of_measurement | object ou null | — |
unit_of_measurement.id | string (UUID) ou null | — |
unit_of_measurement.code | string ou null | — |
unit_of_measurement.symbol | string ou null | — |
_tenant | object | — |
_tenant.id | string (UUID) | — |
_tenant.slug | string | — |
_tenant.company_name | string | — |
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>"
}
}
}
