parse_pico
Validate PICO elements from a clinical question and output a search pipeline YAML for PubMed.
Instructions
Validate agent-provided PICO elements and return a runnable search plan.
The agent, not this MCP server, extracts P/I/C/O from the user's natural
language question. When only description is provided, this tool
returns the schema the agent should fill and asks the agent to call this
tool again with structured elements.
Args: description: Original clinical question for provenance. p: Population / patient group extracted by the agent. i: Intervention / exposure / index test extracted by the agent. c: Comparator extracted by the agent, optional. o: Outcome extracted by the agent, recommended. p_query/i_query/c_query/o_query: Optional expanded PubMed-ready query fragments. When present, the PICO pipeline uses these for search while preserving the human-readable P/I/C/O labels. question_type: therapy, diagnosis, prognosis, or etiology. Inferred heuristically when omitted. profile: Search profile for the PICO template, default balanced. sources: Comma-separated sources for the pipeline. limit: Final result limit for the pipeline.
Returns:
JSON containing validation, PICO schema, query plan, and pipeline
YAML that can be passed to unified_search(pipeline=...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | ||
| p | No | ||
| i | No | ||
| c | No | ||
| o | No | ||
| p_query | No | ||
| i_query | No | ||
| c_query | No | ||
| o_query | No | ||
| question_type | No | ||
| profile | No | balanced | |
| sources | No | pubmed | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |