Derive the JSON-schema descriptor from a def's own zod shape. The converter
options mirror the ones the MCP SDK derives its wire schema with, so one
shape can't derive two ways.
A def's own shape is not the whole advertised input: a consumer of a def
declaring WorkflowToolDef.requiresAddress merges its own workflow
environment parameters in, the way registerWorkflowTools does for
this package's host.
Derive the JSON-schema descriptor from a def's own zod shape. The converter options mirror the ones the MCP SDK derives its wire schema with, so one shape can't derive two ways.
A def's own shape is not the whole advertised input: a consumer of a def declaring WorkflowToolDef.requiresAddress merges its own workflow environment parameters in, the way registerWorkflowTools does for this package's host.