1---2name: rnacentral-skill3description: Submit compact RNAcentral API requests for RNA entry browsing, single-entry lookup, and cross-reference retrieval. Use when a user wants concise RNAcentral summaries4metadata:5 source: https://skillmd.com/skills/stanfish06/rnacentral-skill6---78## Operating rules9- Use `scripts/rest_request.py` for all RNAcentral calls.10- Use `base_url=https://rnacentral.org/api/v1`.11- Keep the trailing slash on collection and record paths to avoid redirects.12- Start with targeted lookups such as `rna/<URS>/<taxid>` because broad `rna/` browsing can be slow or time out.13- `rna/` has no free-text parameter. `q` is accepted and silently ignored, so the response is the unfiltered head of the collection, not matches. For a gene or description search override `base_url` to EBI Search: `https://www.ebi.ac.uk/ebisearch/ws/rest` with `path=rnacentral`, then look the returned `URS..._<taxid>` ids up here.14- Re-run requests in long conversations instead of relying on older tool output.1516## Execution behavior17- Return concise markdown summaries from the script JSON by default.18- Return raw JSON only if the user explicitly asks for machine-readable output.19- Prefer these paths: `rna/<URS>/<taxid>`, `rna/<URS>/`, and `rna/<URS>/xrefs/`.2021## Input22- Read one JSON object from stdin.23- Required fields: `base_url`, `path`24- Optional fields: `method`, `params`, `headers`, `json_body`, `form_body`, `record_path`, `response_format`, `max_items`, `max_depth`, `timeout_sec`, `save_raw`, `raw_output_path`25- Common RNAcentral patterns:26 - `{"base_url":"https://rnacentral.org/api/v1","path":"rna/URS000075C808/9606","max_items":10}`27 - `{"base_url":"https://www.ebi.ac.uk/ebisearch/ws/rest","path":"rnacentral","params":{"query":"TP53","format":"json","size":10,"fields":"description,rna_type,species"},"record_path":"entries","max_items":10,"max_depth":4}`28 - `{"base_url":"https://rnacentral.org/api/v1","path":"rna/URS0000000001/"}`29 - `{"base_url":"https://rnacentral.org/api/v1","path":"rna/URS0000000001/xrefs/","record_path":"results","max_items":10}`3031## Output32- Success returns `ok`, `source`, `path`, `method`, `status_code`, `warnings`, and either compact `records` or a compact `summary`.33- Use `raw_output_path` when `save_raw=true`.34- Failure returns `ok=false` with `error.code` and `error.message`.3536## Execution37```bash38echo '{"base_url":"https://rnacentral.org/api/v1","path":"rna/URS000075C808/9606","max_items":10}' | python scripts/rest_request.py39```4041## References42- No additional runtime references are required; keep the import package limited to this file and `scripts/rest_request.py`.