Mcp.ToolsList
Examples below assume
mcp-clientis imported asMcpClient.
Dispatches the tools/list MCP RPC through a referenced Mcp.Client. Takes
no inputs and returns the typed tools array the server advertises.
Schema
kind: McpClient.ToolsList
metadata: { name: <Name> }
client: <ClientName> # any resource extending Mcp.Client
Output
result:
tools:
- name: <string>
description: <string>
inputSchema: { ... } # per-tool JSON Schema; open shape
inputSchema stays open because the inner schema is per-tool and unknown
statically. Consumers that need to introspect arguments can read it as a
plain object via CEL.
Errors
Same code set as Mcp.ToolsCall minus ERR_MCP_TOOL_ERROR — tools/list
has no soft-failure envelope. See the
README error contract.