Skip to main content
Glama

price_raise

Quote and confirm a higher price for a refused seat after a spending-limit stop, then resume the run once the user approves the quoted price.

Instructions

After a price refusal stopped a run (exit 24, run_status says so), the refused seat's model can be given a higher price here, in two calls. step "quote": looks up the cheapest OpenRouter host that can serve the refused seat and returns a text for the USER plus its hash shown; nothing is written. step "confirm": with shown and reason (the user's own yes, in their words), writes the price row into pricing.user.json of this project, which every later run here reads. SHOW THE USER THE QUOTED TEXT AND GET THEIR YES IN THE CHAT BEFORE YOU CALL CONFIRM. NEVER CONFIRM ON YOUR OWN: a higher price raises what every later call of that seat is counted at against the spending limit. Confirm spends nothing. Continue the run with resume_run; it stops at the spending-limit gate once more because a price changed, and the person answers that gate. Tree members, advice runs and seats whose price limit the chain itself sets are refused (a tree member goes through tree_decide).

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": {
      "run": "<run>",
      "step": "<step>"
    },
    "name": "price_raise"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYes
stepYes
shownNo
reasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.3

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: quote writes nothing, confirm writes a persistent price row into pricing.user.json that affects all later runs, confirm itself spends nothing, and a price change re-triggers the spending-limit gate. The side effects on the spending limit and the hard prohibition on autonomous confirmation are exactly the behavioral context an agent needs.

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?

Front-loaded with the trigger condition and the two-step shape before the safety and side-effect details. It is dense but nearly every sentence adds operational value; the repeated uppercase confirmation warning is slightly redundant, which keeps it off a 5.

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?

Given four parameters, no annotations, and no output schema, the description covers trigger, both steps, side effects, safety gate, and follow-up call. The only soft spot is the unspecified shape of the run identifier and the exact refusal surface for non-tree exclusions, but nothing critical to correct invocation is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it defines three of four parameters: step's 'quote' vs 'confirm' semantics, `shown` as the hash returned by quote, and `reason` as the user's own yes in their words. `run` is only implied by the exit-24 context, but the mapping is unambiguous.

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?

Names a specific action (raise the price of a refused seat) and scopes it to a precise trigger (a run stopped by a price refusal, exit 24). It also distinguishes itself from the relevant sibling by noting that tree members must go through tree_decide instead.

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 states when to use it (after a price refusal), gives the two-step sequence quote-then-confirm with the precondition that the user must say yes in chat, and names two alternatives/exclusions (tree members via tree_decide, chain-set price limits refused). It also says what to do afterwards (resume_run).

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