1---2name: efo-ontology-skill3description: Submit compact EFO OLS4 requests for search, term lookup, children, and descendants. Use when a user wants concise EFO resolution or ontology-expansion summaries4---56## Operating rules7- Use `scripts/rest_request.py` for all OLS4 and EFO API calls.8- Use `base_url=https://www.ebi.ac.uk/ols4/api`.9- Search, children, and descendant endpoints are better with `max_items=10`; single term lookups usually do not need `max_items`.10- Use the smallest ontology expansion that answers the question.11- Re-run requests in long conversations instead of relying on older tool output.12- Treat displayed `...` in tool previews as UI truncation, not literal request content.1314## Execution behavior15- Return concise markdown summaries from the script JSON by default.16- Prefer these paths: `search`, `ontologies/efo/terms/<double-encoded-iri>`, and the corresponding `children` or `descendants` paths.17- If the user needs the full payload, set `save_raw=true` and report the saved file path.1819## Input20- Read one JSON object from stdin.21- Required fields: `base_url`, `path`22- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`23- Common OLS4 patterns:24 - `{"base_url":"https://www.ebi.ac.uk/ols4/api","path":"search","params":{"q":"asthma","ontology":"efo"},"record_path":"response.docs","max_items":10}`25 - `{"base_url":"https://www.ebi.ac.uk/ols4/api","path":"ontologies/efo/terms/http%253A%252F%252Fwww.ebi.ac.uk%252Fefo%252FEFO_0000270"}`26 - `{"base_url":"https://www.ebi.ac.uk/ols4/api","path":"ontologies/efo/terms/http%253A%252F%252Fwww.ebi.ac.uk%252Fefo%252FEFO_0000270/descendants","record_path":"_embedded.terms","max_items":10}`2728## Output29- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records` or a compact `summary`.30- Use `raw_output_path` when `save_raw=true`.31- Failure returns `ok=false` with `error.code` and `error.message`.3233## Execution34```bash35echo '{"base_url":"https://www.ebi.ac.uk/ols4/api","path":"search","params":{"q":"asthma","ontology":"efo"},"record_path":"response.docs","max_items":10}' | python scripts/rest_request.py36```3738## References39- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.