Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MCP Router: schema.maxDepth

schema.maxDepth limits nesting within each tool schema document.

  • Type: Positive integer
  • Default: 64

The preflight traversal counts nested objects and arrays throughout the schema, including definitions and keyword values. A schema whose traversal depth exceeds the limit rejects configuration. Use maxJsonDepth for JSON-RPC request values; the two limits protect different data structures.