Skip to main content
Glama
ThoughtProof

thoughtproof-mcp

Official

verify_reasoning

Verify decisions and reasoning claims using adversarial multi-model critique. Returns verdicts, confidence scores, and key objections for validation.

Instructions

Verify a decision or reasoning claim using ThoughtProof adversarial multi-model critique. Returns a verdict (ALLOW/HOLD/UNCERTAIN/DISSENT), confidence score, and up to 3 key objections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
claimYesThe decision or reasoning to verify
stakeLevelNoStakes of the decision — affects confidence thresholdmedium
domainNoDomain context for the verificationgeneral

Implementation Reference

  • Handler for the 'verify_reasoning' tool which calls the ThoughtProof API and processes the response or handles errors/payment requirements.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      if (request.params.name !== 'verify_reasoning') {
        throw new Error(`Unknown tool: ${request.params.name}`);
      }
    
      const { claim, stakeLevel = 'medium', domain = 'general' } =
        request.params.arguments as {
          claim: string;
          stakeLevel?: string;
          domain?: string;
        };
    
      let response: Response;
      try {
        response = await fetch(API_URL, {
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({ claim, stakeLevel, domain }),
        });
      } catch (err) {
        return {
          content: [
            {
              type: 'text',
              text: `Network error reaching ThoughtProof API: ${(err as Error).message}`,
            },
          ],
          isError: true,
        };
      }
    
      // x402 payment required
      if (response.status === 402) {
        const body = await response.json().catch(() => ({}));
        const accepts = (body as any)?.accepts?.[0];
        const amount = accepts?.maxAmountRequired
          ? `${Number(accepts.maxAmountRequired) / 1_000_000} USDC`
          : 'a small USDC fee';
        return {
          content: [
            {
              type: 'text',
              text: [
                '**Payment required (x402)**',
                '',
                `ThoughtProof requires ${amount} per verification, paid on-chain via the x402 protocol.`,
                '',
                'To use this tool programmatically, attach an `X-PAYMENT` header with a valid Base USDC payment payload.',
                'See https://x402.org for client libraries.',
                '',
                accepts
                  ? `Pay-to wallet: ${accepts.payTo}\nNetwork: ${accepts.network}\nAsset: ${accepts.asset}`
                  : '',
              ]
                .join('\n')
                .trim(),
            },
          ],
          isError: false,
        };
      }
    
      if (!response.ok) {
        const text = await response.text().catch(() => `HTTP ${response.status}`);
        return {
          content: [{ type: 'text', text: `ThoughtProof API error (${response.status}): ${text}` }],
          isError: true,
        };
      }
    
      const result = await response.json() as {
        verdict: string;
        confidence: number;
        objections: string[];
        durationMs: number;
      };
    
      const lines = [
        `**Verdict:** ${result.verdict}`,
        `**Confidence:** ${(result.confidence * 100).toFixed(1)}%`,
      ];
    
      if (result.objections?.length) {
        lines.push('', '**Key objections:**');
        result.objections.forEach((o, i) => lines.push(`${i + 1}. ${o}`));
      }
    
      lines.push('', `*Verified in ${result.durationMs}ms*`);
    
      return {
        content: [{ type: 'text', text: lines.join('\n') }],
        isError: false,
      };
    });
  • Definition and input schema for the 'verify_reasoning' tool.
    {
      name: 'verify_reasoning',
      description:
        'Verify a decision or reasoning claim using ThoughtProof adversarial multi-model critique. Returns a verdict (ALLOW/HOLD/UNCERTAIN/DISSENT), confidence score, and up to 3 key objections.',
      inputSchema: {
        type: 'object',
        properties: {
          claim: {
            type: 'string',
            description: 'The decision or reasoning to verify',
          },
          stakeLevel: {
            type: 'string',
            enum: ['low', 'medium', 'high', 'critical'],
            default: 'medium',
            description: 'Stakes of the decision — affects confidence threshold',
          },
          domain: {
            type: 'string',
            enum: ['financial', 'medical', 'legal', 'code', 'general'],
            default: 'general',
            description: 'Domain context for the verification',
          },
        },
        required: ['claim'],
      },
    },
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the verification methodology ('ThoughtProof adversarial multi-model critique') and output details (verdict types, confidence score, objections), which adds useful context beyond basic functionality. However, it doesn't cover aspects like rate limits, authentication needs, or error handling, leaving gaps in behavioral understanding.

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 concise and front-loaded, stating the core purpose in the first clause. The second part efficiently lists the return values. There's no wasted text, but it could be slightly more structured (e.g., separating purpose from output details with a colon or bullet points) to enhance readability.

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

Completeness3/5

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

Given the tool's moderate complexity (3 parameters, no output schema, no annotations), the description is somewhat complete but has gaps. It explains the purpose and output format, which is helpful, but lacks usage guidelines and full behavioral context. Without an output schema, it should ideally detail return values more thoroughly, though it does list them briefly.

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

Parameters3/5

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

Schema description coverage is 100%, so the input schema already documents all parameters thoroughly. The description doesn't add any additional meaning or context for the parameters beyond what the schema provides. This meets the baseline score of 3 when the schema handles parameter documentation effectively.

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 purpose: 'Verify a decision or reasoning claim using ThoughtProof adversarial multi-model critique.' It specifies the verb ('verify') and resource ('decision or reasoning claim'), and mentions the methodology. However, with no sibling tools, it doesn't need to differentiate from alternatives, so it doesn't reach the highest score of 5.

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, prerequisites, or exclusions. It only states what the tool does, not the context for its application. This lack of usage instructions limits its helpfulness for an AI agent.

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/ThoughtProof/thoughtproof-mcp'

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