Skip to main content
Glama

Update task definition

definition_update
Destructive

Change a task definition, by its id or by its type with workspaceId. It changes its purpose, instructions (saved whole as the next version), doer, reviewer, review, archived, or a cleanup definition's limits (cleanup). Replacing its instructions or purpose needs the revision you read (expectedRevision; none is PRECONDITION_REQUIRED, a stale one CONFLICT with currentRevision); other changes need none and a revision sent with them is not checked. Only the workspace's owner or a member of the team that owns it changes a definition (directWork): a guest of any role is refused GUEST_FORBIDDEN, and a retry changes nothing. Turning review off, and archiving a definition that requires review, are a workspace admin's, in their own browser: anyone else is refused REVIEW_OFF_FORBIDDEN. includesCorrections names the corrections in force that a new instructions text now covers: in the same write the new version is saved and each named one is retired, pointing at that version, so later pickups carry the text instead. It needs instructions that differ from the current text (INVALID_INPUT with details.reason includes_need_instructions otherwise); dropping a correction without a new text is a retire (correction_retire). One not in force on this definition refuses the whole update (STATE_CONFLICT with details.reason CORRECTION_NOT_IN_FORCE and details.corrections). A save that includes corrections also finishes the task of an instructions update Tokenrip drafted that waits on a person. cleanup on a definition whose routine is not suggest_cleanup is refused (INVALID_INPUT with details.reason cleanup_routine_only). A refused update saves nothing, and a change that changes nothing writes nothing. Returns the definition as definition_create does, with a hint (instructions-too-long-for-pickup) when the instructions saved are longer than a task_start answer always carries whole.

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": {
      "definition": "<definition>"
    },
    "name": "definition_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.
doerNoWho does tasks of this type: me (you), a person (account id, alias or @alias), or one agent (agent:me, agent:<its name> for your own, agent:<its key id> or agent:<its handle from workspace_load agents>), who must be able to edit tasks here. A new task of the type with no assignee is theirs. @tokenrip (Tokenrip itself) is accepted only on a definition that carries a routine (routine is not null: an add-on made it), and Tokenrip then does the work; anywhere else it is refused with reason tokenrip. null: nobody.
reviewNorequired turns review on (reviewed by reviewer when sent, else by the account's operator). none turns it off: only a workspace admin in their own browser (anyone else is REVIEW_OFF_FORBIDDEN, naming the definition's page).
cleanupNoThe files Tokenrip considers when it suggests files to clean up (only on a definition whose routine is suggest_cleanup; any other is refused on cleanup): send any of the three to change it, at least one, and the rest stay as they are. Tokenrip applies them exactly before its model sees a file, so a list names only files that meet them; the instructions then choose among those and word each reason. No instruction or correction changes which files meet them. Applies from the next suggestion; a list already handed in stays as it is.
purposeNoOne line on what the type is for, at most 280 characters, shown wherever definitions are listed. Empty is none. null clears it.
archivedNotrue archives the definition: it fills nothing, rides on no pickup and requires nothing, and keeps its type. Archiving one that requires review is a workspace admin's, in their own browser (REVIEW_OFF_FORBIDDEN otherwise). false restores it.
reviewerNoWho reviews work of this type: one person (me, an account id, alias or @alias) who can edit tasks here, never an agent. null: any person who can edit tasks. Naming a reviewer requires review.
definitionYesThe definition: its id (definition_create and definition_list return it), or its type when workspaceId is sent. An id is an id with or without workspaceId.
workspaceIdNoWith a type as definition: the workspace (its id or its slug).
instructionsNoHow a task of this type is done, in markdown, at most 64000 characters, saved whole: a text that differs from the current one is the next version (the earlier ones are kept), the same text writes nothing. It counts toward the workspace's storage. Empty is allowed.
expectedRevisionNoThe definition's revision as you read it (definition_get, definition_list, a write's answer). Needed to replace instructions or purpose (none is PRECONDITION_REQUIRED, a stale one CONFLICT with currentRevision); not checked for other changes.
includesCorrectionsNoThe corrections in force that the new instructions now cover, 1 to 20 distinct ids (definition_get lists them). In the same write the new version is saved and each is retired, pointing at that version, so later pickups carry the text and not the corrections. Requires instructions that differ from the current text; to drop a correction without changing the text, retire it. Each must be in force on this definition, or nothing is saved.

Output Schema

NameRequiredDescriptionDefault
definitionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / cleanup / description
      Previous value: -"The files Tokenrip considers when it suggests files to clean up (only on a definition whose routine is suggest_cleanup; any other is refused on cleanup): send any of the three to change it, at least one, and the rest stay as they are. Tokenrip applies them exactly before its model sees a file, so a list names only files that meet them; the instructions then choose among those and word each reason. A narrower rule (only files rated None, only files unread for 90 days) belongs here, not in the instructions. Applies from the next suggestion; a list already handed in stays as it is."New value: +"The files Tokenrip considers when it suggests files to clean up (only on a definition whose routine is suggest_cleanup; any other is refused on cleanup): send any of the three to change it, at least one, and the rest stay as they are. Tokenrip applies them exactly before its model sees a file, so a list names only files that meet them; the instructions then choose among those and word each reason. No instruction or correction changes which files meet them. Applies from the next suggestion; a list already handed in stays as it is."
    • changedInput schema / properties / expectedRevision / description
      Previous value: -"The definition's revision as you read it (definition_get, definition_list, a write's answer). Required: none is PRECONDITION_REQUIRED, a stale one CONFLICT with currentRevision."New value: +"The definition's revision as you read it (definition_get, definition_list, a write's answer). Needed to replace instructions or purpose (none is PRECONDITION_REQUIRED, a stale one CONFLICT with currentRevision); not checked for other changes."
    • changedInput schema / properties / review / description
      Previous value: -"required turns review on (reviewed by reviewer when sent, else by your own person). none turns it off: only a workspace admin in their own browser (anyone else is REVIEW_OFF_FORBIDDEN, naming the definition's page)."New value: +"required turns review on (reviewed by reviewer when sent, else by the account's operator). none turns it off: only a workspace admin in their own browser (anyone else is REVIEW_OFF_FORBIDDEN, naming the definition's page)."
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed13 schema fields changed
    • addedInput schema / properties / cleanup
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The files Tokenrip considers when it suggests files to clean up (only on a definition whose routine is suggest_cleanup; any other is refused on cleanup): send any of the three to change it, at least one, and the rest stay as they are. Tokenrip applies them exactly before its model sees a file, so a list names only files that meet them; the instructions then choose among those and word each reason. A narrower rule (only files rated None, only files unread for 90 days) belongs here, not in the instructions. Applies from the next suggestion; a list already handed in stays as it is.",
      +  "minProperties": 1,
      +  "properties": {
      +    "maxImportance": {
      +      "description": "The highest importance a file may be rated and still be considered: none (files rated None), low (Low or None), medium (Medium or lower) or high (any).",
      +      "enum": [
      +        "high",
      +        "medium",
      +        "low",
      +        "none"
      +      ],
      +      "type": "string"
      +    },
      +    "unchangedDays": {
      +      "description": "Consider only files that have not changed for at least this many whole days, 0 to 3650; 0: no limit on it.",
      +      "maximum": 3650,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "unreadDays": {
      +      "description": "Consider only files nobody has read for at least this many whole days, 0 to 3650; 0: no limit on it.",
      +      "maximum": 3650,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / doer / anyOf
      Previous value: -[
      -  {
      -    "description": "Who does tasks of this type: me (you), a person (account id, alias or @alias), or one agent (agent:me, agent:<its name> for your own, agent:<its key id> or agent:<its handle from workspace_load agents>), who must be able to edit tasks here. A new task of the type with no assignee is theirs.",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Who does tasks of this type: me (you), a person (account id, alias or @alias), or one agent (agent:me, agent:<its name> for your own, agent:<its key id> or agent:<its handle from workspace_load agents>), who must be able to edit tasks here. A new task of the type with no assignee is theirs. @tokenrip (Tokenrip itself) is accepted only on a definition that carries a routine (routine is not null: an add-on made it), and Tokenrip then does the work; anywhere else it is refused with reason tokenrip.",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / doer / description
      Previous value: -"Who does tasks of this type: me (you), a person (account id, alias or @alias), or one agent (agent:me, agent:<its name> for your own, agent:<its key id> or agent:<its handle from workspace_load agents>), who must be able to edit tasks here. A new task of the type with no assignee is theirs. null: nobody."New value: +"Who does tasks of this type: me (you), a person (account id, alias or @alias), or one agent (agent:me, agent:<its name> for your own, agent:<its key id> or agent:<its handle from workspace_load agents>), who must be able to edit tasks here. A new task of the type with no assignee is theirs. @tokenrip (Tokenrip itself) is accepted only on a definition that carries a routine (routine is not null: an add-on made it), and Tokenrip then does the work; anywhere else it is refused with reason tokenrip. null: nobody."
    • addedOutput schema / properties / definition / properties / cleanup
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "maxImportance": {
      +          "description": "The highest importance a file may be rated and be considered: none (files rated None), low (Low or None), medium (Medium or lower) or high (any).",
      +          "enum": [
      +            "high",
      +            "medium",
      +            "low",
      +            "none"
      +          ],
      +          "type": "string"
      +        },
      +        "unchangedDays": {
      +          "description": "Only files that have not changed for at least this many whole days; 0: no limit on it.",
      +          "maximum": 3650,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unreadDays": {
      +          "description": "Only files nobody has read for at least this many whole days; 0: no limit on it.",
      +          "maximum": 3650,
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "maxImportance",
      +        "unreadDays",
      +        "unchangedDays"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The files Tokenrip considers when it suggests files to clean up, applied exactly before its model sees a file, so a list names only files that meet them: on a definition whose routine is suggest_cleanup (whoever its doer is), null on every other. definition_update changes them with cleanup."
      +}
    • addedOutput schema / properties / definition / properties / createdBy / properties / tokenrip
      Added value: +{
      +  "const": true,
      +  "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / definition / properties / doer / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "alias": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "former": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "id": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "alias"
      -        ],
      -        "type": "object"
      -      },
      -      "agent": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "harness": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "id": {
      -                "anyOf": [
      -                  {
      -                    "format": "uuid",
      -                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "name": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "name",
      -              "harness"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "isCaller": {
      -        "type": "boolean"
      -      },
      -      "mine": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "account",
      -      "agent",
      -      "mine",
      -      "isCaller"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alias": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "former": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "id": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "alias"
      +        ],
      +        "type": "object"
      +      },
      +      "agent": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "harness": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "id": {
      +                "anyOf": [
      +                  {
      +                    "format": "uuid",
      +                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "name": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "harness"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "isCaller": {
      +        "type": "boolean"
      +      },
      +      "mine": {
      +        "type": "boolean"
      +      },
      +      "tokenrip": {
      +        "const": true,
      +        "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "account",
      +      "agent",
      +      "mine",
      +      "isCaller"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / definition / properties / doer / description
      Previous value: -"Who does tasks of this type; null: nobody named."New value: +"Who does tasks of this type; null: nobody named. Tokenrip itself (tokenrip: true) only where routine is set."
    • changedOutput schema / properties / definition / properties / instructions / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "savedAt": {
      -        "format": "date-time",
      -        "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      -        "type": "string"
      -      },
      -      "savedBy": {
      -        "additionalProperties": false,
      -        "description": "Who saved this version: a person, or a person's agent.",
      -        "properties": {
      -          "account": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "alias": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "former": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "id": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "alias"
      -            ],
      -            "type": "object"
      -          },
      -          "agent": {
      -            "anyOf": [
      -              {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "harness": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "id": {
      -                    "anyOf": [
      -                      {
      -                        "format": "uuid",
      -                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "name": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "id",
      -                  "name",
      -                  "harness"
      -                ],
      -                "type": "object"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "isCaller": {
      -            "type": "boolean"
      -          },
      -          "mine": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "account",
      -          "agent",
      -          "mine",
      -          "isCaller"
      -        ],
      -        "type": "object"
      -      },
      -      "text": {
      -        "description": "The instructions, markdown, saved whole; may be empty.",
      -        "type": "string"
      -      },
      -      "version": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "why": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "The why the agent that saved it stated; null for a person's save."
      -      }
      -    },
      -    "required": [
      -      "version",
      -      "text",
      -      "savedBy",
      -      "savedAt",
      -      "why"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "savedAt": {
      +        "format": "date-time",
      +        "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +        "type": "string"
      +      },
      +      "savedBy": {
      +        "additionalProperties": false,
      +        "description": "Who saved this version: a person, or a person's agent.",
      +        "properties": {
      +          "account": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "alias": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "former": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "id": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "alias"
      +            ],
      +            "type": "object"
      +          },
      +          "agent": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "harness": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "id": {
      +                    "anyOf": [
      +                      {
      +                        "format": "uuid",
      +                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "name": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "name",
      +                  "harness"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "isCaller": {
      +            "type": "boolean"
      +          },
      +          "mine": {
      +            "type": "boolean"
      +          },
      +          "tokenrip": {
      +            "const": true,
      +            "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "account",
      +          "agent",
      +          "mine",
      +          "isCaller"
      +        ],
      +        "type": "object"
      +      },
      +      "text": {
      +        "description": "The instructions, markdown, saved whole; may be empty.",
      +        "type": "string"
      +      },
      +      "version": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "why": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The why the agent that saved it stated; null for a person's save."
      +      }
      +    },
      +    "required": [
      +      "version",
      +      "text",
      +      "savedBy",
      +      "savedAt",
      +      "why"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / definition / properties / madeFrom
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "addOn": {
      +          "description": "The add-on's id.",
      +          "type": "string"
      +        },
      +        "version": {
      +          "description": "The add-on's version it was made from.",
      +          "exclusiveMinimum": 0,
      +          "maximum": 9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "addOn",
      +        "version"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The add-on and version this definition was made from; null: made by hand. Never changed."
      +}
    • changedOutput schema / properties / definition / properties / review / properties / offBy / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "alias": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "former": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "id": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "alias"
      -        ],
      -        "type": "object"
      -      },
      -      "agent": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "harness": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "id": {
      -                "anyOf": [
      -                  {
      -                    "format": "uuid",
      -                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "name": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "name",
      -              "harness"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "isCaller": {
      -        "type": "boolean"
      -      },
      -      "mine": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "account",
      -      "agent",
      -      "mine",
      -      "isCaller"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alias": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "former": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "id": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "alias"
      +        ],
      +        "type": "object"
      +      },
      +      "agent": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "harness": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "id": {
      +                "anyOf": [
      +                  {
      +                    "format": "uuid",
      +                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "name": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "harness"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "isCaller": {
      +        "type": "boolean"
      +      },
      +      "mine": {
      +        "type": "boolean"
      +      },
      +      "tokenrip": {
      +        "const": true,
      +        "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "account",
      +      "agent",
      +      "mine",
      +      "isCaller"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / definition / properties / review / properties / reviewer / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "account": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "alias": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "former": {
      -            "const": true,
      -            "type": "boolean"
      -          },
      -          "id": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "alias"
      -        ],
      -        "type": "object"
      -      },
      -      "agent": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "harness": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "id": {
      -                "anyOf": [
      -                  {
      -                    "format": "uuid",
      -                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "name": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "name",
      -              "harness"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "isCaller": {
      -        "type": "boolean"
      -      },
      -      "mine": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "account",
      -      "agent",
      -      "mine",
      -      "isCaller"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "account": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "alias": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "former": {
      +            "const": true,
      +            "type": "boolean"
      +          },
      +          "id": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "alias"
      +        ],
      +        "type": "object"
      +      },
      +      "agent": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "harness": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "id": {
      +                "anyOf": [
      +                  {
      +                    "format": "uuid",
      +                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "name": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "harness"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "isCaller": {
      +        "type": "boolean"
      +      },
      +      "mine": {
      +        "type": "boolean"
      +      },
      +      "tokenrip": {
      +        "const": true,
      +        "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "account",
      +      "agent",
      +      "mine",
      +      "isCaller"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / definition / properties / routine
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "kind": {
      +          "description": "proposes: it hands its result in for a person to decide; carries_out: it acts only on what a person approved.",
      +          "enum": [
      +            "proposes",
      +            "carries_out"
      +          ],
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Which routine: suggest_cleanup (reads the workspace's files and submits the files it suggests removing for a person to review) or trash_approved (moves the files of an approved cleanup list to the trash).",
      +          "enum": [
      +            "suggest_cleanup",
      +            "trash_approved"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The work Tokenrip does for this type while Tokenrip is its doer; null: none. Set when an add-on added the definition, and never changed."
      +}
    • changedOutput schema / properties / definition / required
      Previous value: -[
      -  "id",
      -  "workspaceId",
      -  "type",
      -  "purpose",
      -  "doer",
      -  "review",
      -  "archived",
      -  "archivedAt",
      -  "revision",
      -  "instructionsVersion",
      -  "instructions",
      -  "createdBy",
      -  "createdAt",
      -  "updatedAt",
      -  "corrections",
      -  "page",
      -  "instructionsUpdate"
      -]New value: +[
      +  "id",
      +  "workspaceId",
      +  "type",
      +  "purpose",
      +  "doer",
      +  "routine",
      +  "madeFrom",
      +  "cleanup",
      +  "review",
      +  "archived",
      +  "archivedAt",
      +  "revision",
      +  "instructionsVersion",
      +  "instructions",
      +  "createdBy",
      +  "createdAt",
      +  "updatedAt",
      +  "corrections",
      +  "page",
      +  "instructionsUpdate"
      +]
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say it is a destructive write; the description goes far beyond that with permission models (owner or owning-team member, guest refused GUEST_FORBIDDEN), admin-only paths (REVIEW_OFF_FORBIDDEN for turning review off or archiving a reviewed definition), error codes (PRECONDITION_REQUIRED, CONFLICT, STATE_CONFLICT, INVALID_INPUT with details.reason), and side effects such as retiring named corrections and finishing a Tokenrip-drafted instructions update in the same write.

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 core action and target are front-loaded, and most clauses carry real information, but the body is one long run-on paragraph dense with parenthetical error codes and nested conditions, which makes it hard to scan. Information-per-word is high, yet structure and readability suffer for a 12-parameter tool.

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 complex destructive tool with 12 parameters and nested cleanup objects, the description covers permissions, revision preconditions, correction handling, no-op behavior, and refusal semantics. Return values are summarized despite an output schema existing, and nothing an agent needs before calling is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: expectedRevision is only checked for instructions/purpose replacements, includesCorrections must name corrections currently in force and requires a differing text, and cleanup is rejected unless the routine is suggest_cleanup. That is substantive semantics beyond the field-level docs.

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?

Opens with a specific verb+resource and enumerates exactly which fields it can change (purpose, instructions, doer, reviewer, review, archived, cleanup limits), plus how the target is addressed (id, or type with workspaceId). It is clearly distinguishable from definition_create, correction_retire and task_update.

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?

Gives concrete routing: replacing instructions/purpose requires expectedRevision from definition_get/definition_list, and dropping a correction without new text should go to correction_retire instead. It also states the safe-usage condition that a change that changes nothing writes nothing. What it does not do is contrast against other update verbs outside its own family (e.g. task_update), so it stops short of a full 5.

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.