22 Boolean tool schemas and omission
An omitted #:output declares no structured-output contract. Explicit #:output #t (including Any) declares an unrestricted structured value; #:output #f declares an impossible successful structured value. The latter still permits an explicit execution-error result. make-tool uses missing as its optional-keyword sentinel, so applications can explicitly pass #:output missing to omit the contract.
The pinned MCP schema requires schema objects on the wire. Constructors lower #t to an empty schema object and #f to an object whose not keyword contains an empty schema. The descriptor’s output-schema field remains #f when absent; present boolean declarations are stored in normalized object form. Raw tool-descriptor values must already use this representation.
An omitted #:input-schema derives the ordinary argument schema. Explicit boolean input schemas are normalized over JSON objects: #t accepts any object, and #f accepts none. Supplied object schemas must declare type: "object" at the root, as MCP requires. Interface construction also checks normalized schema fields and header annotations for raw descriptors.