Skip to main content
Glama

Update Pricing Rule

hgr_update_pricing_rule
Destructive

Updates a pricing rule for one visible store. Requires confirmed=true and impactConfirmed=true because pricing rules can affect many listings. Requires HGRApi Header channel / ChannelOAuthId resolved internally.

Input Schema

NameRequiredDescriptionDefault
bodyYesWAPI PricingRulesUpdateRequest body: RuleId and supported rule fields.
confirmedYesMust be true after the user explicitly requested or confirmed the exact action.
channelOAuthIdYesChannelOAuthId returned by hgr_list_channels for the selected visible store.
impactConfirmedYesMust be true after the user explicitly confirmed the concrete high-impact consequences.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description earns credit by explaining the blast radius ("pricing rules can affect many listings") and the user-confirmation gate, which is the context an agent needs before a destructive write, though it says nothing about rollback or reversibility.

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?

Three short sentences, front-loaded with the operation and scope, then the gating requirements. No filler; only the trailing "Requires HGRApi Header channel" clause is cryptic enough to cost a point.

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

Completeness4/5

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

Output schema exists and full annotation coverage is present, so the description only needs to carry intent and guardrails, which it largely does. The gaps are the unresolved channelOAuthId sourcing and no pointer to hgr_get_pricing_rules as the source of the RuleId referenced in the body.

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 coverage is 100%, so baseline is 3; the description adds the reason the two confirmation booleans exist (high-impact changes across many listings). However, "ChannelOAuthId resolved internally" sits awkwardly against a schema that marks channelOAuthId as a required caller-supplied parameter, creating ambiguity about who supplies it.

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?

States a concrete verb and resource ("Updates a pricing rule") plus scope ("for one visible store"), which cleanly separates it from hgr_add_pricing_rule, hgr_delete_pricing_rule and hgr_get_pricing_rules. It never names those siblings explicitly, so an agent must infer the distinction from the verb alone.

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?

Gives usable preconditions: both confirmed and impactConfirmed must be true before the call, and the operation is scoped to a single visible store. It stops short of naming when to prefer a sibling (e.g. add vs. update) or that the rule id should come from hgr_get_pricing_rules.

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