Skip to main content
Glama

search_outcomes

Read-onlyIdempotent

Search treatments (categories + specific drugs/procedures) and conditions by the names used in the published data. The query must appear in a name as a whole word or phrase (e.g. 'wegovy', 'back pain', 'ct scan'); generic names, abbreviations and drug classes are not translated, so search the brand or the specific treatment. Returns slugs for get_treatment_outcomes / get_condition_outcomes plus headline overturn rates.

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_outcomes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results per type (default 10)
queryYesOne treatment or condition name, e.g. 'wegovy', 'back pain', 'imaging'

Output Schema

NameRequiredDescriptionDefault
_noteYes
corpusYes
sourceYes
resultsYes
_coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / _coverage / properties / content_reviewed_at / anyOf
      Previous value: -[
      -  {
      -    "format": "date",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / _coverage / properties / continuation / properties / url / $ref
      Removed value: -"#/properties/_coverage/properties/sources/items/properties/url"
    • addedOutput schema / properties / _coverage / properties / continuation / properties / url / format
      Added value: +"uri"
    • addedOutput schema / properties / _coverage / properties / continuation / properties / url / type
      Added value: +"string"
    • changedOutput schema / properties / _coverage / properties / sources / items / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / corpus / additionalProperties
      Previous value: -trueNew value: +{}
    • removedOutput schema / properties / corpus / properties / decisions / $ref
      Removed value: -"#/properties/results/items/properties/decisions"
    • addedOutput schema / properties / corpus / properties / decisions / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / corpus / properties / decisions / minimum
      Added value: +0
    • addedOutput schema / properties / corpus / properties / decisions / type
      Added value: +"integer"
    • removedOutput schema / properties / corpus / properties / overall_overturn_rate_pct / $ref
      Removed value: -"#/properties/results/items/properties/overturn_rate_pct"
    • addedOutput schema / properties / corpus / properties / overall_overturn_rate_pct / anyOf
      Added value: +[
      +  {
      +    "maximum": 100,
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / results / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / results / items / properties / decisions / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / source / additionalProperties
      Previous value: -trueNew value: +{}
    • removedOutput schema / properties / source / properties / records / $ref
      Removed value: -"#/properties/results/items/properties/decisions"
    • addedOutput schema / properties / source / properties / records / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / source / properties / records / minimum
      Added value: +0
    • addedOutput schema / properties / source / properties / records / type
      Added value: +"integer"
    • removedOutput schema / properties / source / properties / url / $ref
      Removed value: -"#/properties/_coverage/properties/sources/items/properties/url"
    • addedOutput schema / properties / source / properties / url / format
      Added value: +"uri"
    • addedOutput schema / properties / source / properties / url / type
      Added value: +"string"
  2. Changed2 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Search text, e.g. 'wegovy', 'back pain', 'imaging'"New value: +"One treatment or condition name, e.g. 'wegovy', 'back pain', 'imaging'"
    • addedInput schema / properties / query / maxLength
      Added value: +200
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "_coverage": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applicability": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "jurisdiction": {
      +              "type": "string"
      +            },
      +            "personal_deadline_calculated": {
      +              "const": false,
      +              "type": "boolean"
      +            },
      +            "scope": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "jurisdiction",
      +            "scope",
      +            "personal_deadline_calculated"
      +          ],
      +          "type": "object"
      +        },
      +        "content_reviewed_at": {
      +          "anyOf": [
      +            {
      +              "format": "date",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "YYYY-MM-DD only when this specific content has an existing review date; null means no response-wide review date is asserted."
      +        },
      +        "continuation": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "label": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "$ref": "#/properties/_coverage/properties/sources/items/properties/url"
      +            }
      +          },
      +          "required": [
      +            "label",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "limitations": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "schema_version": {
      +          "const": "1.0",
      +          "type": "string"
      +        },
      +        "sources": {
      +          "items": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "label": {
      +                "type": "string"
      +              },
      +              "role": {
      +                "enum": [
      +                  "primary_source",
      +                  "publisher_data",
      +                  "curated_guidance",
      +                  "methodology"
      +                ],
      +                "type": "string"
      +              },
      +              "url": {
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "label",
      +              "url",
      +              "role"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "status": {
      +          "enum": [
      +            "ok",
      +            "no_matches",
      +            "not_found",
      +            "needs_context",
      +            "unsupported"
      +          ],
      +          "type": "string"
      +        },
      +        "summary": {
      +          "type": "string"
      +        },
      +        "tool": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "schema_version",
      +        "tool",
      +        "content_reviewed_at",
      +        "status",
      +        "summary",
      +        "applicability",
      +        "sources",
      +        "continuation",
      +        "limitations"
      +      ],
      +      "type": "object"
      +    },
      +    "_note": {
      +      "type": "string"
      +    },
      +    "corpus": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "decisions": {
      +          "$ref": "#/properties/results/items/properties/decisions"
      +        },
      +        "overall_overturn_rate_pct": {
      +          "$ref": "#/properties/results/items/properties/overturn_rate_pct"
      +        }
      +      },
      +      "required": [
      +        "decisions",
      +        "overall_overturn_rate_pct"
      +      ],
      +      "type": "object"
      +    },
      +    "results": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "decisions": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "overturn_rate_pct": {
      +            "anyOf": [
      +              {
      +                "maximum": 100,
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "category",
      +              "treatment",
      +              "condition"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "slug",
      +          "name",
      +          "decisions",
      +          "overturn_rate_pct"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "source": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "records": {
      +          "$ref": "#/properties/results/items/properties/decisions"
      +        },
      +        "url": {
      +          "$ref": "#/properties/_coverage/properties/sources/items/properties/url"
      +        },
      +        "yearsCovered": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "url",
      +        "records",
      +        "yearsCovered"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "_note",
      +    "_coverage",
      +    "results",
      +    "corpus",
      +    "source"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the safety profile is handled. The description adds real behavioral content beyond them: whole-word/phrase matching semantics, the absence of synonym or class translation, and what the response contains (slugs plus headline overturn rates).

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 sentences with zero filler: purpose first, then the matching constraint with worked examples, then the return payload. Examples are placed where they disambiguate the constraint rather than padding.

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, return values need not be enumerated, and the description still summarizes them. Matching rules and the handoff to the detail tools are covered; only minor items (e.g. behavior when nothing matches, per-type limit interaction) are 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%, so baseline is 3, but the description adds matching semantics the schema does not convey: the token must appear in a name as a whole word or phrase and drug classes are not expanded. The limit parameter is left entirely to the schema, which documents it adequately with a default.

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?

The description states a specific verb and resource ('Search treatments ... and conditions') and delimits scope ('names used in the published data'), which cleanly separates this discovery tool from the fetch-detail siblings get_treatment_outcomes and get_condition_outcomes, which it names as consumers of its output slugs.

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?

Usage is clear: it explains the query must match a published name as a whole word or phrase and explicitly rules out generic names, abbreviations and drug classes, steering the agent to brand or specific treatment names. It never states a when-not-to-use case or a prerequisite, but the follow-up path to the get_* siblings is implied by 'Returns slugs for ...'.

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