Tools API
Server-side intelligence tools — knowledge graph, code review, self-healing, multi-model routing, and more
The Tools API (/api/v1/tools/*) provides access to Bootspring's server-side intelligence modules. All endpoints require authentication.
Knowledge Graph
Build and query a project knowledge graph of entities and relationships.
Get Graph
GET /api/v1/tools/knowledge-graph
Returns the full knowledge graph as JSON.
Search Entities
GET /api/v1/tools/knowledge-graph/search?q=auth
| Parameter | Type | Description |
|---|---|---|
q | string | Search query (required) |
Add Entity
POST /api/v1/tools/knowledge-graph/entity
Add Relationship
POST /api/v1/tools/knowledge-graph/relationship
Impact Analysis
GET /api/v1/tools/knowledge-graph/impact/:entityId?depth=2
Returns all entities within depth hops of the target entity — useful for understanding blast radius of changes.
Code Review
AI-powered diff review with 17 pattern rules.
Review Diff
POST /api/v1/tools/code-review
Response:
Multi-Model Routing
Intelligent model selection across providers.
List Models
GET /api/v1/tools/models
Select Model
POST /api/v1/tools/models/select
Response:
Self-Healing Builds
Diagnose build failures and track fix outcomes.
Diagnose
POST /api/v1/tools/self-healing/diagnose
Record Outcome
POST /api/v1/tools/self-healing/record
History
GET /api/v1/tools/self-healing/history
Agent Memory
Persistent keyword-indexed memory with importance scoring.
Stats
GET /api/v1/tools/agent-memory/stats
Store
POST /api/v1/tools/agent-memory/store
Recall
GET /api/v1/tools/agent-memory/recall?q=database+choice&limit=5
Context Optimizer
Semantic compression for effective context window utilization.
Optimize
POST /api/v1/tools/context/optimize
Pair Programming
Session-based pair programming with contextual suggestions.
Start Session
POST /api/v1/tools/pair/session
Get Session
GET /api/v1/tools/pair/session/:id
Record Change
POST /api/v1/tools/pair/session/:id/change
Cross-Project Learning
Anonymized pattern aggregation across opt-in projects.
Insights
GET /api/v1/tools/learning/insights?type=quality_score
Types: build_duration, test_pass_rate, error_frequency, task_velocity, quality_score, deployment_success
Submit Pattern
POST /api/v1/tools/learning/pattern
Benchmark
POST /api/v1/tools/learning/benchmark
Dependency Scheduler
Task scheduling with dependency resolution.
Plan
POST /api/v1/tools/scheduler/plan
Anomaly Detection
Detect anomalies in session metrics and get actionable suggestions.
Analyze
POST /api/v1/tools/anomalies/analyze
History
GET /api/v1/tools/anomalies/history
Dismiss / Apply
POST /api/v1/tools/anomalies/dismiss/:id
POST /api/v1/tools/anomalies/apply/:id
Observability
OpenTelemetry and error tracking configuration.
Config
GET /api/v1/tools/observability/config
Recent Errors
GET /api/v1/tools/observability/errors