Skip to main content
Glama

structuredargumentation

Analyze complex questions through formal argumentation structures. Create, critique, and synthesize competing arguments for systematic dialectical reasoning.

Instructions

A detailed tool for systematic dialectical reasoning and argument analysis. This tool helps analyze complex questions through formal argumentation structures. It facilitates the creation, critique, and synthesis of competing arguments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
claimYes
premisesYes
conclusionYes
argumentIdNoOptional unique identifier for this argument
argumentTypeYes
confidenceYesConfidence level in this argument (0.0-1.0)
respondsToNoID of the argument this directly responds to
supportsNoIDs of arguments this supports
contradictsNoIDs of arguments this contradicts
strengthsNoNotable strong points of the argument
weaknessesNoNotable weak points of the argument
nextArgumentNeededYesWhether another argument is needed in the dialectic
suggestedNextTypesNoSuggested types for the next argument

Implementation Reference

  • The processStructuredArgumentation method is the core handler for the 'structuredargumentation' tool. It processes the input and returns the formatted response.
    public processStructuredArgumentation(input: unknown): { content: Array<{ type: string; text: string }>; isError?: boolean } {
      try {
        const validatedData = this.validateInputData(input);
        const processedData: ArgumentData = {
          ...validatedData,
          supports: validatedData.supports || [],
          contradicts: validatedData.contradicts || [],
          strengths: validatedData.strengths || [],
          weaknesses: validatedData.weaknesses || [],
          suggestedNextTypes: validatedData.suggestedNextTypes || []
        };
        
        const formattedOutput = this.formatOutput(processedData);
        console.error(formattedOutput);
    
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              argumentType: processedData.argumentType,
              claim: processedData.claim,
              confidence: processedData.confidence,
              nextArgumentNeeded: processedData.nextArgumentNeeded,
              argumentId: processedData.argumentId || `arg-${Date.now()}`,
              status: 'success'
            }, null, 2)
          }]
        };
      } catch (error) {
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              error: error instanceof Error ? error.message : String(error),
              status: 'failed'
            }, null, 2)
          }],
          isError: true
        };
      }
    }
  • src/index.ts:1150-1154 (registration)
    The 'structuredargumentation' tool is registered within the main switch statement of the MCP server's call tool handler in index.ts.
    case "structuredargumentation": {
        const result =
            structuredArgumentationServer.processStructuredArgumentation(
                request.params.arguments
            );

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/chirag127/Clear-Thought-MCP-server'

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