CustomLabs
Agents

Tool Contract

A tool contract is the schema a tool exposes to a model.

It lists parameter names, types, required fields, and any enums or patterns that constrain them.

A loose contract lets a model fill an ambiguous field with a plausible-looking guess.

A tight contract, validated server-side, stops a hallucinated argument from reaching execution.

It is the one piece of documentation a model reads before every call.

← Back to the full glossary

Source: https://customlabs.io/glossary/tool-contract/

navigate select esc close