Skip to main content
Glama

Compare programs

compare_programs
Read-onlyIdempotent

Compares 2 to 5 programs from the same specialty side by side: monthly prices, membership, approval type, blood work, LegitScript status, extra fees, caveats and sources for each. Use it when the user names several providers and asks which is better, cheaper or more legitimate (e.g. "Henry Meds vs Hone Health for TRT"). Standalone or brand-restricted offers (such as Refills or Direct Meds Español) cannot be compared side-by-side; use get_program individually for those. Example arguments: {"category":"mens-health-hormones","ids":["henry-meds","hone-health"]}.

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": {
      "category": "<category>",
      "ids": "<ids>"
    },
    "name": "compare_programs"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesRequired. 2 to 5 program ids from the same specialty (format: array of lowercase-hyphenated ids, e.g. ["henry-meds","hone-health"]). Get ids from find_programs if you only know provider names.
stateNoOptional. The user’s U.S. state as a two-letter postal code (format: 2 letters, e.g. "TX"). Programs known to exclude this state are automatically filtered out of find_programs/search (and flagged in get_program/calculate_true_cost). Also added to outbound links; when a program does not publish state exclusions (`stateAvailability: "unconfirmed"`), remind the user to confirm at intake.
categoryYesRequired. Specialty slug (format: one of the enum values, as returned by list_categories). Map the user’s words: weight loss / Ozempic-type drugs -> glp-1-weight-loss; testosterone, ED, men’s hair loss -> mens-health-hormones; sermorelin, NAD+, glutathione, peptides, anti-aging -> longevity-peptides; menopause, HRT, women’s hair loss -> womens-health.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / state / description
      Previous value: -"Optional. The user’s U.S. state as a two-letter postal code (format: 2 letters, e.g. \"TX\"). Added to the outbound link so the program can confirm it serves that state; most programs do not publish state coverage, so remind the user to confirm at intake."New value: +"Optional. The user’s U.S. state as a two-letter postal code (format: 2 letters, e.g. \"TX\"). Programs known to exclude this state are automatically filtered out of find_programs/search (and flagged in get_program/calculate_true_cost). Also added to outbound links; when a program does not publish state exclusions (`stateAvailability: \"unconfirmed\"`), remind the user to confirm at intake."
  2. Changed8 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Required. Specialty slug (format: one of the enum values, as returned by list_categories). Map the user’s words: weight loss / Ozempic-type drugs -> glp-1-weight-loss; testosterone, ED, men’s hair loss -> mens-health-hormones; sermorelin, NAD+, glutathione, peptides, anti-aging -> longevity-peptides; menopause, HRT, women’s hair loss -> womens-health."
    • addedInput schema / properties / category / enum
      Added value: +[
      +  "glp-1-weight-loss",
      +  "mens-health-hormones",
      +  "longevity-peptides",
      +  "womens-health",
      +  "reproductive-health"
      +]
    • addedInput schema / properties / category / examples
      Added value: +[
      +  "glp-1-weight-loss",
      +  "longevity-peptides"
      +]
    • addedInput schema / properties / ids / description
      Added value: +"Required. 2 to 5 program ids from the same specialty (format: array of lowercase-hyphenated ids, e.g. [\"henry-meds\",\"hone-health\"]). Get ids from find_programs if you only know provider names."
    • addedInput schema / properties / ids / examples
      Added value: +[
      +  [
      +    "henry-meds",
      +    "hone-health"
      +  ]
      +]
    • addedInput schema / properties / ids / items / description
      Added value: +"Program id from find_programs, e.g. \"henry-meds\"."
    • changedInput schema / properties / state / description
      Previous value: -"Two-letter U.S. state code, e.g. FL"New value: +"Optional. The user’s U.S. state as a two-letter postal code (format: 2 letters, e.g. \"TX\"). Added to the outbound link so the program can confirm it serves that state; most programs do not publish state coverage, so remind the user to confirm at intake."
    • addedInput schema / properties / state / examples
      Added value: +[
      +  "TX",
      +  "FL",
      +  "CA"
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: it discloses the scope of returned data field by field and warns that a class of programs (standalone/brand-restricted) will not work with this operation, which prevents a whole failure mode. It stops short of describing latency, error behavior on mixed-specialty ids, or output format, but the added value over annotations is substantial.

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?

Front-loaded with the verb and output scope, then the usage trigger, then the exclusion and fallback, then a compact example argument. Every sentence carries distinct information — purpose, trigger, edge case, call shape — with no redundancy.

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?

For a read-only comparison tool with no output schema, the definition covers purpose, trigger, exclusion, fallback sibling, and a worked example, which is enough to call it correctly. Minor gaps remain: it never mentions the optional state parameter or what happens if ids span different specialties, though both are documented in the schema.

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 the schema already explains ids, category enum mapping, and the state filter in detail. The description only adds an example argument object and restates the same-specialty constraint already present in the ids schema description, so it does not meaningfully extend parameter meaning. Baseline 3 is appropriate.

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?

States a specific verb and resource ("Compares 2 to 5 programs ... side by side") and immediately enumerates what is compared: monthly prices, membership, approval type, blood work, LegitScript status, extra fees, caveats, sources. It also distinguishes itself from the sibling get_program for the case where side-by-side comparison is impossible, so the agent can route correctly without opening either schema.

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?

Gives an explicit trigger ("Use it when the user names several providers and asks which is better, cheaper or more legitimate") with a concrete example, plus an explicit exclusion and alternative: standalone or brand-restricted offers "cannot be compared side-by-side; use get_program individually for those." Both the when and the when-not are stated, along with the fallback tool.

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.