Skip to main content
Glama

Update task

update_task

Update an open native Lemongraph task using its exact eight-character data.key. Accepts optional title, dueDate (YYYY-MM-DD or null), priority, tag, and edits. Set tag to a name to reuse or create it, or null to move the task to Inbox. A tag is 1–20 characters and can include emoji and spaces. Task bodies are Markdown; use Markdown formatting in new_str. Each edit replaces old_str with new_str literally, in array order. Copy old_str exactly from get_task_context task.description, including Markdown notation and whitespace; it must match once. To add text, replace a passage with itself plus the addition; use the final passage to append or the opening passage to prepend. To delete, use empty new_str. Empty old_str is allowed only for an empty body. All edits and metadata save together or none do. On a match error, reread context and use a unique passage. Omitted fields stay unchanged. External services are unchanged.

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": {
      "key": "<key>"
    },
    "name": "update_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
tagNo
editsNo
titleNo
dueDateNo
priorityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tag
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / dueDate / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / content
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / edits
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "new_str": {
      +        "description": "Replacement text. Keep the old passage to add text; use an empty string to delete.",
      +        "type": "string"
      +      },
      +      "old_str": {
      +        "description": "Exact existing text. Must match once; empty only for an empty body.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "old_str",
      +      "new_str"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, openWorld=false), the description discloses atomicity ("All edits and metadata save together or none do"), the omission semantics ("Omitted fields stay unchanged"), the Inbox side effect of a null tag, and that external services are unaffected. It also tells the agent how failures behave and how to recover, which is exactly the extra context annotations cannot carry.

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?

It is long and prose-dense, but front-loaded with the core action and identifier, and nearly every sentence carries a non-obvious rule (match-once, empty old_str rule, atomic save, error recovery). Some constraint text (tag length) duplicates what could live in the schema, and bullet-style structure for the edit recipes would read faster.

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

Completeness5/5

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

For a six-parameter mutation tool with no output schema, all the decision-critical behavior is present: joint atomic commit of edits and metadata, unchanged omitted fields, exact-match sourcing from a named sibling, recovery on mismatch, and the no-external-effect guarantee. Only the priority enum vocabulary is left for the caller to discover from the schema.

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

Parameters4/5

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

Top-level schema description coverage is 0%, so the description must carry the load — and it does for key (8-char identifier), dueDate (YYYY-MM-DD or null), tag (name to reuse/create, null moves to Inbox, 1–20 chars, emoji and spaces allowed) and edits (literal replacement, array order, single match, add/prepend/append/delete recipes). Gaps remain: priority's allowed values are never named and title's constraints are unstated beyond being optional.

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 opening sentence states a specific verb and resource ("Update an open native Lemongraph task") plus the addressing mechanism ("exact eight-character data.key"), which distinguishes it cleanly from get_task_context (read) and complete_task (closes a task). An agent can pick it correctly without opening the schema.

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?

It gives clear operational context: use this to modify metadata or body of an open task, source old_str from get_task_context task.description, and recover from match errors by rereading context. It does not explicitly route away to siblings (e.g. use complete_task to close, create_task to make a new one), so the when-not guidance is implied rather than stated.

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