Skip to main content
Glama

Explain Price Sources

explain_price_sources
Read-onlyIdempotent

U.S. care only, for users anywhere. For non-U.S. care, explain coverage without calling this tool or substituting U.S. prices. Explain only the returned source labels, counts, confidence, and caveats. Separate available prices from unavailable placeholders; if none are available, say so without inventing prices or source categories.

Input Schema

NameRequiredDescriptionDefault
slugYesExact Loa entity slug from search_entities.
limitNoMaximum number of prices to inspect, default 50, max 100.
cpt_codesNoOptional CPT codes to explain. If omitted, explains current indexed prices.

Output Schema

NameRequiredDescriptionDefault
entityYes
caveatsYes
cpt_codesYes
provenanceYes
price_countYesTotal resolver rows, including unavailable placeholders.
source_summaryYes
available_price_countYesRows with a usable price; excludes unavailable placeholders.
unavailable_price_countYesRows without a usable price; not evidence of a published or verified price.
comparable_mrf_price_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / available_price_count
      Added value: +{
      +  "description": "Rows with a usable price; excludes unavailable placeholders.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / price_count / description
      Added value: +"Total resolver rows, including unavailable placeholders."
    • addedOutput schema / properties / provenance / properties / source_url / description
      Added value: +"Supporting source link. A CMS Hospital Price Transparency policy page is not the hospital source file; do not attribute hospital-published prices to CMS."
    • addedOutput schema / properties / unavailable_price_count
      Added value: +{
      +  "description": "Rows without a usable price; not evidence of a published or verified price.",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "entity",
      -  "cpt_codes",
      -  "price_count",
      -  "comparable_mrf_price_count",
      -  "source_summary",
      -  "caveats",
      -  "provenance"
      -]New value: +[
      +  "entity",
      +  "cpt_codes",
      +  "price_count",
      +  "available_price_count",
      +  "unavailable_price_count",
      +  "comparable_mrf_price_count",
      +  "source_summary",
      +  "caveats",
      +  "provenance"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world behavior, so the description's job is narrower. It adds real behavioral context: the geographic scope of the underlying data, the requirement to distinguish available prices from unavailable placeholders, and the prohibition on inventing prices or source categories when none exist. It says nothing about volume, rate limits, or how the tool behaves when a slug is unknown, but the core honesty constraints are disclosed.

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?

Three sentences, and the geographic scoping constraint is front-loaded before the output-handling rules. It is dense rather than padded, though the two 'do not invent / do not substitute' prohibitions overlap slightly and could be consolidated.

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 an output schema present and annotations covering safety, the description only needs to supply domain and interpretation constraints — scope, placeholder handling, and prohibitions on fabrication — and it does all of these. What remains missing is minor: it never states the failure mode for an unknown slug or whether cpt_codes narrows the explanation set.

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% and every parameter is documented there, including the slug source and the cpt_codes/limit bounds. The description adds no parameter-level meaning at all — it never mentions slug, cpt_codes, or limit. Baseline 3 is appropriate when the schema already carries the full parameter burden.

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 pairs a specific verb ('explain') with a specific resource ('price sources') and names the exact output surface it covers: source labels, counts, confidence, and caveats. It also scopes the data ('U.S. care only'), which separates it from price-returning siblings like get_entity_prices or compare_local_prices. It does not explicitly state that it retrieves records for a Loa entity slug, so an agent must infer the retrieval step.

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 a hard exclusion rule: non-U.S. care must be explained without calling this tool, and U.S. prices must never be substituted. That is a clear when-not-to-use condition. It stops short of naming a sibling alternative for the non-U.S. or plain-price-listing cases, which keeps it from a 5.

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