Skip to main content

tools

Tool execution layer providing the Executor interface, built-in tool implementations, composite pipelines, MCP bridge, and the tool manager that routes calls with schema validation and repair.

Used by cmd/worker, cmd/ui, cmd/seed-registry.

Usage

import "cruvero/internal/tools"

Key Types / Interfaces

TypeSourceDescription
Executortypes.goInterface: Name, Description, Schema, Execute
ReadOnlyExecutortypes.goMixin marking tools as side-effect-free
ToolDefinitiontypes.goTool metadata: schema, cost hint, read-only flag
Managermanager.goRoutes tool calls, validates schemas, manages repair
MCPBridgemcp_bridge.goAdapts MCP servers into Executor interface
CompositeToolDefcomposite.goComposite pipeline definition with steps
CompositeStepcomposite.goSingle step in a composite pipeline

Built-in Tools

ToolFileDescription
http_gethttp_get.goHTTP GET with response parsing
calculatorcalculator.goArithmetic expression evaluation
key_value_storekv.goDragonfly-backed key-value operations
memory_write / memory_readmemory_tool.goRead/write agent memory
python_execpython_exec.goSandboxed Python execution
bash_execbash_exec.goSandboxed bash execution
model_list / model_prefsmodel_tool.goModel catalog queries
cost_summarycost_tool.goCost breakdown queries
sim_*sim_*.goSimulation tools (ArgoCD, tickets, Git PRs, etc.)

Key Files

FilePurpose
types.goExecutor interface and ToolDefinition
manager.goTool routing, schema validation, repair loop
composite.goComposite pipeline execution engine
mcp_bridge.goMCP protocol adapter
contract.goPre/postcondition contract enforcement
repair.goAutomated tool error repair