Skip to main content
Glama

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
NameRequiredDescriptionDefault
argumentYes

Implementation Reference

  • 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),
              }),
            },
          ],
        };
      }
    });
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It adds some context: it specifies that detection includes 'severity and correction' and mentions cost and service details. However, it lacks critical behavioral traits such as rate limits, error handling, or output format (since no output schema exists). The description does not contradict annotations, but it is incomplete for a tool with no structured behavioral data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded: the first sentence states the core purpose, and additional details (cost and service) are concise. However, the cost and service information, while potentially useful, could be considered extraneous if not directly relevant to tool selection. Overall, it is efficient with minimal waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (a detection tool with behavioral nuances), lack of annotations, and no output schema, the description is incomplete. It covers the basic purpose and adds some cost/service context but misses key details like output structure, error conditions, or usage constraints. For a tool with no structured support, more comprehensive guidance is needed to aid an AI agent effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for undocumented parameters. It does not add any meaning beyond the input schema—it does not explain what the 'argument' parameter should contain (e.g., text format, length limits) or provide examples. With one parameter and no schema descriptions, this leaves the parameter semantics largely undefined, failing to compensate adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'Detect logical fallacies in an argument with severity and correction.' It specifies the verb ('detect'), resource ('logical fallacies'), and scope ('in an argument'), but does not explicitly differentiate from siblings like 'verify_claim' or 'deep_verify_claim', which might involve similar argument analysis. This makes it clear but not fully sibling-distinctive.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It mentions cost and service details ('Cost: $0.003 USDC. Service: debateclub.'), but these are not usage guidelines—they do not indicate scenarios, prerequisites, or comparisons with sibling tools like 'verify_claim' or 'analyze_call'. Without such context, users must infer usage based on the purpose alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yantrix-ai/yantrix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server