Skip to main content
Glama

goodrx_comparison

Read-only

Get a GoodRx head-to-head drug comparison by slug (for example lipitor-vs-zetia); returns the key takeaways and both drugs with price-page slugs. Use after goodrx_comparisons or goodrx_drug_info alternatives.

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": {
      "slug": "<slug>"
    },
    "name": "goodrx_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesComparison slug

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / slug / description
      Added value: +"Comparison slug"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and idempotentHint=false, so safety and external-data behavior are covered. The description's only added behavioral content is the return shape (takeaways and both drugs with price-page slugs), which is largely redundant given an output schema exists. No mention of failure behavior for an unknown slug.

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?

Two sentences, purpose and return content front-loaded, with the workflow hint last. Nothing is repeated and no filler appears.

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 one-parameter read tool with annotations and an output schema, the description covers purpose, slug format, and workflow position, which is nearly everything an agent needs. Only edge behavior (invalid or missing comparison slug) is left unaddressed.

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% and the single parameter is documented as 'Comparison slug', so the baseline is 3. The description earns an extra point by supplying the concrete slug format via the 'lipitor-vs-zetia' example, which tells the agent how to construct the value rather than just name it.

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 ('Get') and resource ('GoodRx head-to-head drug comparison') keyed by slug, and the parenthetical example 'lipitor-vs-zetia' makes the resource concrete. It also names the return contents (key takeaways plus both drugs with price-page slugs), so an agent knows exactly what it gets.

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?

'Use after goodrx_comparisons or goodrx_drug_info alternatives' places the tool in a workflow and implies the slug is discovered from those siblings first. It stops short of explicit exclusions (e.g., what to do when no comparison exists), so it is clear context without full when/when-not coverage.

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.