buildToolsList

fun buildToolsList(tools: List<McpTool>): JsonArray(source)

Builds the tools array for a tools/list response from the given tool registry.

Each tool contributes its name, description, and input schema.