Skip to main content
Glama

AthenaDS Solutions

Compare hospitals for one service

compare_procedure
Read-onlyIdempotent

For one DRG or APC code, optionally in one state: number of hospitals, lowest, median, highest, quartiles and the hospitals themselves (lowest first).

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": {
      "code": "<code>"
    },
    "name": "compare_procedure"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesDRG or APC code, e.g. "470" or "APC 5072"
stateNo

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 readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds real value by disclosing the returned shape (count, lowest, median, highest, quartiles, hospital rows ordered lowest first), but it leaves open what the figures actually measure and whether the hospital list is capped or paginated.

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 fragment that front-loads the input scope and then lists outputs; no wasted words. It reads as compressed notes rather than prose, but every clause carries information.

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?

With no output schema, the description must carry the return contract, and it does list the metrics and ordering. It is still incomplete for a statistics tool: it never says what the lowest/median/highest values represent (price, payment, charge) or how many hospital rows come back, which an agent needs to report results correctly.

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 coverage is 50%: the schema documents the code format with examples, while state is bare. The description only confirms state is optional and limited to one value, and adds nothing about the expected state format (name vs. abbreviation) or code-matching behavior. Baseline 3 is appropriate.

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 (compare) on a specific resource (hospitals for one DRG/APC service) and enumerates the returned aggregates. An agent can tell this is an aggregate-comparison tool rather than a lookup or listing, though it never names the sibling (hospital_profile, search_prices) it should be chosen over.

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?

"For one DRG or APC code, optionally in one state" implies the use case and the scope of filtering, but gives no when-to-use versus when-not guidance and no alternatives for looking up a single hospital or pricing across services. Usage is inferred rather than stated.

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