Skip to main content
Glama

Update product

update_product
DestructiveIdempotent

Atualiza os dados de um produto ou serviço existente. Use para editar descrição, preço, ativar ou desativar do catálogo.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "product_id": "<product_id>"
    },
    "name": "update_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNovo nome do produto (opcional)
typeNoNovo tipo (opcional)
priceNoNovo preço (opcional)
featuresNoNovas características (opcional)
is_activeNoAtivar ou desativar o produto: "true" ou "false"
product_idYesID do produto (obtido via list_products)
descriptionNoNova descrição (opcional)
recorrenciaNoCobrança do valor (opcional)
preco_numeroNoValor em número para o negócio (opcional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / preco_numero
      Added value: +{
      +  "description": "Valor em número para o negócio (opcional)",
      +  "type": "number"
      +}
    • addedInput schema / properties / recorrencia
      Added value: +{
      +  "description": "Cobrança do valor (opcional)",
      +  "enum": [
      +    "unico",
      +    "mensal",
      +    "anual"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare this is a destructive, idempotent, non-read-only mutation, and the description is consistent with that. The description adds little beyond saying it updates existing product data and can activate/deactivate, but it does not explain partial-update behavior, what happens to omitted fields, or the consequence of deactivation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and then the use case. There is minimal waste, though 'dados de um produto' is slightly generic compared with the field list that follows.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation with a destructive hint, the description is quite brief. The schema and annotations carry most of the weight, but the description omits useful context such as whether updates are partial or full and how the two price fields relate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage across all 9 parameters, the schema already documents each field and its enum values. The description mentions a few editable fields (description, price, activation) but adds no syntax, constraints, or explanation of interactions such as price vs. preco_numero.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Atualiza os dados de um produto ou serviço existente.' The word 'existente' implies it acts on already-created products, distinguishing it implicitly from create_product, though it does not name that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage context: edit description, price, activate or deactivate in the catalog. It does not provide explicit exclusions or name alternatives like create_product, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources