Skip to main content
Glama

Price an offer

set_offer_pricing
Destructive

Price an offer

Follow the market (match: one tick under the best offer elsewhere, never past your floor) or set a fixed discount off the reference price, in percent with one decimal (0.1 to 99.9, e.g. 99.5), that follows the reference price when it moves; maxDiscountPct is your floor (the lowest price you accept). An offer is served when it is the cheapest healthy source for a request; an ask above our price rests in the book and fills when it is the best available (our routes within our price down, at capacity or over the buyer's limit), never above the model's list price + 5 %. Sellers only: an account that has not accepted the selling terms gets 403 not_seller. Or send price for your own price on any model (required for a model with no reference price anywhere): USD per 1M input, output and (optionally) cached input tokens, each above 0, at most one change a second; it is served only when it is the best price for the request, and a market-priced offer switches back with pricingMode; buyers see it as the price for the model, and it can change at any time.

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": {
      "id": "<id>"
    },
    "name": "set_offer_pricing"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe offer id.
priceNoYour own price (pricingMode self), on any model: USD per 1M tokens, each leg above 0.
discountPctNo
pricingModeNomatch follows the market (one tick under the best offer elsewhere, never past your floor); discount and per_model are fixed.
maxDiscountPctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only say it is a non-idempotent, destructive write; the description goes well beyond that with serving semantics (cheapest healthy source, book-and-fill behavior), a hard ceiling (list price + 5%), a rate limit (one change per second), an auth failure mode (403 not_seller), and how a self-priced offer reverts via `pricingMode`. These are exactly the operational facts an agent cannot get from the annotations.

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

Conciseness2/5

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

The body is a single dense paragraph that chains market behavior, pricing, seller eligibility, and caps into comma-heavy clauses, with the mode definitions embedded mid-sentence. The information is valuable but not front-loaded or chunked, forcing an agent to re-parse to separate the two pricing paths.

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?

For a complex 5-parameter mutation with a nested price object and no output schema, it covers eligibility, rate limits, price ceilings, and serving rules thoroughly. What is still missing is any sense of the response/effect (what changes on success, reversibility, or behavior on error other than 403).

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 coverage is 60%, and the prose meaningfully extends it: `maxDiscountPct` is explained as a floor, `price` as USD per 1M input/output/cached tokens above zero, and `match`/`discount`/`self` semantics are spelled out. The `per_model` mode is left essentially undefined in prose (only implied as a fixed mode), which is the main gap.

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 ("Price an offer") and immediately defines the two pricing paths (market 'match' vs. own 'price'). It is clear what the tool changes, but it never names a sibling (e.g. create_offers vs. set_offer_pricing) to delimit itself from neighboring offer tools.

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 concrete selection criteria between modes: use `match` to follow the market, `discount` for a fixed percentage off the reference, and `price` when a model has no reference price anywhere. It also states a firm eligibility gate (sellers only, 403 not_seller). It lacks explicit guidance on when to use this instead of a sibling tool such as pause_offer or reset_offer_health.

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