Skip to main content
Glama

Update Task Document

update_task_document
Destructive

Use this when working with RetailHardHat documents records in the connected organization. Edit task document metadata; cannot replace its storage identity. No change occurs until a human approves the exact request in Settings > MCP and execute_approved_action is called. MCP approval requirements are configurable by the organization administrator; business workflow approvals always apply.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "taskId": "<taskId>",
      "documentId": "<documentId>",
      "data": "<data>"
    },
    "name": "update_task_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
taskIdYes
documentIdYes

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already flag destructiveHint=true, but the description adds substantial context the annotations cannot: that a human approval gate precedes any mutation, that execute_approved_action must follow, and that org admins can change MCP approval requirements while business workflow approvals always apply. What it does not disclose is what specifically is destructive or whether unspecified fields are preserved.

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

Conciseness3/5

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

The approval-gating sentences earn their place, but the leading sentence is vague boilerplate that adds no selection signal and occupies prime front-loaded position. Three of four sentences are about the approval mechanism rather than about what the tool edits.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and for a destructive, approval-gated mutation the description covers the workflow unusually well. The remaining gap is update semantics for the nested data object, which an agent needs in order to construct a correct call.

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 0%, so the description must carry the load. It does frame the parameters: documentId identifies the record, the edit is limited to metadata, and the storage identity cannot be changed via this call. It never enumerates the nested data fields (name, fileSize, fileType, description) or says whether the update is partial, leaving real ambiguity.

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?

"Edit task document metadata" gives a specific verb and resource, and "cannot replace its storage identity" bounds the scope of the edit. However, the opening sentence ("working with RetailHardHat documents records") is generic filler and the description never contrasts this with sibling mutators such as update_task or update_project_document.

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

Usage Guidelines3/5

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

It does state a critical usage condition: the edit will not take effect until a human approves the request in Settings > MCP and execute_approved_action is called, which tells the agent this is stage one of a two-step flow. But there is no guidance on when to pick this over the sibling document-update tools (update_site_document, update_closeout_document, update_rfp_document), nor on when-not to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources