Skip to main content
Glama

update_option_price

Idempotent

Updates a complement or option price in reais for an iFood merchant catalog, optionally setting an original strike-through price; use it to correct or adjust customization option pricing.

Instructions

Update a complement/option price (reais).

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": {
      "merchant_id": "<merchant_id>",
      "option_id": "<option_id>",
      "value": "<value>"
    },
    "name": "update_option_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesNew price in reais.
option_idYesOption ID.
merchant_idYesMerchant ID
original_valueNoOptional original/strike-through price.
parent_customization_option_idNoRequired for pizza-flavour complements; omit for top-level options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds only the currency unit; it does not say what happens to the option, whether ordering/availability is affected, or whether the merchant must be live.

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?

A single front-loaded sentence with no filler, so nothing is wasted. However, brevity here reflects under-specification rather than disciplined economy.

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

Completeness2/5

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

For a five-parameter price mutation with a conditional parent-option requirement and no output schema, the description is too thin. It says nothing about the pizza-complement case, validation behavior on value, or expected effect, leaving the agent dependent entirely on schema strings and annotations.

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?

Schema description coverage is 100%, so all five parameters, including the conditional parent_customization_option_id for pizza-flavour complements, are already documented in the schema. The description's '(reais)' merely echoes the schema's 'New price in reais.' and adds nothing new, making baseline 3 appropriate.

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 names a specific verb ('Update') and resource ('complement/option price'), plus the unit (reais), so an agent knows exactly what is mutated. It implicitly distinguishes itself from update_item_price by scoping to complements/options, but never states that distinction explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites, and no reference to alternatives such as update_item_price or update_option_status. The agent must infer the choice from the name alone.

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