Skip to main content
Glama

think

Structure complex problem-solving by organizing thoughts to analyze challenges and develop solutions within Claude Code MCP's software engineering environment.

Instructions

A tool for thinking through complex problems

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thoughtYesYour thoughts

Implementation Reference

  • The handler function for the "think" tool, which is a no-op that simply returns the provided thought as a response.
    async ({ thought }) => {
      return {
        content: [{ 
          type: "text", 
          text: `Thought process: ${thought}`
        }]
      };
    }
  • The input schema for the "think" tool, defining a single string parameter 'thought' using Zod.
    {
      thought: z.string().describe("Your thoughts")
    },
  • The registration of the "think" tool on the MCP server, including name, description, schema, and handler.
    server.tool(
      "think",
      "A tool for thinking through complex problems",
      {
        thought: z.string().describe("Your thoughts")
      },
      async ({ thought }) => {
        return {
          content: [{ 
            type: "text", 
            text: `Thought process: ${thought}`
          }]
        };
      }
    );

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/auchenberg/claude-code-mcp'

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