Ncats Arax
K-DenseCommunityCreated by neuroepithelialDistributed by K-Dense
- Skill
- Tool integration
- Science and research
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The ncats-arax skill provides a command-line interface to interact with the NCATS Translator ARAX production API. It enables researchers to perform bounded, typed knowledge-graph lookups, including one-hop queries and endpoint-pinned two-hop traversals. The tool emphasizes transparency by preserving TRAPI exchange data, providing provenance for edge bindings, and requiring explicit acknowledgment that queries and metadata may be publicly visible. It is designed for structured, constrained biomedical graph exploration rather than open-ended inference or clinical decision support.
What it does
- Performs entity normalization to retrieve canonical identifiers and categories.
- Executes typed one-hop knowledge-graph lookups with optional qualifier constraints.
- Supports endpoint-pinned two-hop queries with configurable expansion order.
- Enables federated queries across two to five specified knowledge providers.
- Generates structured artifacts including request, response, and summary files.
- Provides an inspection utility to rebuild bounded summaries from saved TRAPI responses.
When to use it
- When you need to retrieve specific, typed biomedical relationships between known entities.
- When you require provenance and source-record details for graph edges.
- When you need to verify entity identifiers before performing graph traversals.
- When you are conducting research that requires explicit control over knowledge providers.
- When you need to inspect the raw TRAPI payload for a specific query.
Advantages
- Provides clear, bounded query shapes to ensure predictable API interactions.
- Maintains strict provenance by linking results to primary and upstream sources.
- Supports qualified queries to refine relationship aspects and directions.
- Ensures reproducibility by saving exact request and response bytes.
- Operates without requiring API keys or complex authentication.
Usage examples
- “Normalize the term ivacaftor to find its canonical CURIE and category.”
- The tool returns the canonical identifier, name, category, and synonym preview for ivacaftor, saved to a specified output directory.
- “Find one-hop relationships between CHEBI:31690 and NCBIGene:25 using the RTX-KG2 provider.”
- The tool executes a typed one-hop query and generates a summary of bound edges, provenance, and the raw TRAPI response.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/k-dense-ai/ncats-arax/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip ncats-arax.zip -d .agents/skills
Documentation by neuroepithelial
NCATS ARAX
Use ARAX as a constrained knowledge-graph lookup service. Submit reviewed CURIEs and explicit Biolink types, preserve the exact TRAPI exchange, inspect query-edge bindings and provenance, and treat every returned path as a candidate for subsequent verification.
Read query-contract.md before constructing a query. Read output-schema.md when interpreting saved artifacts, warnings, provenance, or partial results.
Safety boundary
Use only public, nonsensitive research questions. ARAX status facilities may expose query and caller metadata even when
store=falseis requested.Do not submit patient information, confidential research questions, unpublished compound programs, or proprietary target hypotheses.
Do not present a returned path as a validated mechanism or clinical recommendation.
Report a zero as "not returned under these constraints," never as evidence that no relationship exists.
Describe position as unscored response order, never rank.
Verify important candidates with literature and authoritative databases separately.
Workflow
Normalize free text separately, then review and report the proposed CURIE and category.
Choose a typed one-hop query or an exactly two-hop query with both endpoints pinned.
Use default RTX-KG2 lookup unless the user explicitly names two to five providers.
Acknowledge that the biomedical query is public and choose a new or empty output directory.
Run the client once. Do not silently change provider selection or expansion order after a failure or empty result.
Inspect
summary.jsonfor bounded bindings and provenance andresponse.jsonfor the exact TRAPI payload.Verify scientifically important paths outside ARAX.
Preflight
Check the production OpenAPI without making a biomedical query:
python skills/ncats-arax/scripts/arax_client.py preflightThe client verifies that the service identifies itself as ARAX, exposes POST /query and
GET /entity, and reports a supported TRAPI version. It reads info.x-trapi.version, falling back
to the title for older OpenAPI documents. A nonproduction endpoint or untested TRAPI series
requires an explicit override; neither override changes the fixed query shapes or operations.
Normalize an entity
Normalization is review-only and never triggers a graph query:
python skills/ncats-arax/scripts/arax_client.py normalize "ivacaftor" \
--expected-category biolink:SmallMolecule \
--max-synonyms 10 \
--acknowledge-public-query \
--output-dir outputs/normalize-ivacaftorReview the canonical identifier, name, category, and synonym preview before using a CURIE. Report
all CURIEs and categories regardless of query outcome. A category warning or zero result is a
reason to curate the identifier, not to chain automatically to /query.
One-hop lookup
Pin at least one endpoint and type both nodes:
python skills/ncats-arax/scripts/arax_client.py one-hop \
--subject-id CHEBI:31690 \
--subject-category biolink:SmallMolecule \
--predicate biolink:affects \
--object-id NCBIGene:25 \
--object-category biolink:Gene \
--qualifier biolink:object_aspect_qualifier=activity_or_abundance \
--qualifier biolink:object_direction_qualifier=decreased \
--acknowledge-public-query \
--output-dir outputs/imatinib-abl1Lookup mode is the default and fixes expansion to infores:rtx-kg2. It defaults to 20 results.
Use --result-limit N to request 1-50 results; 50 is the hard cap in either mode.
Endpoint-pinned two-hop lookup
Use exactly one typed, unpinned intermediate node:
python skills/ncats-arax/scripts/arax_client.py two-hop \
--subject-id CHEBI:66901 \
--subject-category biolink:SmallMolecule \
--predicate-1 biolink:affects \
--intermediate-category biolink:Gene \
--predicate-2 biolink:associated_with \
--object-id MONDO:0009061 \
--object-category biolink:Disease \
--qualifier-1 biolink:object_aspect_qualifier=activity_or_abundance \
--qualifier-1 biolink:object_direction_qualifier=increased \
--expand-order right-first \
--acknowledge-public-query \
--output-dir outputs/ivacaftor-cystic-fibrosisRight-first expansion is the default. If an empty result merits another attempt, run a new query
explicitly with --expand-order left-first and keep the runs separate.
Selected-provider federation
Federation is explicit and accepts two to five named providers:
python skills/ncats-arax/scripts/arax_client.py one-hop \
--subject-id CHEBI:31690 \
--subject-category biolink:SmallMolecule \
--predicate biolink:affects \
--object-id NCBIGene:25 \
--object-category biolink:Gene \
--mode federated \
--kp infores:rtx-kg2 \
--kp infores:molepro \
--acknowledge-public-query \
--output-dir outputs/federated-imatinib-abl1Federation defaults to the hard maximum of 50 results. Provider errors may coexist with useful results; such a run exits 7 after retaining its artifacts and is marked partial. The same applies to a failed provider in lookup mode. An explicit non-success ARAX response status exits 6 with the raw response retained; it must not be reported as a successful zero-result query.
Inspect saved provenance
Rebuild a bounded summary without network access:
python skills/ncats-arax/scripts/arax_client.py summarize \
--request outputs/ivacaftor-cystic-fibrosis/request.json \
--response outputs/ivacaftor-cystic-fibrosis/response.json \
--format textThe inspector accepts only the same constrained request shapes and fixed operations that the live
commands generate. Use --format json for the normalized view on standard output.
Interpret results
Follow each analysis's query-edge bindings; do not summarize every knowledge-graph edge.
Preserve the physical edge subject, predicate, object, and qualifier values returned by ARAX. Returned predicates or qualifier aspects may be more specific than the query constraint.
Inspect all source objects, including primary, aggregator, supporting-data, upstream-resource, and source-record URL fields.
Trace aggregator edges to their primary/upstream sources and publications before claiming corroboration. Multiple providers can redistribute the same record; report distinct primary evidence, not provider count as confidence or independent replication.
Treat
publication_availability: not_returnedas missing metadata, not evidence that no publications exist.Treat missing auxiliary-graph references and provider failures as explicit warnings.
Consult the raw response whenever the bounded summary omits detail or the service response is partial, unfamiliar, or scientifically surprising.
Deliberate exclusions
The client has no raw-query, workflow, operation, overlay, ranking, inference, link-prediction, Pathfinder, ARS, batch, all-provider, three-hop, cache, daemon, SDK, MCP, or natural-language-to-TRAPI surface. Do not work around those limits with direct HTTP calls under this skill.
Official references
Reviewed on 2026-09-30 against production ARAX 1.5.4 / TRAPI 1.5.0 (the URL still contains v1.4).
Live public smoke tests passed for preflight, normalization, qualified one-hop and endpoint-pinned
two-hop lookups, and RTX-KG2/MolePro federation. Results and provider availability can change.
The official introductory guide contains older response examples; use the deployed schema and
current ARAX source for field and operation contracts. No Python SDK is used by this client.
Files
- ATTRIBUTION.mdAdded by AutoGineer919 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md8.9 KiB
- references/output-schema.md8.2 KiB
- references/query-contract.md7.7 KiB
- scripts/arax_client.pyScript83.6 KiB
references/output-schema.md
ARAX artifact and output contract
Contents
Artifact sets
Exact byte preservation
Query summary
Normalization and preflight summaries
Provenance interpretation
Truncation and completeness
Manifest
Warnings and exit codes
Artifact sets
Every graph query requires a new or empty output directory and writes:
request.json
response.json
summary.json
manifest.jsonNormalization writes the exact entity response, a bounded normalization summary, and a manifest.
Preflight writes the exact OpenAPI response, a service summary, and a manifest only when an output
directory is requested. GET commands do not create a fictitious request.json; the corresponding
manifest file, byte, and hash fields are null. Offline summarize writes nothing.
Reject an existing nonempty directory before network access. Write artifacts through a private
temporary file, flush and fsync, set mode 0600 where supported, and atomically replace the final
path. Write the manifest last.
Exact byte preservation
Serialize a POST body once with sorted keys, compact separators, UTF-8, and ensure_ascii=False.
Save and send that same byte string. Request Accept-Encoding: identity, save the raw response
before JSON parsing, and hash request and response bytes with SHA-256.
Read at most 26,214,401 response bytes. If the extra byte exists, treat the response as oversized,
save no partial response.json, retain the request when applicable, write a terminal manifest, and
exit 6. A bounded HTTP-error body is preserved exactly. A bounded malformed JSON response is also
preserved, but no misleading summary is produced.
Query summary
summary.json is a normalized bounded view; response.json remains authoritative.
{
"schema_version": "1.0",
"query": {
"kind": "one-hop|two-hop",
"mode": "lookup|federated",
"provider_ids": [],
"expand_order": "right-first|left-first|null",
"qnode_ids": {},
"result_limit": 20
},
"service": {
"base_url": null,
"arax_version": null,
"trapi_version": null,
"biolink_version": null
},
"counts": {
"results_returned": 0,
"results_summarized": 0,
"analyses_summarized": 0,
"bound_edges_summarized": 0,
"knowledge_graph_nodes": 0,
"knowledge_graph_edges": 0,
"server_total_results_count": null
},
"truncation_status": "no|possible|confirmed",
"completeness": "complete|partial|unknown",
"results": [],
"warnings": []
}Keep response order. A result contains its one-based unscored position, bounded description,
normalized node bindings, and separate analyses. Each analysis contains its resource ID, returned
score, support-graph IDs, and bound-edge objects grouped by query-edge key.
A bound-edge object contains the returned edge ID, physical subject/predicate/object and names, query-direction match flag, qualifiers, full source objects, role-derived source ID lists, publication IDs and availability, and support-graph IDs and status.
Normalization and preflight summaries
A normalization summary records the input, expected category, whether free-text confirmation is required, service versions, canonical identifier/name/category, category-count mapping, total synonym count, bounded candidate preview, and warnings.
A preflight summary records service versions plus Boolean checks for ARAX identity, /query, and
version compatibility. Preflight also requires POST /query and GET /entity in OpenAPI.
Neither summary claims graph results. Normalization retains preflight version/endpoint warnings.
Provenance interpretation
Use each analysis's edge_bindings to select knowledge-graph edges. Do not include unrelated graph
edges. Preserve multiple analyses separately and retain all entries from each bound edge's
sources, including resource_id, resource_role, upstream_resource_ids, and
source_record_urls. Derive unique, first-seen resource ID lists for primary, aggregator, and
supporting-data roles without discarding the full objects.
Preserve returned qualifiers as type/value pairs. Preserve physical edge direction and set
matches_query_direction: false rather than rewriting a reversed edge.
V1 recognizes biolink:publications edge attributes. Accept a string or list of strings and
deduplicate in first-seen order. Missing recognized metadata means:
publication_ids: []
publication_availability: not_returnedIt never means that no publications exist.
Use analysis.support_graphs as the support-graph references. If none are returned, report
not_returned; if all appear in message.auxiliary_graphs, report available; if a referenced ID
is absent, report missing and warn.
Truncation and completeness
Fewer results than the requested limit:
no, unless logs or counts show removal.Exactly the limit:
possibleandRESULT_LIMIT_REACHED.More than the limit, an explicit pruning/removal log, or a larger server total:
confirmed.
Keep only the first requested number of results in the normalized summary while preserving the entire size-bounded raw response.
KP timeout, provider error, or malformed-provider evidence in warning/error logs yields
completeness: partial, result_status: partial, retained artifacts, and exit 7 in either lookup
or federated mode. Informational timeout configuration and advisory CURIE warnings do not alone
indicate provider failure. This classification depends on returned logs; complete means no
recognized failure was reported, not that every possible biomedical relationship was searched.
HTTP 200 alone is not success. ARAX can return an application error in status (for example,
InvalidKP or QueryNotTraversable). An explicit status other than Success or legacy OK
produces exit 6 with the raw response and failure manifest retained, but no success summary.
Absent/null status is allowed by TRAPI and still requires the graph/results checks. A valid
successful results: [] remains a zero-result lookup. Malformed responses also produce no summary.
This behavior follows the ARAX query envelope handling
and provider response handling.
Manifest
The manifest records run UUID, UTC timestamps, command, execution/result status, privacy acknowledgment, fixed client identity, service versions, request/response method, URL, filenames, byte counts, hashes, elapsed time, applied limits, attempt counts, artifact names, bounded error, and warnings. Fields for artifacts that do not exist are null rather than false filenames.
Execution statuses are success, http_error, and client_error. Result statuses are results,
no_results, partial, and not_available.
Warnings and exit codes
Warnings are objects with a stable code, bounded sanitized message, and a small scalar
context. Supported codes:
PUBLIC_QUERY
NORMALIZATION_REQUIRES_CONFIRMATION
NORMALIZATION_CATEGORY_MISMATCH
NO_RESULTS
NO_PUBLICATIONS_RETURNED
NO_PRIMARY_SOURCE_RETURNED
UNSCORED_RESPONSE_ORDER
RESULT_LIMIT_REACHED
INTERNAL_PRUNING_DETECTED
KP_TIMEOUT
KP_ERROR
MALFORMED_KP_RESPONSE
MISSING_AUXILIARY_GRAPH
REVERSED_EDGE_BINDING
UNTESTED_SERVICE_VERSION
NONPRODUCTION_ENDPOINTExit codes:
| Code | Meaning |
|---|---|
| 0 | Complete success, including a valid zero-result graph response |
| 2 | Invalid CLI input, unsupported saved request, or local validation failure |
| 3 | Service preflight or unsupported-version failure |
| 4 | Normalization returned no usable result |
| 5 | Transport or HTTP failure |
| 6 | Non-success ARAX status, malformed/oversized response, or artifact-integrity failure |
| 7 | Partial lookup or federated response with retained artifacts |
Text output prints at most the bounded result set and ten publication IDs per edge, labels every
position unscored, includes all source-role IDs, and points to summary.json and response.json.
Use "ARAX returned" and "not returned under these constraints," never proof, absence, or ranking
language.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Needs Python, Needs Node.js
The author says: Requires Python 3.10+ and outbound HTTPS access to arax.transltr.io. The client uses only the Python standard library and needs no API key. Queries and caller metadata may be publicly visible; never submit sensitive or patient-specific content.
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- neuroepithelial
- Publisher
- K-Dense (Community)
- Distributed by
- K-Dense
- Source
- K-Dense-AI/scientific-agent-skills · skills/ncats-arax · commit a25cf9e
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE.md)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by neuroepithelial or K-Dense.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download ncats-arax.zip