Skip to main content
Glama

complete_task

Mark a task as completed by providing its ID to update task status in the Task MCP Server.

Instructions

Mark a task as completed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesID of the task to complete

Implementation Reference

  • Executes the complete_task tool: retrieves task_id from arguments, checks if task exists, marks it as completed, and returns a success message.
    elif name == "complete_task": task_id = int(arguments.get("task_id", 0)) if task_id not in tasks: return [ types.TextContent( type="text", text=f"❌ Task {task_id} not found" ) ] tasks[task_id]["completed"] = True return [ types.TextContent( type="text", text=f"✅ Task {task_id} marked as completed: {tasks[task_id]['title']}" ) ]
  • Registers the 'complete_task' tool in the list_tools handler, including its name, description, and input schema requiring a numeric task_id.
    types.Tool( name="complete_task", description="Mark a task as completed", inputSchema={ "type": "object", "properties": { "task_id": { "type": "number", "description": "ID of the task to complete" } }, "required": ["task_id"] } ),
  • Defines the input schema for the complete_task tool, specifying an object with a required numeric 'task_id' property.
    types.Tool( name="complete_task", description="Mark a task as completed", inputSchema={ "type": "object", "properties": { "task_id": { "type": "number", "description": "ID of the task to complete" } }, "required": ["task_id"] } ),

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/gvbigdata/MCP-Github-Deployment'

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