Skip to main content
Glama

complete_task

Mark tasks as completed in Dida365 by providing task and project IDs. This tool helps users track progress and manage task completion within projects.

Instructions

将指定任务标记为已完成。需要提供 task_id 和 project_id。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes任务ID
project_idYes项目ID

Implementation Reference

  • The actual HTTP API implementation for completing a task in Dida365.
    def complete_task(self, project_id: str, task_id: str) -> bool:
        """将任务标记为完成"""
        response = self.client.post(
            f"/project/{project_id}/task/{task_id}/complete"
        )
        response.raise_for_status()
        return True
  • The MCP tool definition for `complete_task`, including its input schema.
        "name": "complete_task",
        "description": "将指定任务标记为已完成。需要提供 task_id 和 project_id。",
        "inputSchema": {
            "type": "object",
            "properties": {
                "task_id": {"type": "string", "description": "任务ID"},
                "project_id": {"type": "string", "description": "项目ID"},
            },
            "required": ["task_id", "project_id"],
        },
    },
  • The tool dispatcher logic that handles the `complete_task` request by calling the client's `complete_task` method.
    elif name == "complete_task":
        client.complete_task(
            project_id=args["project_id"],
            task_id=args["task_id"],
        )
        return "✅ 任务 %s 已标记为完成!" % args["task_id"]
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden for behavioral disclosure. While '标记为已完成' (mark as completed) implies a mutation operation, it doesn't specify whether this is reversible, what permissions are required, how it affects task dependencies, or what happens if the task is already completed. For a mutation tool with zero annotation coverage, this is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise - just two sentences that directly state the purpose and required parameters. There's no wasted language, though it could potentially benefit from slightly more context given the lack of annotations and sibling tool differentiation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description is incomplete. It doesn't explain what happens after marking a task complete (success indicators, error conditions, return values), nor does it address important behavioral aspects like idempotency, permissions, or side effects. Given the context of sibling tools that might overlap, more guidance is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters (task_id and project_id) adequately. The description mentions these parameters but adds no additional semantic context beyond what's in the schema. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('将指定任务标记为已完成' - mark a specified task as completed) and the resource (task). It's specific about what the tool does but doesn't explicitly distinguish it from sibling tools like 'update_task' which might have overlapping functionality. The purpose is clear but lacks sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'update_task' that might also handle task status changes, there's no indication of when 'complete_task' is preferred or what prerequisites might be needed. Only basic parameter requirements are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/Martinqi826/dida-mcp'

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