operationToTool
Function: operationToTool()
operationToTool(
id,op,resolve):ToolEntry|undefined
Defined in: packages/mcp/src/tools.ts:61
Map a Webda operation to an MCP tool
Parameters
id
string
operation id, used as the tool name
op
OperationDefinition
operation definition
resolve
schema resolver
Returns
ToolEntry | undefined
the tool entry, or undefined when the operation must not be exposed