Interface: ToolContract
Defined in: packages/core/src/introspection/ToolContract.ts:39
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:43
Behavioral contract extracted from runtime primitives
entitlements
ts
readonly entitlements: HandlerEntitlements;Defined in: packages/core/src/introspection/ToolContract.ts:47
Handler entitlements from static analysis
surface
ts
readonly surface: ToolSurface;Defined in: packages/core/src/introspection/ToolContract.ts:41
Declarative surface visible via MCP tools/list
tokenEconomics
ts
readonly tokenEconomics: TokenEconomicsProfile;Defined in: packages/core/src/introspection/ToolContract.ts:45
Token economics profile for cognitive overload detection