HACS Tools
42+ Hacs Tools for AI agents via Model Context Protocol
Production-ready tools for clinical workflows, resource management, and healthcare AI operations.
🛠️ Tool Categories
🔍 Resource Discovery & Development (5+ tools)
discover_hacs_resources- Explore healthcare resource schemas with metadataanalyze_resource_fields- Field analysis with validation rulescompare_resource_schemas- Schema comparison and integrationcreate_clinical_template- Generate clinical workflow templatescreate_model_stack- Compose complex data structures
📋 Record Management (8+ tools)
create_hacs_record/get_hacs_record_by_id/update_hacs_record/delete_hacs_record- Full CRUDvalidate_hacs_record_data- Comprehensive validationlist_available_hacs_resources- Resource schema catalogfind_hacs_records- Advanced semantic searchsearch_hacs_records- Filtered record search
🧠 Memory Management (5+ tools)
create_hacs_memory- Store episodic/procedural/executive memoriessearch_hacs_memories- Semantic memory retrievalconsolidate_memories- Merge related memoriesretrieve_context- Context-aware memory accessanalyze_memory_patterns- Usage pattern analysis
✅ Validation & Schema (3+ tools)
get_hacs_resource_schema- JSON schema explorationcreate_view_resource_schema- Custom view creationsuggest_view_fields- Intelligent field suggestions
🎨 Advanced Tools (Multiple tools)
optimize_resource_for_llm- LLM-specific optimizationsversion_hacs_resource- Resource versioning and trackingexecute_clinical_workflow- Clinical protocol execution
📚 Knowledge Management (Multiple tools)
create_knowledge_item- Clinical guidelines and protocolssearch_knowledge_base- Medical knowledge retrieval
📦 Installation
pip install hacs-tools
🚀 Quick Start
import requests
def use_hacs_tool(tool_name, arguments):
"""Call HACS MCP tools"""
response = requests.post('http://localhost:8000/', json={
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": tool_name,
"arguments": arguments
},
"id": 1
})
return response.json()
# Create patient record
patient_result = use_hacs_tool("create_hacs_record", {
"resource_type": "Patient",
"resource_data": {
"full_name": "John Smith",
"birth_date": "1980-05-15",
"gender": "male"
}
})
# Store clinical memory
memory_result = use_hacs_tool("create_memory", {
"content": "Patient reports improved symptoms after treatment",
"memory_type": "episodic",
"importance_score": 0.8
})
# Search for related memories
search_result = use_hacs_tool("search_memories", {
"query": "treatment response",
"limit": 5
})
🏥 Healthcare Workflows
Clinical Assessment
# Generate assessment template
template = use_hacs_tool("create_clinical_template", {
"template_type": "assessment",
"focus_area": "cardiology",
"complexity_level": "standard"
})
# Create knowledge item
knowledge = use_hacs_tool("create_knowledge_item", {
"title": "AHA Guidelines 2024",
"content": "New recommendations for hypertension management",
"knowledge_type": "guideline"
})
Resource Discovery
# Discover available models
models = use_hacs_tool("discover_hacs_resources", {
"category_filter": "clinical",
"include_examples": True
})
# Get schema for specific model
schema = use_hacs_tool("get_hacs_resource_schema", {
"resource_type": "Patient",
"include_validation_rules": True
})
🔗 Integration
HACS Tools integrate with:
- MCP Protocol - Standard tool calling interface
- LangGraph - AI agent workflows
- PostgreSQL - Persistent healthcare data storage
- Healthcare Systems - FHIR-compliant data exchange
📊 Performance
- Tool Execution: <200ms average response time
- Memory Search: <100ms for semantic queries
- Resource Creation: <50ms for standard resources
- Validation: <10ms for schema validation
📄 License
Apache-2.0 License - see LICENSE for details.
Metadata
Release files for hacs-tools 0.4.3
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 | |
|---|---|---|---|---|
| hacs_tools-0.4.3.tar.gz | 54.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hacs_tools-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 120.4 kB
Release files / hacs_tools-0.4.3.tar.gz
| Download URL | hacs_tools-0.4.3.tar.gz |
|---|---|
| Size | 54.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e6e7532f5e4e3b068dd484d26ab30945350b716267406b440176ea2284c367e
|
|
BLAKE2b-256 checksum How to use checksums |
408412626813c385280ffde81d8f0d68e3106b48865edcb0db2d68c9599490db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Release files / hacs_tools-0.4.3-py3-none-any.whl
| Download URL | hacs_tools-0.4.3-py3-none-any.whl |
|---|---|
| Size | 66.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaa08f3036f5e113682bd78ff6f2e1c45cbc9fe7d2cd7b9c3fcaf5e14cf4c2c7
|
|
BLAKE2b-256 checksum How to use checksums |
aef57e9a3a62d1d1ef232adf1b53209c55303742d3718d7603c3264626568a51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Security for hacs-tools 0.4.3
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.