Skip to main content
Glama

Find plans by company name, EIN, state, size, recordkeeper or plan type

search_plans
Read-onlyIdempotent

Find plans. Give at least one of name, ein, state or recordkeeper; the other filters narrow the list. Each result is a short summary: call get_plan with its ein and pn for the profile.

With name, results are ordered by match score, then size; without it, largest plans first. Plans that ended are hidden unless include_ended=true. Paging stops at offset 500: narrow the filters to see more.

Retirement plans by default. kind=welfare finds health and welfare plans instead (call get_plan_insurance with the result's ein and pn), and kind=any both.

Price: $0.01 per call, paid in USDC on Base (mainnet) with x402 (MCP transport), or from card credits (an app signed in at /connect, or an 'Authorization: Bearer ' header). Without payment the tool returns the payment requirements. Errors and empty results aren't charged.

Same data as GET /search of the Plan Data API.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_plans"
  }
}

Input Schema

NameRequiredDescriptionDefault
einNoSponsor EIN (9 digits, dashes allowed). Lists every retirement plan under it.
kindNoWhich plans: retirement (the default: pension and retirement plans), welfare (health and welfare plans, for `get_plan_insurance`) or any (both, best match first). Each result says its `kind`. With welfare, only name, ein, state and the participant filters apply.retirement
nameNoCompany or plan name, as you know it. Fuzzy: typos, missing suffixes (Inc, LLC), DBA names and former names all match, and the last word can be a prefix ("acm" for Acme). Results come best match first with a `match` score.
limitNoResults per page (1-50).
stateNoTwo-letter state of the sponsor's address, e.g. TX.
offsetNoResults to skip (0-500).
plan_typeNoPlan type: 401k, 403b, cash_balance, db_and_dc, defined_benefit, esop, ira_based, money_purchase, other_dc, profit_sharing, stock_bonus, target_benefit, type_not_coded, db, dc. `dc` = any defined contribution plan, `db` = any defined benefit plan.
filer_sizeNolarge = files Schedule H (generally 100+ participants; has providers and fees); small = 5500-SF or Schedule I.
max_assetsNoMaximum end-of-year net assets in dollars.
min_assetsNoMinimum end-of-year net assets in dollars, latest plan year.
recordkeeperNoRecordkeeper, any brand old or new ("Empower", "Great-West", "Fidelity"). Matched to the firm's family, so Great-West and Prudential filings count as Empower. Only plans that filed a Schedule C can match. `meta.query.recordkeeper` shows what it resolved to.
include_endedNoInclude plans that are terminated, merged into another plan, or stopped filing. Off by default.
max_participantsNoMaximum end-of-year total participants.
min_participantsNoMinimum end-of-year total participants.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / kind
      Added value: +{
      +  "default": "retirement",
      +  "description": "Which plans: retirement (the default: pension and retirement plans), welfare (health and welfare plans, for `get_plan_insurance`) or any (both, best match first). Each result says its `kind`. With welfare, only name, ein, state and the participant filters apply.",
      +  "enum": [
      +    "retirement",
      +    "welfare",
      +    "any"
      +  ],
      +  "title": "Kind",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Company or plan name, as you know it. Fuzzy: typos, missing suffixes (Inc, LLC), DBA names and former names all match, and the last word can be a prefix (\"starb\"). Results come best match first with a `match` score."New value: +"Company or plan name, as you know it. Fuzzy: typos, missing suffixes (Inc, LLC), DBA names and former names all match, and the last word can be a prefix (\"acm\" for Acme). Results come best match first with a `match` score."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses ordering rules (match score then size with name, largest-first without), that ended plans are hidden unless include_ended=true, that paging stops at offset 500, and a full payment model ($0.01/call in USDC on Base via x402 or card credits, uncharged errors and empty results, payment requirements returned when unpaid). Those are exactly the traits an agent cannot infer from the annotations and must know before calling.

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?

Front-loaded and well-organized: invocation rule first, then result shape and follow-up, then ordering/paging, then kind variants, then price. Every block carries information, though the payment paragraph is dense and the multi-line wrapping makes it slightly harder to scan than a tighter single flow would be.

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

Completeness5/5

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

For a 14-parameter, no-output-schema tool this covers what an agent needs: what a result contains ("a short summary"), the ein+pn handoff to get_plan, ordering, paging limits, ended-plan visibility, kind branching, and the cost/payment flow. Nothing essential to a correct call is left implicit.

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 adds cross-parameter meaning the schema does not: that presence of name changes result ordering, that offset is a hard stop not just a max, and that welfare mode restricts which filters apply. It does repeat some per-parameter text already present in the schema (fuzzy name matching, kind semantics), which keeps it from a 5.

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?

Opens with a specific verb+resource ("Find plans") and immediately scopes it by the identifying filters, and it distinguishes the three modes (retirement default, kind=welfare, kind=any) so an agent knows exactly which dataset it is searching. It also names the follow-up siblings get_plan and get_plan_insurance, separating this search tool from the profile tools.

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

Usage Guidelines5/5

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

States an explicit precondition ("Give at least one of name, ein, state or recordkeeper; the other filters narrow the list") and describes how optional filters behave versus the required seed. It routes to alternatives by condition: get_plan for a retirement profile, get_plan_insurance for a welfare result, and "narrow the filters to see more" when paging hits the offset-500 cap.

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