Skip to main content
Glama
jhirono

Microsoft Todo MCP Service

by jhirono

update-checklist-item

Modify checklist item details in Microsoft Todo by updating text content or marking completion status to track subtask progress.

Instructions

Update an existing checklist item (subtask). Allows changing the text content or completion status of the subtask.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
listIdYesID of the task list
taskIdYesID of the task
checklistItemIdYesID of the checklist item to update
displayNameNoNew text content of the checklist item
isCheckedNoWhether the item is checked off

Implementation Reference

  • Full implementation of the 'update-checklist-item' MCP tool handler. Registers the tool with server.tool(), defines input schema using Zod for parameters (listId, taskId, checklistItemId, optional displayName and isChecked), and implements the async handler that authenticates, prepares PATCH body, calls makeGraphRequest to Microsoft Graph API endpoint /me/todo/lists/{listId}/tasks/{taskId}/checklistItems/{checklistItemId}, and returns success/error messages.
    server.tool(
      "update-checklist-item",
      "Update an existing checklist item (subtask). Allows changing the text content or completion status of the subtask.",
      {
        listId: z.string().describe("ID of the task list"),
        taskId: z.string().describe("ID of the task"),
        checklistItemId: z.string().describe("ID of the checklist item to update"),
        displayName: z.string().optional().describe("New text content of the checklist item"),
        isChecked: z.boolean().optional().describe("Whether the item is checked off")
      },
      async ({ listId, taskId, checklistItemId, displayName, isChecked }) => {
        try {
          const token = await getAccessToken();
          if (!token) {
            return {
              content: [
                {
                  type: "text",
                  text: "Failed to authenticate with Microsoft API",
                },
              ],
            };
          }
    
          // Prepare the update body, including only the fields that are provided
          const requestBody: any = {};
          
          if (displayName !== undefined) {
            requestBody.displayName = displayName;
          }
          
          if (isChecked !== undefined) {
            requestBody.isChecked = isChecked;
          }
          
          // Make sure we have at least one property to update
          if (Object.keys(requestBody).length === 0) {
            return {
              content: [
                {
                  type: "text",
                  text: "No properties provided for update. Please specify either displayName or isChecked.",
                },
              ],
            };
          }
    
          // Make the API request to update the checklist item
          const response = await makeGraphRequest<ChecklistItem>(
            `${MS_GRAPH_BASE}/me/todo/lists/${listId}/tasks/${taskId}/checklistItems/${checklistItemId}`,
            token,
            "PATCH",
            requestBody
          );
          
          if (!response) {
            return {
              content: [
                {
                  type: "text",
                  text: `Failed to update checklist item with ID: ${checklistItemId}`,
                },
              ],
            };
          }
    
          const statusText = response.isChecked ? "Checked" : "Not checked";
          
          return {
            content: [
              {
                type: "text",
                text: `Checklist item updated successfully!\nContent: ${response.displayName}\nStatus: ${statusText}`,
              },
            ],
          };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Error updating checklist item: ${error}`,
              },
            ],
          };
        }
      }
    );
  • Zod schema definition for the input parameters of the update-checklist-item tool.
    {
      listId: z.string().describe("ID of the task list"),
      taskId: z.string().describe("ID of the task"),
      checklistItemId: z.string().describe("ID of the checklist item to update"),
      displayName: z.string().optional().describe("New text content of the checklist item"),
      isChecked: z.boolean().optional().describe("Whether the item is checked off")
    },
  • Registration of the 'update-checklist-item' tool using server.tool().
    server.tool(

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of explaining behavioral traits. It states what can be changed but omits key details for a write operation: whether it does a partial update or full replacement, authorization needs, idempotency, or what the response contains. This ambiguity leaves significant operational unknowns.

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

Conciseness5/5

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

The description is a single, efficient sentence that immediately identifies the action and resource. It has no wasted words and is well-structured.

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

Completeness3/5

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

The schema covers all parameters, but the description lacks information about the tool's operational behavior for a write operation (e.g., partial updates, response, prerequisites). Given no output schema and no annotations, the description is adequate for basic understanding but leaves important context gaps.

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 baseline is 3. The description adds a modest semantic layer by grouping parameters into 'text content' (displayName) and 'completion status' (isChecked), which helps conceptual mapping but doesn't add meaning beyond the schema's existing descriptions.

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

Purpose5/5

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

The description clearly states a specific verb ('Update'), resource ('checklist item (subtask)'), and scope ('changing the text content or completion status'). It distinguishes itself from sibling tools like create-checklist-item and delete-checklist-item by specifying it targets existing items.

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

Usage Guidelines4/5

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

The description implies when to use the tool via 'existing' (not for creating) and 'update' (not for deleting), and the fields it mentions give clear use cases. However, it doesn't explicitly compare with alternatives or state when not to use it, so it's clear but not fully explicit.

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