DDD.MCP.Schema (vicander v0.1.1)

Copy Markdown View Source

JSON Schema for the input of a command or query, built from its declared fields.

The type of each field becomes the schema of the parameter, description: its description, required: true puts it in required, and a default: is advertised. This is what an AI client reads to know how to call the tool.

Summary

Functions

The JSON Schema (type: object) for the parameters of a command or query module.

The JSON Schema of a DDD.Type.

Functions

input(module)

@spec input(module()) :: map()

The JSON Schema (type: object) for the parameters of a command or query module.

type(type, depth \\ 4)

@spec type(DDD.Type.t(), non_neg_integer()) :: map()

The JSON Schema of a DDD.Type.