Skip to main content
Glama

Compare all-in prices across providers for a test

compare_prices
Read-onlyIdempotent

For one blood test, the all-in single-test price (sticker + per-order fees) at TestWell and at every tracked direct-to-consumer provider with a verified equivalent — JustLabs, Quest, Labcorp OnDemand, Ulta Lab Tests, Walk-In Lab, HealthLabs and more — each with the date it was verified, plus TestWell's price at each lab (Quest and Labcorp can differ), a typical hospital self-pay estimate and Quest Health's own list price where it sells the same test. States the multi-test caveat (fees are paid once per order). Source: the TestWell Blood Test Price Index (CC BY 4.0).

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": {
      "test": "<test>"
    },
    "name": "compare_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
testYesTest slug or name, e.g. 'tsh', 'lipid panel', 'vitamin-d'

Output Schema

NameRequiredDescriptionDefault
hintNo
testNo
foundNo
queryNo
caveatsNo
datasetNoAbsolute https URL on test-well.com
licenseNo
providersNoSorted by all-in price, TestWell included
referenceNo
methodologyNo
cheapestSingleTestAllInNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / reference / properties / questDirectAllIn
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "USD",
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / reference / properties / questDirectCheckedAt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / reference / properties / questDirectUrl
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "caveats": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "cheapestSingleTestAllIn": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "allIn": {
      +          "description": "Sticker + that provider's per-order fees, one test ordered alone",
      +          "type": "number"
      +        },
      +        "note": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "perOrderFees": {
      +          "description": "USD",
      +          "type": "number"
      +        },
      +        "pricedAt": {
      +          "description": "Date the price was verified (YYYY-MM-DD)",
      +          "type": "string"
      +        },
      +        "provider": {
      +          "type": "string"
      +        },
      +        "providerName": {
      +          "type": "string"
      +        },
      +        "sticker": {
      +          "description": "USD",
      +          "type": "number"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "dataset": {
      +      "description": "Absolute https URL on test-well.com",
      +      "type": "string"
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "hint": {
      +      "type": "string"
      +    },
      +    "license": {
      +      "type": "string"
      +    },
      +    "methodology": {
      +      "type": "string"
      +    },
      +    "providers": {
      +      "description": "Sorted by all-in price, TestWell included",
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "allIn": {
      +            "description": "Sticker + that provider's per-order fees, one test ordered alone",
      +            "type": "number"
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "perOrderFees": {
      +            "description": "USD",
      +            "type": "number"
      +          },
      +          "pricedAt": {
      +            "description": "Date the price was verified (YYYY-MM-DD)",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "type": "string"
      +          },
      +          "providerName": {
      +            "type": "string"
      +          },
      +          "sticker": {
      +            "description": "USD",
      +            "type": "number"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "query": {
      +      "type": "string"
      +    },
      +    "reference": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "hospitalTypical": {
      +          "anyOf": [
      +            {
      +              "description": "USD",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "questDirect": {
      +          "anyOf": [
      +            {
      +              "description": "USD",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "test": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "category": {
      +          "type": "string"
      +        },
      +        "cpt": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "slug": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety bar is low; the description nonetheless adds substantive behavior: what is bundled into the price (sticker + per-order fees), that each figure carries a verification date, that TestWell's price varies by lab, and that extra reference points (hospital self-pay, Quest list price) are included. It also discloses the data source and license and warns about the multi-test fee caveat.

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

Conciseness3/5

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

The key scope is front-loaded in the first clause, but the whole definition is one long run-on sentence built from nested parentheses and em-dashes. Enumerating seven provider names ('JustLabs, Quest, Labcorp OnDemand, Ulta Lab Tests, Walk-In Lab, HealthLabs and more') is verbose relative to the value it adds over 'every tracked provider'.

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 and annotations covering safety, the definition is comfortably complete: an agent knows the inputs, the breadth of coverage, and the caveats that affect interpretation. The only soft spot is the vague 'and more', which leaves the exact provider set unverifiable from the description alone.

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% and the single 'test' parameter is fully documented with examples, so the schema carries the load. The description only reinforces that exactly one test is priced ('For one blood test'), adding no format or matching guidance beyond the schema.

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?

The description names a specific verb and resource ('the all-in single-test price ... at TestWell and at every tracked direct-to-consumer provider') and scopes it to one blood test, so an agent can immediately tell this is a price-comparison tool rather than a lookup or ordering tool. It never names a sibling (e.g. compare_provider or quote_order) to draw the boundary explicitly, so it falls short of a 5.

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?

The scope ('for one blood test', single-test pricing with per-order fees) implies the use case, but there is no explicit statement of when to call this versus compare_provider, quote_order, or get_test. The multi-test caveat hints at a boundary condition without turning it into routing guidance.

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