Get Started

MCP Tool Contracts and Content

A tool is safe to automate only when discovery, arguments, results, pagination, and transport metadata agree on one contract.

120 minutesBuildPythonMembers

Learning Objectives

  • Define tool inputs and outputs with JSON Schema 2020-12.
  • Validate structured results without assuming they are JSON objects.
  • Choose between text, image, audio, resource links, and embedded resources.
  • Reject unsafe x-mcp-header definitions before a tool reaches the model.
  • Encode parameter-header values and verify exact header-to-body parity.
  • Traverse cursor pagination without interpreting cursor values.
  • Bound and authorize completion/complete suggestions.