argue_claim
Analyze any claim to generate balanced arguments both supporting and opposing it, helping users evaluate different perspectives on a topic.
Instructions
Get the strongest arguments both for and against any claim. Cost: $0.005 USDC. Service: debateclub.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claim | Yes | ||
| context | No | ||
| domain | No |
Implementation Reference
- src/index.ts:166-223 (handler)The server handles tool calls dynamically by looking up the tool name in a fetched registry and then using `callTool` to execute it. The specific tool "argue_claim" would be executed by this general handler if it exists in the registry.
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), }), }, ], }; } });