Core tools and utilities for HACS (Healthcare Agent Communication Standard)
Project description
HACS Tools
25+ Healthcare 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_memory- Store episodic/procedural/executive memoriessearch_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 (3 tools)
optimize_resource_for_llm- LLM-specific optimizationsversion_hacs_resource- Resource versioning and tracking
📚 Knowledge Management (1 tool)
create_knowledge_item- Clinical guidelines and protocols
📦 Installation
pip install hacs-tools
🚀 Quick Start
import requests
def call_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 = call_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 = call_hacs_tool("create_memory", {
"content": "Patient reports improved symptoms after treatment",
"memory_type": "episodic",
"importance_score": 0.8
})
# Search for related memories
search_result = call_hacs_tool("search_memories", {
"query": "treatment response",
"limit": 5
})
🏥 Healthcare Workflows
Clinical Assessment
# Generate assessment template
template = call_hacs_tool("create_clinical_template", {
"template_type": "assessment",
"focus_area": "cardiology",
"complexity_level": "standard"
})
# Create knowledge item
knowledge = call_hacs_tool("create_knowledge_item", {
"title": "AHA Guidelines 2024",
"content": "New recommendations for hypertension management",
"knowledge_type": "guideline"
})
Resource Discovery
# Discover available models
models = call_hacs_tool("discover_hacs_resources", {
"category_filter": "clinical",
"include_examples": True
})
# Get schema for specific model
schema = call_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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hacs_tools-0.3.1.tar.gz
(51.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hacs_tools-0.3.1.tar.gz.
File metadata
- Download URL: hacs_tools-0.3.1.tar.gz
- Upload date:
- Size: 51.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e7c7cf1937714bb29ea84c809299ad2a91a148217767227140ea2566348c21d
|
|
| MD5 |
aaa0e6319f5a43b5075652214cf1c30a
|
|
| BLAKE2b-256 |
b0fb42f34a56f7cc04634f8b46b80f46a86957570026d9eab83f9b076e9704b3
|
File details
Details for the file hacs_tools-0.3.1-py3-none-any.whl.
File metadata
- Download URL: hacs_tools-0.3.1-py3-none-any.whl
- Upload date:
- Size: 63.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe67c483072a1c722657161d3e8bf48953dbf50779611a03f2e7cb6536a5fdc
|
|
| MD5 |
51b3740a08661c0e744ed2b8354427db
|
|
| BLAKE2b-256 |
67dee4937f2df545197e12995819c72a2443fe7f399b3a9905303c7cef2c6ecb
|