Claude Tool Schemas
Six JSON schema tools allow Claude LLM agents to inspect, manage, and deploy TAI-discovered patterns.
Tool Inventory
| Tool | Parameters | Returns |
|---|---|---|
| list_discovered_patterns | min_confidence, pattern_type, limit | JSON array of pattern summaries |
| get_pattern_detail | pattern_id (16-char hex) | Full pattern + automation YAML |
| suggest_automation | pattern_id | AutomationDraft with config + explanation |
| approve_automation | pattern_id, reason? | Confirmation, status → Approved |
| reject_automation | pattern_id, reason? | Confirmation, confidence halved |
| query_operator_sessions | principal, start_ms, end_ms, limit | Session summaries from ClickHouse |
ClickHouse Tables
| Table | Engine | Purpose |
|---|---|---|
| action_stream | MergeTree, TTL 365d | Raw action events partitioned by date |
| pattern_store | ReplacingMergeTree | Pattern metadata, confidence, automation YAML |
| action_session_summary | Materialized View | Session aggregates: start/end, action_count, action_sequence |
| action_pairs | Destination table | Action pair lag analysis for reaction detection |
Integration
Every Claude tool call is itself captured by TAI via capture_tool_call(), enabling meta-pattern discovery on agent behavior.
Questions?
Reach out for help with integration, deployment, or custom domain codecs.