batch_verify
Verify multiple fact claims simultaneously by submitting up to 10 items in one request using groundtruth verification service.
Instructions
Batch verify up to 10 claims at once. Cost: $0.020 USDC. Service: groundtruth.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claims | Yes |
Implementation Reference
- src/index.ts:166-223 (handler)The tool implementation is dynamic. Tools are not hardcoded but fetched from a remote registry at runtime. The handler for CallToolRequestSchema finds the matching tool definition by name and calls it using the 'callTool' function.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; let registry: Registry; try { registry = await fetchRegistry(); } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }), }, ], }; } const tool = registry.tools.find((t) => t.name === name); if (!tool) { return { content: [ { type: "text", text: JSON.stringify({ error: `Tool '${name}' not found`, available_tools: registry.tools.map((t) => t.name), }), }, ], }; } try { const result = await callTool(tool, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Tool call failed", tool: name, service: tool.service, detail: String(error), }), }, ], }; } });