Skip to main content
Glama

update_current_task

Modify the content of your currently active task to maintain focus and context during problem-solving sessions.

Instructions

Update notes/content of the task you're currently focused on (current task only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesNew body content for the task

Implementation Reference

  • The main handler function for the 'update_current_task' tool, which updates the body of the current task via the task manager and returns a success response.
    async def handle_update_current_task(self, body: str) -> Dict[str, Any]:
        try:
            task = self.task_manager.update_current_task(body)
            return {
                "task_id": task.id,
                "title": task.title,
                "message": "Task body updated successfully",
            }
        except ValueError as e:
            return {"error": str(e)}
  • The input schema definition for the 'update_current_task' tool, specifying the required 'body' parameter.
    Tool(
        name="update_current_task",
        description="Update notes/content of the task you're currently focused on (current task only)",
        inputSchema={
            "type": "object",
            "properties": {
                "body": {
                    "type": "string",
                    "description": "New body content for the task",
                }
            },
            "required": ["body"],
        },
  • src/server.py:63-65 (registration)
    Registration of the 'update_current_task' tool in the MCP server handler map, dispatching to the handlers method.
    "update_current_task": lambda: handlers.handle_update_current_task(
        arguments["body"]
    ),
  • Core helper method in TaskManager that performs the actual update of the current task's body.
    def update_current_task(self, body: str) -> Task:
        current = self.current_task
        if not current:
            raise ValueError("No current task to update")
    
        current.body = body
        return current

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/cheezcake/aidderall_mcp'

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