omnibioai-toolserver
A standalone HTTP ToolServer for the OmniBioAI ecosystem.
This service implements the REST contract expected by
omnibioai-tool-exec’s HttpToolServerAdapter, enabling secure, validated, and reproducible execution of REST-backed bioinformatics tools (e.g. Enrichr, annotation services, external APIs).
It is designed to run independently and be registered as a remote execution server in OmniBioAI TES.
Implemented API Contract
The ToolServer exposes the following endpoints:
-
GET /capabilitiesAdvertise supported tools, engines, resources, and runtime policies. -
POST /validateValidate tool inputs and resource requests. -
POST /runsSubmit a tool execution request. -
GET /runs/{id}Retrieve run state (QUEUED,RUNNING,COMPLETED,FAILED). -
GET /runs/{id}/logsRetrieve execution logs. -
GET /runs/{id}/resultsRetrieve structured tool results once the run is completed.
This contract matches the expectations of
omnibioai-tool-exec → HttpToolServerAdapter.
Current Capabilities
-
Engine:
http_toolserver -
Tools:
enrichr_pathway— Pathway enrichment via Enrichr (REST, multipart-safe)
-
Execution model:
- Stateless REST calls
- Structured validation
- Run lifecycle tracking
-
Designed for:
- OmniBioAI agents
- TES-controlled execution
- Future multi-tool expansion (OMIM, GO, UniProt, etc.)
Running the ToolServer
Requirements
- Python ≥ 3.11
Install
pip install -r requirements.txt
Run
uvicorn toolserver_app:create_app --factory --host 0.0.0.0 --port 9090
Verify
curl http://127.0.0.1:9090/capabilities | python -m json.tool
Integration with OmniBioAI TES
Register this service as a server in omnibioai-tool-exec:
- server_id: enrichment_remote
display_name: Enrichment ToolServer
adapter_type: http_toolserver
config:
base_url: "http://127.0.0.1:9090"
Then submit runs through TES:
POST /api/runs/submit
The ToolServer is never called directly by the browser or LLM—all execution is mediated by TES.
Adding a New REST-Backed Tool
- Create a new handler:
toolserver/tools/<new_tool>.py
Implement:
def _validate(inputs, resources) -> {
"ok": bool,
"errors": [],
"warnings": []
}
def _run(inputs, resources, log) -> Dict[str, Any]
- Register the tool in:
toolserver/tools/__init__.py
registry.register(ToolHandler(...))
- Restart the server.
The tool will be automatically advertised via /capabilities.
No changes are required in TES beyond refreshing server capabilities.
Design Principles
-
LLMs never execute tools directly
-
All execution is validated and audited
-
Strict separation between:
- intent (agents / UI)
- orchestration (TES)
- execution (ToolServer)
-
REST-first, container-friendly, and infrastructure-agnostic
Status
- Frozen initial release
- Enrichr pathway enrichment working end-to-end with TES
- Stable API contract
Metadata
Release files for omnibioai-toolserver 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnibioai_toolserver-0.1.2.tar.gz | 5.9 kB | Without provenance | Details for omnibioai_toolserver-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnibioai_toolserver-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for omnibioai_toolserver-0.1.2-py3-none-any.whl |
Total release size: 12.1 kB
Release files / omnibioai_toolserver-0.1.2.tar.gz
| Download URL | omnibioai_toolserver-0.1.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42aefdc74e0df27503634334bc7debeb0c5b38a4284e9e5921da47fdda6b6723
|
|
BLAKE2b-256 checksum How to use checksums |
d74d0ccc3d53a775f3896de7cc048bead008e83f9d58af40ee4342d0fa6feffd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / omnibioai_toolserver-0.1.2-py3-none-any.whl
| Download URL | omnibioai_toolserver-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fab4cc71f9f0a8be8dd0fb14fa732dbbe41712a592fd35e2818934004b7baba
|
|
BLAKE2b-256 checksum How to use checksums |
50317a92dbed179204d139ab2284ee41e700fd4d2f938ee29f4a1826817fe9fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for omnibioai-toolserver 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.