Skip to main content
Glama

DosePrices

Calculate Official Licensed Cost Per Milligram

calculate_cost_per_mg
Read-onlyIdempotent

Calculates pack cost, official licensed total mg (strictly 4 weekly doses per standard pen/vial pack — never unlicensed 5th-dose extraction), cost-per-mg, and price spread against the cheapest verified benchmark.

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>",
      "dose_mg": "<dose_mg>"
    },
    "name": "calculate_cost_per_mg"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugYesCanonical lowercase medication slug.
marketYesJurisdiction code ('UK' or 'US').
dose_mgYesWeekly dose strength in mg (e.g. 5, 10, 15).
provider_slugNoOptional provider slug or ID to inspect against the cheapest verified benchmark.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety bar is low. The description nevertheless adds real domain context: total mg is computed strictly from 4 weekly doses and never from unlicensed 5th-dose extraction, and price spread is measured against a 'cheapest verified benchmark'. It does not cover failure modes (invalid provider slug, unavailable market/drug combo).

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?

A single front-loaded sentence that names the verb and then enumerates outputs in a logical order with no filler. The nested parenthetical about 5th-dose extraction is dense but carries genuine domain weight rather than padding.

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?

With no output schema, the description usefully enumerates the returned metrics, and annotations cover the safety profile. Missing only error/edge-case behavior and any indication of the benchmark's source, which keeps it short of full completeness.

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 100%, so the baseline is 3, but the description goes further by explaining that the spread is measured against the cheapest verified benchmark, which clarifies what provider_slug is actually compared to. It also reinforces that dose_mg is a weekly strength via the 4-dose framing.

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 verb ('calculates') and enumerates the exact outputs: pack cost, official licensed total mg, cost-per-mg, and price spread. The output set clearly separates it from a plain price lookup like find_dose_prices, though no sibling is named explicitly.

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?

Usage is only implied by the nature of the metric; there is no statement of when to prefer this over find_dose_prices or calculate_escalation_cost, and no exclusions or prerequisites. The domain rule about 4-dose packs is a constraint, not selection guidance.

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