operationToTool
Function: operationToTool()
operationToTool(
id,op,resolve):ToolEntry
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
the tool entry, or undefined when the operation must not be exposed