Skip to main content
Glama

think

Facilitate structured reasoning and complex problem-solving by analyzing thoughts step-by-step. Ideal for policy verification, mental processes, and detailed analysis without obtaining new information or making changes.

Instructions

Use this tool to think about something. It will not obtain new information or change anything. Use it when complex reasoning is needed.

Args: thought: A thought to think about. This can be structured reasoning, step-by-step analysis, policy verification, or any other mental process that helps with problem-solving.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thoughtYes

Implementation Reference

  • The asynchronous handler function for the 'think' tool. It receives a 'thought' string and returns a structured text response echoing the thought (truncated if longer than 50 characters).
    async ({ thought }) => { // Return a confirmation return { content: [{ type: "text", text: thought.length > 50 ? `Thought: ${thought.substring(0, 50)}...` : `Thought: ${thought}` }] }; }
  • Zod schema for the 'think' tool input, defining a single required string parameter 'thought'.
    { thought: z.string() },
  • src/server.ts:22-39 (registration)
    Registration of the 'think' tool on the MCP server using this.mcp.tool(), specifying name, description, input schema, and handler function.
    "think", `Use this tool to think about something. It will not obtain new information or change anything. Use it when complex reasoning is needed. Args: thought: A thought to think about. This can be structured reasoning, step-by-step analysis, policy verification, or any other mental process that helps with problem-solving.`, { thought: z.string() }, async ({ thought }) => { // Return a confirmation return { content: [{ type: "text", text: thought.length > 50 ? `Thought: ${thought.substring(0, 50)}...` : `Thought: ${thought}` }] }; } );

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/abhinav-mangla/think-tool-mcp'

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