Skip to content

Interface: ToolContract

Defined in: packages/core/src/introspection/ToolContract.ts:38

Complete behavioral contract for a single tool.

Captures both the MCP-visible surface (schema, description) and the behavioral internals (Presenter egress, rules, guardrails, middleware, state-sync, concurrency).

Properties

behavior

ts
readonly behavior: ToolBehavior;

Defined in: packages/core/src/introspection/ToolContract.ts:42

Behavioral contract extracted from runtime primitives


entitlements

ts
readonly entitlements: HandlerEntitlements;

Defined in: packages/core/src/introspection/ToolContract.ts:46

Handler entitlements from static analysis


surface

ts
readonly surface: ToolSurface;

Defined in: packages/core/src/introspection/ToolContract.ts:40

Declarative surface visible via MCP tools/list


tokenEconomics

ts
readonly tokenEconomics: TokenEconomicsProfile;

Defined in: packages/core/src/introspection/ToolContract.ts:44

Token economics profile for cognitive overload detection