Tool execution callback. The return type is ToolResult: tools with an outputSchema must return matching structuredContent or an isError result; tools without one accept any CallToolResult.
outputSchema
structuredContent
isError
Tool execution callback. The return type is ToolResult: tools with an
outputSchemamust return matchingstructuredContentor anisErrorresult; tools without one accept any CallToolResult.