Skip to main content
Glama
aquarius-wing

Actor-Critic Thinking MCP Server

actor-critic-thinking

Analyze performances, creative works, or decisions by alternating between actor (creative/experiential) and critic (analytical/evaluative) perspectives. Generate balanced, actionable feedback to bridge intention and execution, ensuring comprehensive and constructive assessments.

Instructions

A sophisticated tool for dual-perspective performance analysis through actor-critic methodology. This tool enables comprehensive evaluation of performances, creative works, or decisions by embodying both the performer's mindset and the critic's analytical perspective. Each thought alternates between actor (creative/experiential) and critic (analytical/evaluative) viewpoints, creating a balanced assessment.

When to use this tool:

  • Evaluating artistic performances, creative works, or strategic decisions

  • Analyzing the gap between intention and execution

  • Providing constructive feedback that considers both creative vision and technical execution

  • Reviewing complex scenarios that require both empathy and objectivity

  • Situations requiring balanced assessment of subjective and objective criteria

  • Performance reviews that need both self-reflection and external evaluation

  • Creative processes that benefit from iterative refinement

Key features:

  • Alternates between actor (performer) and critic (evaluator) perspectives

  • Tracks rounds of dual-perspective analysis

  • Allows for multiple rounds of actor-critic dialogue

  • Balances empathetic understanding with objective analysis

  • Generates nuanced, multi-dimensional assessments

  • Provides actionable feedback for improvement

Parameters explained:

  • content: Your current analysis content from the specified role perspective

  • role: Either "actor" (empathetic/creative viewpoint) or "critic" (analytical/evaluative viewpoint)

  • nextRoundNeeded: True if another round of actor-critic dialogue is needed

  • thoughtNumber: Current thought number in the sequence (increments with each thought)

  • totalThoughts: Total number of thoughts planned (must be odd and >= 3)

Actor perspective should include:

  • Understanding intentions, creative choices, emotional context, challenges faced

  • Self-reflection on performance and decision-making process

  • Explanation of creative vision and goals

Critic perspective should include:

  • Technical execution analysis, effectiveness evaluation

  • Audience impact assessment, comparative analysis

  • Objective feedback and improvement suggestions

You should:

  1. Start with either actor or critic perspective

  2. Alternate between perspectives to maintain balance

  3. Continue rounds until comprehensive analysis is achieved

  4. Focus on relevant performance aspects

  5. Generate balanced assessments that honor both perspectives

  6. Provide constructive, actionable feedback

  7. Only set nextRoundNeeded to false when analysis is complete

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesYour current analysis content from the specified role perspective
nextRoundNeededYesWhether another round of actor-critic dialogue is needed
roleYesThe perspective role: 'actor' for empathetic/creative viewpoint, 'critic' for analytical/evaluative viewpoint
thoughtNumberYesCurrent thought number in the sequence
totalThoughtsYesTotal number of thoughts planned (must be odd and >= 3)

Implementation Reference

  • index.ts:87-132 (handler)
    The core handler function that executes the actor-critic thinking tool logic: validates input, updates thought history and round state, formats the thought for logging, computes next state, and returns a structured JSON response.
    public processThought(input: unknown): { content: Array<{ type: string; text: string }>; isError?: boolean } {
      try {
        const validatedInput = this.validateThoughtData(input);
    
        this.thoughtHistory.push(validatedInput);
    
        // 更新当前轮次
        this.currentRound = Math.ceil(validatedInput.thoughtNumber / 2);
    
        const formattedThought = this.formatThought(validatedInput);
        console.error(formattedThought);
    
        // 检查是否需要切换角色
        const nextRole = validatedInput.role === 'actor' ? 'critic' : 'actor';
        const isRoundComplete = validatedInput.thoughtNumber % 2 === 0;
    
        return {
          content: [{
            type: "text",
            text: JSON.stringify({
              thoughtNumber: validatedInput.thoughtNumber,
              totalThoughts: validatedInput.totalThoughts,
              currentRound: this.currentRound,
              currentRole: validatedInput.role,
              nextRole: nextRole,
              isRoundComplete: isRoundComplete,
              nextRoundNeeded: validatedInput.nextRoundNeeded,
              thoughtHistoryLength: this.thoughtHistory.length,
              actorThoughts: this.thoughtHistory.filter(t => t.role === 'actor').length,
              criticThoughts: this.thoughtHistory.filter(t => t.role === 'critic').length
            }, 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
        };
      }
    }
  • Defines the MCP Tool object for 'actor-critic-thinking' including name, comprehensive usage description, and detailed input schema for validation.
    const ACTOR_CRITIC_THINKING_TOOL: Tool = {
      name: "actor-critic-thinking",
      description: `A sophisticated tool for dual-perspective performance analysis through actor-critic methodology.
    This tool enables comprehensive evaluation of performances, creative works, or decisions by embodying both the performer's mindset and the critic's analytical perspective.
    Each thought alternates between actor (creative/experiential) and critic (analytical/evaluative) viewpoints, creating a balanced assessment.
    
    When to use this tool:
    - Evaluating artistic performances, creative works, or strategic decisions
    - Analyzing the gap between intention and execution
    - Providing constructive feedback that considers both creative vision and technical execution
    - Reviewing complex scenarios that require both empathy and objectivity
    - Situations requiring balanced assessment of subjective and objective criteria
    - Performance reviews that need both self-reflection and external evaluation
    - Creative processes that benefit from iterative refinement
    
    Key features:
    - Alternates between actor (performer) and critic (evaluator) perspectives
    - Tracks rounds of dual-perspective analysis
    - Allows for multiple rounds of actor-critic dialogue
    - Balances empathetic understanding with objective analysis
    - Generates nuanced, multi-dimensional assessments
    - Provides actionable feedback for improvement
    
    Parameters explained:
    - content: Your current analysis content from the specified role perspective
    - role: Either "actor" (empathetic/creative viewpoint) or "critic" (analytical/evaluative viewpoint)
    - nextRoundNeeded: True if another round of actor-critic dialogue is needed
    - thoughtNumber: Current thought number in the sequence (increments with each thought)
    - totalThoughts: Total number of thoughts planned (must be odd and >= 3)
    
    Actor perspective should include:
    * Understanding intentions, creative choices, emotional context, challenges faced
    * Self-reflection on performance and decision-making process
    * Explanation of creative vision and goals
    
    Critic perspective should include:
    * Technical execution analysis, effectiveness evaluation
    * Audience impact assessment, comparative analysis
    * Objective feedback and improvement suggestions
    
    You should:
    1. Start with either actor or critic perspective
    2. Alternate between perspectives to maintain balance
    3. Continue rounds until comprehensive analysis is achieved
    4. Focus on relevant performance aspects
    5. Generate balanced assessments that honor both perspectives
    6. Provide constructive, actionable feedback
    7. Only set nextRoundNeeded to false when analysis is complete`,
      inputSchema: {
        type: "object",
        properties: {
          content: {
            type: "string",
            description: "Your current analysis content from the specified role perspective"
          },
          role: {
            type: "string",
            enum: ["actor", "critic"],
            description: "The perspective role: 'actor' for empathetic/creative viewpoint, 'critic' for analytical/evaluative viewpoint"
          },
          nextRoundNeeded: {
            type: "boolean",
            description: "Whether another round of actor-critic dialogue is needed"
          },
          thoughtNumber: {
            type: "integer",
            description: "Current thought number in the sequence",
            minimum: 1
          },
          totalThoughts: {
            type: "integer",
            description: "Total number of thoughts planned (must be odd and >= 3)",
            minimum: 3
          }
        },
        required: ["content", "role", "nextRoundNeeded", "thoughtNumber", "totalThoughts"]
      }
    };
  • index.ts:228-230 (registration)
    Registers the 'actor-critic-thinking' tool in the MCP server's list of available tools via ListToolsRequestSchema handler.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: [ACTOR_CRITIC_THINKING_TOOL],
    }));
  • index.ts:232-244 (registration)
    Registers the request handler for CallToolRequestSchema, routing calls to 'actor-critic-thinking' to the processThought implementation.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      if (request.params.name === "actor-critic-thinking") {
        return thinkingServer.processThought(request.params.arguments);
      }
    
      return {
        content: [{
          type: "text",
          text: `Unknown tool: ${request.params.name}`
        }],
        isError: true
      };
    });
  • Helper method for input validation according to the tool schema, enforcing types, ranges, and constraints before processing.
    private validateThoughtData(input: unknown): ActorCriticThoughtData {
      const data = input as Record<string, unknown>;
    
      if (!data.content || typeof data.content !== 'string') {
        throw new Error('Invalid content: must be a string');
      }
      if (!data.role || (data.role !== 'actor' && data.role !== 'critic')) {
        throw new Error('Invalid role: must be either "actor" or "critic"');
      }
      if (typeof data.nextRoundNeeded !== 'boolean') {
        throw new Error('Invalid nextRoundNeeded: must be a boolean');
      }
      if (!data.thoughtNumber || typeof data.thoughtNumber !== 'number') {
        throw new Error('Invalid thoughtNumber: must be a number');
      }
      if (!data.totalThoughts || typeof data.totalThoughts !== 'number') {
        throw new Error('Invalid totalThoughts: must be a number');
      }
      if (data.totalThoughts < 3) {
        throw new Error('Invalid totalThoughts: must be >= 3');
      }
      if (data.totalThoughts % 2 === 0) {
        throw new Error('Invalid totalThoughts: must be odd');
      }
    
      return {
        content: data.content,
        role: data.role as 'actor' | 'critic',
        nextRoundNeeded: data.nextRoundNeeded,
        thoughtNumber: data.thoughtNumber,
        totalThoughts: data.totalThoughts,
      };
Behavior5/5

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

With no annotations provided, the description carries full burden and excels at disclosing behavioral traits. It explains the alternating perspective mechanism, tracks rounds, allows multiple dialogue rounds, balances empathy and objectivity, generates nuanced assessments, and provides actionable feedback. It includes detailed instructions on how to use the tool (start with either perspective, alternate, continue until complete) and what each perspective should include.

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

Conciseness3/5

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

The description is well-structured with clear sections (overview, when to use, key features, parameters explained, perspective details, instructions), but it's quite lengthy with multiple bullet points and numbered lists. While all content is relevant, it could be more front-loaded and condensed without losing essential information.

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

Completeness4/5

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

Given the tool's conceptual complexity, 5 parameters with 100% schema coverage, no annotations, and no output schema, the description is highly complete. It thoroughly explains the methodology, usage scenarios, parameters, perspective requirements, and step-by-step instructions. The only minor gap is lack of explicit output format information, but the tool's nature makes return values self-explanatory from the analysis process.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds significant value with a 'Parameters explained' section that elaborates on each parameter's purpose, plus detailed 'Actor perspective should include' and 'Critic perspective should include' sections that provide context for how to use the 'content' and 'role' parameters effectively. This goes well beyond what the schema provides.

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 as 'dual-perspective performance analysis through actor-critic methodology' and 'comprehensive evaluation of performances, creative works, or decisions'. It specifies the verb 'evaluate' and resource 'performances/creative works/decisions', though it doesn't differentiate from siblings since none exist. The purpose is specific but slightly abstract due to the conceptual nature of the tool.

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

Usage Guidelines5/5

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

The description provides an explicit 'When to use this tool' section with 7 specific scenarios, including evaluating artistic performances, analyzing intention-execution gaps, providing constructive feedback, reviewing complex scenarios, and performance reviews. It gives clear context for application without alternatives needed since no sibling tools exist.

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

Related 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/aquarius-wing/actor-critic-thinking-mcp'

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