Skip to main content
Glama

Update project rule

update_project_rule
Destructive

Change a project rule, by its id from list_project_rules. Only what you pass changes: pass just 'enabled' to switch a rule on or off, or any of the others to edit it. An empty string for 'type' or 'label' removes that condition; an empty 'fromStatus' or 'branch' removes that one too; for a duty, an empty 'status', 'agentActions', 'agentFields' or 'doneStatus' clears that one. A rule's action cannot change. A rule appends its checklist to an issue's description when the issue ENTERS the rule's state — from the board, the Jira API or update_issue alike. The block starts with a hidden marker line '[//]: # (pm-rule:)'; while that line is in the description, entering the state again adds nothing (the journal says 'alreadyThere'). A [~username] in the template is a mention: that person is notified when the checklist lands. A checklist that would make the description too long is not added and the journal says 'tooLong'; the move itself still happens. 'trigger' says WHEN: 'entered' (the default — the issue entered 'status'), 'versionReleased' (a version it goes out in was marked released), 'subtasksDone' (every issue under it is finished — the rule acts on the PARENT) or 'subtaskStarted' (an issue under it was taken into work — the parent again); or what the project's repository said through its webhook: 'branchCreated' (a branch naming the issue was made), 'mrOpened', 'mrMerged' or 'mrClosed' (a merge request — a pull request on GitHub — naming the issue was opened, merged, or closed without merging). An issue is named by its key in the branch, the title or the description, and only this project's issues are touched. 'branch' narrows the three merge-request events to a request going INTO that branch, e.g. 'main'. Nobody is behind a webhook, so such a rule acts as whoever last saved or switched it on, whatever its action. 'deployed' fires when a pipeline reports that the issue went out to an environment (report_deployment); 'environment' narrows it to one of the project's environments by name, e.g. 'staging'. 'actChanged' fires on the issues that cite a legal act when its publisher's text changed, and 'actTouched' only on those where the change is in the place they cite (or that cite the act as a whole) — found once a week, only in a project with the «Legal acts» add-on; 'claimBasisChanged' fires on the issues that cite a claim ([thm:…], [claim:…]) whose legal basis is such an act, once per new text and claim; nobody is behind a publisher either, so these act as the rule's owner too. Only 'entered' has a 'status'; pass an empty one for the others. 'fromStatus' narrows any of them to an issue coming from that state: the state it has just left for 'entered', the state it stands in for the rest. A rule with action 'move' MOVES the issue to 'moveToStatus' instead of appending anything, and has no template (pass an empty one). The move is an ordinary one — made as whoever last saved or switched on the rule, asked of the project's workflow, written to the history with the rule's name, and followed by the rules of the state it lands in. A workflow that refuses it leaves a 'moveRefused' line with the reason in the journal and nothing else; 'moved' is a move made; 'tooDeep' is a move not made because rules had already moved issues three times off one event. A rule with action 'agent' is a DUTY instead: it says which issues may be handed to an agent role (agentRole, e.g. 'product') and what the agent may do with them. Its 'template' is then the INSTRUCTION — what doing such an issue means in this project — and nothing is appended anywhere. A duty may have no state (pass an empty 'status'): then an issue is handed only by a person. agentActions is a list from: describe, subtasks, ask, wiki, report, support, jira (propose a move or a comment in the project's linked Jira, applied by a person). agentFields names the fields it may set: priority, labels, duedate, or the project's own fields by name. doneStatus is the state it moves the issue to when done — never a finished one. capUsd raises what one task may cost, up to 5 dollars. Commenting is always allowed; finishing, deleting, reassigning and anything outside the issue never are. Saving or switching on a duty makes it yours: it runs on your behalf and access, and is switched off if you lose the project. Project lead or admin only.

Input Schema

NameRequiredDescriptionDefault
idYesThe rule's id, from list_project_rules.
nameNoA new name.
typeNoOnly issues of this type, by name. An empty string means any type.
labelNoOnly issues with this label. An empty string means any label.
branchNoFor a merge-request event: only a request going into this branch. An empty string means into any.
capUsdNoFor a duty: what one task may cost, in dollars, at most 5; 0 goes back to the ordinary ceiling.
statusNoA new state to fire on, by name.
enabledNotrue to switch the rule on, false to switch it off.
triggerNoWHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged', 'mrClosed', 'deployed', 'actChanged', 'actTouched' or 'claimBasisChanged'. Moving off 'entered' drops the rule's state.
templateNoA new checklist template (Markdown). Replaces the old one for issues that enter the state from now on; checklists already added stay as they are.
agentRoleNoFor a duty: a new agent role key.
doneStatusNoFor a duty: a new review state; an empty string and it no longer moves the issue.
fromStatusNoOnly an issue coming from this state, by name. An empty string means from any.
projectKeyYesProject key, e.g. 'ONB'.
agentFieldsNoFor a duty: the whole new list of fields, comma-separated.
environmentNoFor 'deployed': only a deployment to this environment, by name. An empty string means to any.
agentActionsNoFor a duty: the whole new list of actions, comma-separated.
moveToStatusNoFor a 'move' rule: a new state to move the issue to, by name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trigger / description
      Previous value: -"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged', 'mrClosed', 'deployed', 'actChanged' or 'actTouched'. Moving off 'entered' drops the rule's state."New value: +"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged', 'mrClosed', 'deployed', 'actChanged', 'actTouched' or 'claimBasisChanged'. Moving off 'entered' drops the rule's state."
  2. Changed1 schema field changed
    • changedInput schema / properties / trigger / description
      Previous value: -"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged', 'mrClosed' or 'deployed'. Moving off 'entered' drops the rule's state."New value: +"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged', 'mrClosed', 'deployed', 'actChanged' or 'actTouched'. Moving off 'entered' drops the rule's state."
  3. Changed2 schema fields changed
    • addedInput schema / properties / environment
      Added value: +{
      +  "default": null,
      +  "description": "For 'deployed': only a deployment to this environment, by name. An empty string means to any.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / trigger / description
      Previous value: -"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged' or 'mrClosed'. Moving off 'entered' drops the rule's state."New value: +"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged', 'mrClosed' or 'deployed'. Moving off 'entered' drops the rule's state."
  4. Changed2 schema fields changed
    • addedInput schema / properties / branch
      Added value: +{
      +  "default": null,
      +  "description": "For a merge-request event: only a request going into this branch. An empty string means into any.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / trigger / description
      Previous value: -"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone' or 'subtaskStarted'. Moving off 'entered' drops the rule's state."New value: +"WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone', 'subtaskStarted', 'branchCreated', 'mrOpened', 'mrMerged' or 'mrClosed'. Moving off 'entered' drops the rule's state."
  5. Changed3 schema fields changed
    • addedInput schema / properties / fromStatus
      Added value: +{
      +  "default": null,
      +  "description": "Only an issue coming from this state, by name. An empty string means from any.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / moveToStatus
      Added value: +{
      +  "default": null,
      +  "description": "For a 'move' rule: a new state to move the issue to, by name.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / trigger
      Added value: +{
      +  "default": null,
      +  "description": "WHEN the rule fires: 'entered', 'versionReleased', 'subtasksDone' or 'subtaskStarted'. Moving off 'entered' drops the rule's state.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The description goes far beyond the destructiveHint annotation: it explains empty-string clearing, immutable action, checklist marker behavior, duplicate suppression, journal outcomes such as 'alreadyThere', 'tooLong', 'moveRefused' and 'tooDeep', webhook ownership, duty ownership, and the 'Project lead or admin only' permission requirement.

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

Conciseness2/5

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

The description is a very long, dense paragraph with semicolon-separated clauses and many edge-case details. It is front-loaded with purpose, but it is not concise and would be much easier to scan as structured bullets or sections.

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 an 18-parameter destructive update tool, the description is remarkably complete: it covers partial updates, clearing semantics, trigger behavior, duty semantics, side effects, permissions, and journal outcomes. Nothing essential for correct invocation appears to be 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 already 100%, but the description adds cross-parameter meaning: empty strings remove conditions, 'enabled' toggles a rule, 'type' and 'label' clearing works differently from omission, and 'trigger' values are tied to specific rule behaviors. It adds real value beyond the schema, though not every parameter gets equal semantic depth.

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 opens with a specific verb and resource: 'Change a project rule, by its id from list_project_rules.' It distinguishes update from create/delete/list siblings by requiring an id sourced from list_project_rules.

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 usage context: the rule must be identified by an id from list_project_rules, and 'Only what you pass changes' explains partial-update semantics. It does not explicitly mention when to use create_project_rule or delete_project_rule instead, so it stops short of full alternative routing.

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