Skip to main content
Glama

DosePrices

Compare 6-Pack Stay-At-One-Clinic vs Switch-Per-Pack Costs

calculate_escalation_cost
Read-onlyIdempotent

Computes a 6-pack pharmacy cost comparison between staying at a single clinic versus switching each pack to the cheapest verified non-lock-in provider. Framed strictly as pharmacy price comparison, never clinical dosing advice.

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": {
      "market": "<market>",
      "drug": "<drug>"
    },
    "name": "calculate_escalation_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugYesCanonical lowercase medication slug.
marketYesJurisdiction code ('UK' or 'US').
provider_slugNoOptional clinic slug to compare directly against the optimal switch path.
six_step_doses_mgNoOptional 6-pack sequence of dose strengths in mg to price-compare (defaults to standard 6-step manufacturer pack sequence).
current_provider_slugNoAlias for provider_slug.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely behavioral detail — the switch path uses the cheapest *verified non-lock-in* provider — but never says what the result contains (per-pack rows, savings totals, both paths?), which matters since there is no output schema.

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?

Two front-loaded sentences with no filler; the comparison basis comes first and the scope caveat second. The caveat sentence is slightly defensive but does real work in constraining interpretation.

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

Completeness3/5

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

For a five-parameter computation with no output schema, the description explains the two paths being compared but not the shape of the answer or how the optional provider slugs alter it. It is callable but leaves the agent guessing about what comes back.

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 provider_slug/current_provider_slug alias and the 6-dose array are already documented. The description adds no extra meaning about how provider_slug changes the output or how the default dose sequence is applied, so baseline 3 applies.

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 specific computation ('6-pack pharmacy cost comparison') and names both sides of the comparison (stay at one clinic vs. switch each pack). It is clearly distinct from a per-mg cost tool, though it never names the sibling it differs from.

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

Usage Guidelines3/5

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

The scope of the calculation is implied by '6-pack' and 'cheapest verified non-lock-in provider', and the 'never clinical dosing advice' line sets a use boundary. There is no explicit statement of when to prefer this over calculate_cost_per_mg or find_dose_prices.

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