Skip to main content
API reference sections

Schema

ToolFailureTally

One tool, one way it failed, and how many times that happened in the turn.

Type object

Shape

FieldTypeDescription
toolrequiredToolKind

Which tool ran, as the adapter that watched it declares.

Not the provider's name for it: an adapter maps its provider's own tool vocabulary onto this list, and a tool it has no token for is [Other](Self::Other) - named as unknown rather than passed through as text.

failurerequiredToolFailure

Why a tool call did not work, classified by the adapter from the structured fields it already reads.

Five classes and no sixth escape hatch that carries text. A provider that failed a call in a way the adapter cannot place is [Unclassified](Self::Unclassified) - which is a fact worth showing ("it failed, and the provider did not say how") and is never a guess.

callsrequiredinteger (uint16, >= 0, <= 65535)

How many calls of this tool failed this way. Never zero in a listed tally.

Sixteen bits, because a coalesced step is written at the turn's end or at the orchestrator's tool bound, whichever comes first - no one step has ever counted more than a couple of hundred calls, and a count that somehow did would saturate rather than wrap.

Example
{
  "tool": "web_search",
  "failure": "denied",
  "calls": 0
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.