Skip to main content
Glama

PlanRefer

Get plan details

get_plan_details
Read-only

Deductible, out-of-pocket maximum, and visit costs for one plan, by its official plan ID. Use this when a person asks about the costs of one plan, after search_plans gave its plan ID. When search_plans gave that plan a costNote, the note still stands: the figures here are the regular plan's and not that household's.

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": {
      "planId": "<planId>",
      "zip": "<zip>"
    },
    "name": "get_plan_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipYesThe 5 digit US ZIP code.
planIdYesThe official plan ID, for example 47501TX0040002, as search_plans returns it.
countyFipsNoThe 5 digit county code. Send it only after a tool listed the counties for a ZIP code that sits in more than one county.

Output Schema

NameRequiredDescriptionDefault
planNo
yearNoThe plan year the details are for.
stateNo
statusYes
handoffNo
messageNoWhat to do next, in plain words.
countiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this is a safe read-only, closed-world operation, so the safety profile needs no restatement. The description does add useful behavioral nuance by warning that when search_plans returned a costNote, the figures here are the regular plan's rather than that household's – an important caveat about what the numbers mean. It does not cover error behavior or how the county/ZIP affects results, which keeps it at a 3 rather than higher.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it returns, when to call it and the prerequisite, then the one caveat that matters. The payload is front-loaded and nothing is repeated from the schema or annotations.

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, the description does not need to explain return values, and annotations cover safety, so the definition is close to complete. The only gap is that the countyFips branch is left entirely to the schema, but since that schema text is explicit, the agent is not left guessing.

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 100%, so all three parameters are already documented, including the county FIPS instruction to send it only after a tool listed counties. The description reinforces that planId is the official ID as returned by search_plans, but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

The description names a specific verb-and-resource pairing: returns deductible, out-of-pocket maximum, and visit costs for exactly one plan, keyed by its official plan ID. That is concrete enough to distinguish it from search_plans (which finds plans) and from the coverage/program siblings.

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 states an explicit trigger ('when a person asks about the costs of one plan') and a prerequisite ('after search_plans gave its plan ID'), which routes the agent correctly. It stops short of naming exclusions, so it does not say what to do if the user asks about costs for multiple plans or about drug costs specifically.

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