Skip to main content
Glama

Find treatment protocols

search_protocols
Read-onlyIdempotent

Find acupuncture protocols for given symptom names – the same ranked pipeline behind GET /api/protocols. Returns matches (each with point codes, cred, modality and course where the source states them, the result once someone has read it, and provenance: sourceKind, source, caveat) plus a points dictionary giving each referenced code its name, meridian, location and warnings ONCE, and studyBacked, false when no study covers the query. It returns 10 matches by default; raise limit (max 50) if you need more. directMatches lists indicated points when no protocol covers the query – index entries, not prescriptions. Pass symptom names from search_symptoms, not a description.

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": {
      "symptoms": "<symptoms>"
    },
    "name": "search_protocols"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoPatient age. Drops protocols whose recorded cohort age is more than 20 years away; rows that recorded no age are kept.
sexNoPatient sex. Drops protocols recorded in the opposite sex; rows that recorded no sex are kept.
limitNoMax protocols to return (default 10, max 50)
symptomsYesComma-separated symptom names, max 10 (e.g. "headache,neck pain")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / age / maximum
      Added value: +130
    • addedInput schema / properties / age / minimum
      Added value: +0
  2. Changed2 schema fields changed
    • addedInput schema / properties / limit / maximum
      Added value: +50
    • addedInput schema / properties / limit / minimum
      Added value: +1
  3. Changed3 schema fields changed
    • changedInput schema / properties / age / description
      Previous value: -"Patient age for demographic filtering"New value: +"Patient age. Drops protocols whose recorded cohort age is more than 20 years away; rows that recorded no age are kept."
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max protocols to return (default 10, max 50)",
      +  "type": "number"
      +}
    • changedInput schema / properties / sex / description
      Previous value: -"Patient sex for demographic filtering"New value: +"Patient sex. Drops protocols recorded in the opposite sex; rows that recorded no sex are kept."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world behavior, yet the description still adds substantial context: default 10 with a 50 cap, deduplication of point data ('ONCE'), the `studyBacked` false signal, and the critical semantic that `directMatches` are 'index entries, not prescriptions.' That last note prevents a real misuse.

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

Conciseness4/5

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

Front-loaded with the action and the pipeline reference, then return shape, then limits, then the input-sourcing rule – a sensible order. A few clauses are dense (the parenthetical return-shape inventory) and the limit defaults are stated twice, but there is little waste.

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?

No output schema exists, so the description carries the return contract, and it does: `matches`, the deduplicated `points` dictionary, `studyBacked`, and `directMatches`. Combined with the 100%-covered input schema, an agent has everything needed to call and interpret this tool.

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 the baseline is 3; the description earns above baseline by constraining `symptoms` to names sourced from search_symptoms rather than free-text descriptions, which the schema does not say. The `limit` restatement (default 10, max 50) is redundant with the schema, keeping it short of a 5.

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?

Names a specific verb and resource ('Find acupuncture protocols for given symptom names') and pins it to a concrete backing pipeline (GET /api/protocols). It also enumerates the shape of what comes back, so an agent can distinguish it from search_symptoms or get_full_corpus without opening the schema.

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 an explicit input rule and routing instruction: 'Pass symptom names from search_symptoms, not a description,' plus 'raise limit (max 50) if you need more.' What's missing is guidance on when to prefer adjacent tools like get_point or get_full_corpus for point-level or corpus-level lookups.

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