1---2name: chebi-skill3description: Submit compact ChEBI 2.0 API requests for chemical search, compound lookup, ontology traversal, and structure metadata. Use when a user wants concise ChEBI summaries4metadata:5 source: https://skillmd.com/skills/stanfish06/chebi-skill6---78## Operating rules9- Use `scripts/rest_request.py` for all ChEBI calls.10- Use `base_url=https://www.ebi.ac.uk`.11- Prefer the documented public routes under `chebi/backend/api/public/`.12- Start with `es_search/` for free-text lookup and use `compound/<CHEBI:id>/` for targeted records.13- Re-run requests in long conversations instead of relying on older tool output.1415## Execution behavior16- Return concise markdown summaries from the script JSON by default.17- Return raw JSON only if the user explicitly asks for machine-readable output.18- Prefer these paths: `chebi/backend/api/public/es_search/`, `chebi/backend/api/public/compound/<CHEBI:id>/`, and ontology child or parent routes.1920## Input21- Read one JSON object from stdin.22- Required fields: `base_url`, `path`23- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`24- Common ChEBI patterns:25 - `{"base_url":"https://www.ebi.ac.uk","path":"chebi/backend/api/public/es_search/","params":{"term":"caffeine","size":10},"record_path":"results","max_items":10}`26 - `{"base_url":"https://www.ebi.ac.uk","path":"chebi/backend/api/public/compound/CHEBI:27732/"}`27 - `{"base_url":"https://www.ebi.ac.uk","path":"chebi/backend/api/public/ontology/children/CHEBI:27732/"}`2829## Output30- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records` or a compact `summary`.31- Use `raw_output_path` when `save_raw=true`.32- Failure returns `ok=false` with `error.code` and `error.message`.3334## Execution35```bash36echo '{"base_url":"https://www.ebi.ac.uk","path":"chebi/backend/api/public/es_search/","params":{"term":"caffeine","size":10},"record_path":"results","max_items":10}' | python scripts/rest_request.py37```3839## References40- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.