Skip to main content
Glama

Search the TestWell catalog

search_tests
Read-onlyIdempotent

Search TestWell's public catalog of cash-pay lab tests and panels by keyword, biomarker, CPT code, or category. Returns name, slug, per-lab prices, sample, fasting, turnaround and order URL. Prices are stickers; every order adds one $6 lab processing fee (see quote_order for all-in totals).

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": {
      "query": "<query>"
    },
    "name": "search_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoReturn Spanish names/descriptions where a translation exists (default en)
typeNoRestrict to individual tests or bundled panels
limitNoMax results (default 10)
queryYesKeyword, biomarker, CPT code or health goal, e.g. 'vitamin d', 'TSH', '80053', 'cholesterol'
categoryNoCatalog category, e.g. 'Thyroid', 'Heart Health'
orderableOnlyNoExclude items listed as coming soon (default true)

Output Schema

NameRequiredDescriptionDefault
langNo
countNo
itemsNo
queryNo
labFeeNoUSD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / biomarkersNotReportedAt
      Added value: +{
      +  "additionalProperties": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "description": "Markers of `biomarkers` that one lab's report for this test does not carry, keyed by lab; present only where it applies. Choose the lab accordingly",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / items / items / properties / reportNote
      Added value: +{
      +  "description": "How the labs' reports for this test differ, in the medical reviewer's words; present only where they do",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / items / items / properties / eligibility / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "attestation": {
      -        "type": "string"
      -      },
      -      "minAge": {
      -        "type": "number"
      -      },
      -      "mustOrderAlone": {
      -        "type": "boolean"
      -      },
      -      "unavailableStates": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "attestation": {
      +        "type": "string"
      +      },
      +      "consentDocument": {
      +        "additionalProperties": false,
      +        "description": "A document the patient must read and acknowledge at the pay step on test-well.com before this test is ordered; url is a printable copy",
      +        "properties": {
      +          "publisher": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Absolute https URL on test-well.com",
      +            "type": "string"
      +          },
      +          "version": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "publisher",
      +          "title",
      +          "version",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "minAge": {
      +        "type": "number"
      +      },
      +      "mustOrderAlone": {
      +        "type": "boolean"
      +      },
      +      "siteCheckoutOnly": {
      +        "description": "True when the test can only be bought through the checkout on test-well.com (orderUrl), never inside an assistant's own checkout",
      +        "type": "boolean"
      +      },
      +      "unavailableStates": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / items / items / properties / eligibility / description
      Added value: +"Ordering rules set by the lab or the test's maker; present only on tests that have them"
  3. Changed3 schema fields changed
    • changedOutput schema / properties / items / items / properties / measuredTurnaround / description
      Previous value: -"Measured medians from real orders (specimen at lab → results), per lab; published only when n ≥ 30. Empty until enough data exists."New value: +"Measured medians from real TestWell orders (specimen at lab → final results), per lab, in days; a pair is published only when it has 30+ completed orders. Sample sizes are not published."
    • removedOutput schema / properties / items / items / properties / measuredTurnaround / items / properties / n
      Removed value: -{
      -  "type": "number"
      -}
    • changedOutput schema / properties / items / items / properties / measuredTurnaround / items / required
      Previous value: -[
      -  "lab",
      -  "n",
      -  "medianDays",
      -  "asOf"
      -]New value: +[
      +  "lab",
      +  "medianDays",
      +  "asOf"
      +]
  4. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / eligibility
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "attestation": {
      +          "type": "string"
      +        },
      +        "minAge": {
      +          "type": "number"
      +        },
      +        "mustOrderAlone": {
      +          "type": "boolean"
      +        },
      +        "unavailableStates": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / items / items / properties / measuredTurnaround
      Added value: +{
      +  "description": "Measured medians from real orders (specimen at lab → results), per lab; published only when n ≥ 30. Empty until enough data exists.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "asOf": {
      +        "type": "string"
      +      },
      +      "lab": {
      +        "type": "string"
      +      },
      +      "medianDays": {
      +        "type": "number"
      +      },
      +      "n": {
      +        "type": "number"
      +      },
      +      "p90Days": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "lab",
      +      "n",
      +      "medianDays",
      +      "asOf"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "count": {
      +      "type": "number"
      +    },
      +    "items": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "aliases": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "biomarkerCount": {
      +            "type": "number"
      +          },
      +          "biomarkers": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "category": {
      +            "type": "string"
      +          },
      +          "cpt": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "CPT code when verified"
      +          },
      +          "currency": {
      +            "type": "string"
      +          },
      +          "description": {
      +            "type": "string"
      +          },
      +          "fastingRequired": {
      +            "type": "boolean"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "labFee": {
      +            "description": "Flat per-order lab processing fee (charged once per order)",
      +            "type": "number"
      +          },
      +          "labs": {
      +            "description": "Labs that run it: Quest, Labcorp, BioReference",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "markdownUrl": {
      +            "description": "Absolute https URL on test-well.com",
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "orderUrl": {
      +            "description": "Prefilled cart link",
      +            "type": "string"
      +          },
      +          "orderable": {
      +            "type": "boolean"
      +          },
      +          "popular": {
      +            "type": "boolean"
      +          },
      +          "prepInstructions": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "prices": {
      +            "additionalProperties": {},
      +            "description": "Sticker price per lab; null where the lab does not run the item",
      +            "properties": {
      +              "bioreference": {
      +                "anyOf": [
      +                  {
      +                    "description": "USD",
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "labcorp": {
      +                "anyOf": [
      +                  {
      +                    "description": "USD",
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "quest": {
      +                "anyOf": [
      +                  {
      +                    "description": "USD",
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "resultsIn": {
      +            "description": "Turnaround, e.g. '1-3 business days'",
      +            "type": "string"
      +          },
      +          "reviewedAt": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "sampleType": {
      +            "type": "string"
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "test",
      +              "panel"
      +            ],
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Absolute https URL on test-well.com",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "labFee": {
      +      "description": "USD",
      +      "type": "number"
      +    },
      +    "lang": {
      +      "type": "string"
      +    },
      +    "query": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  7. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld=false, so the safety profile is covered. The description's real addition is business behavior: prices are stickers and every order adds a $6 lab processing fee, with quote_order as the path to all-in totals. That is useful, but it stops short of explaining things like result ordering, price variability across labs, or behavior when a query matches nothing.

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: capability and facets first, then return fields, then the pricing caveat with its escalation path. Every sentence carries distinct information and nothing is repeated from the title.

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?

An output schema exists, yet the description still front-loads a short field summary, which is more than enough for a six-parameter read-only search. The pricing caveat plus the pointer to quote_order closes the one ambiguity an agent would otherwise hit when reporting costs to a user.

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 six parameters, including the two enums and defaults, are already documented in the schema. The description echoes the query facets and notes that per-lab prices come back, but adds no syntax, format, or interaction detail beyond the schema — baseline 3 is appropriate.

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?

Uses a specific verb and resource — 'Search TestWell's public catalog of cash-pay lab tests and panels' — and enumerates the searchable facets (keyword, biomarker, CPT code, category), so the agent knows exactly what kind of retrieval this is. It does not explicitly contrast itself with look-alike siblings such as get_test or list_panels, so sibling differentiation is left implicit.

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?

Gives clear context for use (discovery of tests by keyword/biomarker/CPT/category) and routes the agent to the correct alternative for a related need: 'see quote_order for all-in totals.' No exclusions are stated for when not to use it, and no guidance on searching vs. browsing panels.

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