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
| Name | Required | Description | Default |
|---|---|---|---|
| thought | Yes |
Implementation Reference
- src/server.ts:28-38 (handler)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}` }] }; }
- src/server.ts:27-27 (schema)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}` }] }; } );