INTELLIGENCE
Experts Inference Models Pricing Skills Playbooks Articles Resources
Sign in Meet your experts
  1. Home
  2. /Articles
  3. /AI agents
  4. /Tools, integrations and gateways
  5. /Tool contracts and errors

Tool contracts and error shapes

Tool contracts and errorsTool gatewaysTool errors and retriesStreaming and server-sent events
AI agents

Tool contracts and error shapes

  • A Tool Contract for Failure: Inputs, Outputs and Error Codes
  • Error Envelopes Across Tool Types: HTTP, Database, APIs
  • Schema Tests for Tools: Fixtures That Assert Every Error Code
  • The Envelope's Version Field: Adding a Class Safely
  • A First-Key Contract for an Internal API Between Two Teams
  • A Reason Code Namespace Behind the Envelope Version
  • A Subscriber Manifest: Which Services Depend on Which Fields
  • Contract Tests Between an Agent and Its Tool Schema
  • Contract Tests for Every Read Error: Timeout, Partial and Denied
  • Contract Tests for the Error Classes a Memory Store Returns
  • Extending the Error Shape to Timeouts, Partial Reads and Denials
  • Logging a Caller That Sends an Unknown Envelope Version
  • Parsing an Envelope for Fields Your Client Does Not Know
  • Writing a Tool Contract: Inputs, Outputs and Failure Modes
Tools, integrations and gateways

Experts · Inference · Models · Docs · Skills · Pricing · Articles · Skills API · About

© 2026 Quanta Intelligence · 8 The Green STE B, Dover, DE 19901