1---2name: chembl-skill3description: Submit compact ChEMBL API requests for activity, molecule, target, mechanism, and text-search endpoints. Use when a user wants concise ChEMBL summaries4---56## Operating rules7- Use `scripts/rest_request.py` for all ChEMBL API calls.8- Use `base_url=https://www.ebi.ac.uk/chembl/api/data`.9- The script accepts `max_items`; for activity, mechanism, and text-search collections, start with API `limit=10` and `max_items=10`.10- Single molecule or target lookups usually do not need `max_items`.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- Return the script JSON verbatim only if the user explicitly asks for machine-readable output.17- Prefer these paths: `activity.json`, `molecule/<id>.json`, `target/<id>.json`, `mechanism.json`, and `molecule/search.json`.18- Use `record_path` to target list fields like `activities`, `mechanisms`, or `molecules`.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 ChEMBL patterns:25 - `{"base_url":"https://www.ebi.ac.uk/chembl/api/data","path":"activity.json","params":{"molecule_chembl_id":"CHEMBL25","limit":10},"record_path":"activities","max_items":10}`26 - `{"base_url":"https://www.ebi.ac.uk/chembl/api/data","path":"molecule/CHEMBL25.json"}`27 - `{"base_url":"https://www.ebi.ac.uk/chembl/api/data","path":"molecule/search.json","params":{"q":"imatinib","limit":10},"record_path":"molecules","max_items":10}`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/chembl/api/data","path":"activity.json","params":{"molecule_chembl_id":"CHEMBL25","limit":10},"record_path":"activities","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`.