Skip to main content
Glama

think_more

Enhance problem-solving and decision-making by exploring questions or thoughts more deeply with structured suggestions and guidance.

Instructions

Get guidance for thinking more deeply.

This tool provides suggestions and guidance for thinking more deeply about a specific query or thought.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe query to think more deeply about

Implementation Reference

  • Primary MCP tool handler for 'think_more', registered via @mcp.tool() decorator. Wraps the core implementation by calling think_more_impl with the query and None for thought_id, then returns JSON response.
    @mcp.tool() def think_more(query: str = Field(description="The query to think more deeply about")) -> str: """ Get guidance for thinking more deeply. This tool provides suggestions and guidance for thinking more deeply about a specific query or thought. """ # Extract actual value if it's a Field object if hasattr(query, "default"): query = query.default result = think_more_impl(query, None) return json.dumps(result, indent=2)
  • Pydantic input schema for the 'query' parameter using Field with description.
    def think_more(query: str = Field(description="The query to think more deeply about")) -> str:
  • Core helper function implementing the think_more logic. Retrieves relevant thought from storage, computes suggested depth, generates guidance based on depth_directive, and returns structured response.
    def think_more(depth_directive: str, thought_id: Optional[int] = None) -> Dict[str, Any]: """Get guidance for thinking more deeply about a thought.""" thoughts = _storage.get_thoughts() if not thoughts: return {"success": False, "message": "No previous thoughts exist"} if thought_id is None: # Use the last thought source_thought = thoughts[-1] else: matching = [t for t in thoughts if t["thought_id"] == thought_id] if not matching: return {"success": False, "message": f"No thought found with ID {thought_id}"} source_thought = matching[0] # Calculate suggested depth current_depth = source_thought.get("depth", 1) suggested_depth = current_depth + 1 guidance = "Consider exploring:" if depth_directive in ["deeper", "harder"]: guidance += "\n- Root causes and underlying principles" guidance += "\n- Alternative perspectives and approaches" elif depth_directive == "again": guidance += "\n- What assumptions might be wrong?" guidance += "\n- What important aspects were missed?" else: # "more" guidance += "\n- Additional implications and consequences" guidance += "\n- Related areas to investigate" return { "success": True, "source_thought": source_thought, "suggested_depth": suggested_depth, "guidance": guidance, "message": f"Here's how to think {depth_directive} about this", }
  • Import of the think_more implementation aliased as think_more_impl, enabling the handler to delegate to it.
    from .think_tool import think_more as think_more_impl

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/smian0/mcp-agile-flow'

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