Skip to main content
Glama

Last Price

set_price_guardrails

Save the price guardrails for your workspace. max_change_pct, min_margin_pct and never_below_cost hold every final price your workspace is given, from compute_price and every other pricing call. band_lower_ratio and band_upper_ratio are only the range the optimizer and elasticity functions search when a call sends no minimum or maximum. This replaces the whole saved set: an omitted field takes its default, so read get_price_guardrails first and send every rule you want to keep. Needs a Last Price credential with routing write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_change_pctNoMost a final price may move from the current price, up or down, in percent. Null (the default) for no limit.
min_margin_pctNoLeast margin over the unit cost a call sends, in percent of the price. Null (the default) for no minimum.
band_lower_ratioNoLowest price the optimizer and elasticity functions search, as a multiple of the current price. Defaults to 0.5.
band_upper_ratioNoHighest price the optimizer and elasticity functions search, as a multiple of the current price. Defaults to 2.
never_below_costNoNever price below the unit cost a call sends. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does so well: it discloses the destructive replace-all semantics, that omitted fields silently fall back to defaults, and the required auth scope. It also distinguishes the enforcement fields (which hold every final price) from the search-band fields (which only constrain optimizer/elasticity search), a behavioral distinction not visible in the schema.

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

Conciseness5/5

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

Front-loaded with the action, then the field semantics, then the replace warning, then the auth requirement. Every sentence carries distinct information; nothing is redundant with the schema.

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

Completeness5/5

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

For a five-parameter mutation tool with no annotations and no output schema, the description covers the critical unknowns: replace-vs-merge behavior, default fallback, field scoping, and credential requirements. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3; the description earns an extra point by explaining the differing roles of the parameters — max_change_pct/min_margin_pct/never_below_cost bind every pricing call, while band_lower_ratio/band_upper_ratio apply only when a call sends no minimum or maximum. It does not restate defaults or units, which the schema already covers.

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

Purpose5/5

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

States a specific verb and resource ('Save the price guardrails for your workspace') and immediately differentiates itself from the read counterpart by instructing the agent to call get_price_guardrails first. An agent can tell this apart from browse_catalog or compute_price without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: read get_price_guardrails before saving, and send every rule you want to keep because this is a full replace. It also names the credential/scope prerequisite (Last Price credential with routing write scope), which is exactly the pre-invocation guidance an agent needs.

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