detect_fallacies
Identify logical fallacies in arguments, providing severity assessment and correction suggestions to improve reasoning quality.
Instructions
Detect logical fallacies in an argument with severity and correction. Cost: $0.003 USDC. Service: debateclub.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| argument | Yes |
Implementation Reference
- src/index.ts:166-223 (handler)The "detect_fallacies" tool is not hardcoded but dynamically resolved via this request handler from an external registry. The handler looks up the tool name provided in the registry, and then uses the 'callTool' function to invoke the associated endpoint.
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), }), }, ], }; } });