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
ParameterTypeDescription
qstringSearch query (required)

Add Entity

POST /api/v1/tools/knowledge-graph/entity
Loading code block...

Add Relationship

POST /api/v1/tools/knowledge-graph/relationship
Loading code block...

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
Loading code block...

Response:

Loading code block...

Multi-Model Routing

Intelligent model selection across providers.

List Models

GET /api/v1/tools/models

Select Model

POST /api/v1/tools/models/select
Loading code block...

Response:

Loading code block...

Self-Healing Builds

Diagnose build failures and track fix outcomes.

Diagnose

POST /api/v1/tools/self-healing/diagnose
Loading code block...

Record Outcome

POST /api/v1/tools/self-healing/record
Loading code block...

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
Loading code block...

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
Loading code block...

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
Loading code block...

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
Loading code block...

Benchmark

POST /api/v1/tools/learning/benchmark
Loading code block...

Dependency Scheduler

Task scheduling with dependency resolution.

Plan

POST /api/v1/tools/scheduler/plan
Loading code block...

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