Skip to main content

Layer 3 · capability

tool

blocks/3-capability/tool.yaml

layer 3capability
2entities
3commands
3events
2views
2refusals
4KPIs

Something an agent can call. A tool provider supplies tools: built in, a tool server, a shell, a connector or another agent. A tool has a contract (input and output as content digests), a category and whether its effect leaves the sandbox. A withdrawn tool takes no new call. A call of a tool is an act of a harness session and is held by agentic.harness.

Depends on​

  • shared · layer 0 · 8 references

Used by​

  • agent · layer 4 · 4 references
  • harness · layer 4 · 8 references

Entities​

Tool​

One tool of one provider. The contract is held as digests of the input and output schemas, never the schemas.

Identified by tool_id (ToolId).

fieldtypemeaning
tool_provider_idToolProviderId
nameName
input_contractContent
output_contractContent
categoryToolCategory
leaves_sandboxbooleanWhether the effect of a call reaches beyond the sandbox the caller runs in.

Lifecycle of Tool

PublishedWithdrawnwithdrawPublishedWithdrawnwithdraw
Ends in Withdrawn.

ToolProvider​

Whatever supplies tools to harnesses.

Identified by tool_provider_id (ToolProviderId).

fieldtype
nameName
kindToolProviderKind

Relations:

  • tools owns Tool (many, by tool_provider_id)

Lifecycle: one state, Registered; a recorded ToolProvider does not change.

Commands​

PublishTool​

Publish a tool.

Called by: Tool catalogue.

fieldtype
tool_idToolId
tool_provider_idToolProviderId
nameName
input_contractContent
output_contractContent
categoryToolCategory
leaves_sandboxboolean
outcomewhenresult
unknown-provider refusedno ToolProvider for tool_provider_idUnknownToolProvider: No tool provider of this identity is registered.
publishedotherwisecreates a Tool in Published; emits ToolPublished

RegisterToolProvider​

Register a tool provider.

Called by: Tool catalogue.

fieldtype
tool_provider_idToolProviderId
nameName
kindToolProviderKind
outcomewhenresult
registeredotherwisecreates a ToolProvider in Registered; emits ToolProviderRegistered

WithdrawTool​

Withdraw a tool.

Called by: Tool catalogue.

fieldtype
tool_idToolId
outcomewhenresult
withdrawnotherwisemoves the Tool Published → Withdrawn; emits ToolWithdrawn
wrong-state refusedthe Tool is in a state that does not allow itToolStateConflict: The tool is not in a state this command acts from.

Events​

eventfieldsemitted by
ToolProviderRegisteredtool_provider_id ToolProviderId, name Name, kind ToolProviderKindRegisterToolProvider
ToolPublishedtool_id ToolId, tool_provider_id ToolProviderId, name Name, category ToolCategory, leaves_sandbox booleanPublishTool
ToolWithdrawntool_id ToolIdWithdrawTool

Views​

viewrowsfields
ToolProviders
Tool providers
each ToolProvidertool_provider_id ToolProviderId, name Name, kind ToolProviderKind, state State
Tools
Tools
each Tooltool_id ToolId, tool_provider_id ToolProviderId, name Name, input_contract Content, output_contract Content, category ToolCategory, leaves_sandbox boolean, state State

Types​

typeisvalues or fields
ToolProviderKind
Where a tool comes from. BuiltIn ships with the harness, ToolServer is served over a tool protocol, Shell is a command line, Connector is an integration to an outside service, Agent is another agent called as a tool.
one ofBuiltIn, ToolServer, Shell, Connector, Agent

KPIs​

4 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.

Correctness​

KPIunitbettergatestatus
unpublished_tool_calls
Calls of a tool that is not published or was withdrawn.
How: ToolCallRequested events whose tool has no ToolPublished before it, or a ToolWithdrawn after the last ToolPublished. Must be 0.
countlowergateplanned
source: design

Quality​

KPIunitbettergatestatus
tool_error_rate
Share of tool calls that ended in an error.
How: ToolCallCompleted events with an error divided by all ToolCallCompleted events, per tool and per category.
sharelower–planned
source: design
tool_duration_p90_seconds
90th percentile of the time a tool call took.
How: Seconds between ToolCallRequested and ToolCallCompleted of the same call, 90th percentile per tool.
secondslower–planned
source: design
error_recovery_share
Share of tool errors after which the agent's next call succeeded.
How: Failed tool calls whose next call by the same agent, within 3 calls, succeeded, divided by failed tool calls. Compare errors that state the next step with errors that do not.
sharehigher–planned
source: research/2609.35381

Settings​

The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.

A part tool:

settingtypeunitdefaultcontractwhat
kindstringWhat the tool is.
categoryenum ToolCategory: read, search, edit, execute, network, spawn, message, plan, delete, otherThe category of the tool's calls, the one an authority decides on.
viastringThe endpoint of the architecture (endpoints:) the tool is reached through: a tool behind it runs in no unit of a deployment, and a call to it is egress to the endpoint.
inputsinputsThe shape of a call's arguments: a map from an input name to string, integer, number or boolean, a trailing ? for an optional one. The grants of a contract carry it; it narrows no port.
countinteger of at least 11How many copies of the part run.
perpartOne copy of the part for each copy of the named part.
notesnotesFree notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it.