Skip to main content
Glama

create_project_rule

Add a rule to a project: when an issue enters 'status', append 'template' to its description. 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. 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. 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. The state and the type are NAMES of this project's own (list_project_rules lists them); an unknown one is refused with the list. Project lead or admin only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesWhat the rule is called, e.g. 'Document pack'. At most 120 characters.
typeNoOnly issues of this type, by name, e.g. 'Bug'. Leave out for any type.
labelNoOnly issues carrying this label (one word). Leave out for any label.
actionNo'checklist' (the default) or 'agent' for a duty. Fixed once the rule exists.
capUsdNoFor a duty: what one task may cost, in dollars, when more than the ordinary ceiling is needed. At most 5.
statusYesThe state whose ENTRY fires the rule, by name, e.g. 'Ready for review'. For a duty taken only by hand, an empty string.
enabledNoWhether the rule is on from the start. Default true.
templateYesThe checklist, as Markdown: a '### Heading' per group, '- [ ] item' per line, two spaces of indent to nest an item under another, and [~username] on an item to name who does it. For a duty: the instruction.
agentRoleNoFor a duty: the agent role's key, e.g. 'product'.
doneStatusNoFor a duty: the state it moves the issue to when done. Never a finished state. Leave out and it does not move the issue.
projectKeyYesProject key, e.g. 'ONB'.
agentFieldsNoFor a duty: the fields it may set, comma-separated — priority, labels, duedate, or a project field's name.
agentActionsNoFor a duty: what the agent may do beyond commenting, comma-separated — describe, subtasks, ask, wiki, report, support.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It thoroughly describes side effects (appending, marker line, deduplication, tooLong behavior), permissions (project lead or admin only), and duty-specific behavior (runs on your behalf, switched off if you lose the project). No behavioral aspect is left unstated.

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?

The description is lengthy but well-structured, starting with the core purpose and then elaborating on behavior. Every sentence carries useful information for a complex tool with 13 parameters. While it could be trimmed slightly, the length is justified by the tool's complexity.

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?

Given the tool's complexity (13 parameters, no output schema, no annotations), the description is exceptionally complete. It covers permissions, edge cases, duty vs checklist behavior, and parameter constraints. An agent could confidently invoke this tool correctly based on the description alone.

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%, giving a baseline of 3. The description adds meaningful semantic value beyond the schema by explaining how parameters interact (e.g., capUsd limit, doneStatus never finished, agentActions list) and clarifying the template format for both checklist and duty. It does not merely repeat the schema.

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 states a specific verb-resource pair: 'Add a rule to a project' and explains exactly what the rule does (appends a template when an issue enters a status). It also distinguishes the two rule types (checklist vs duty), clarifying its purpose beyond just the name.

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 clearly explains the context of when a rule fires and the distinction between checklist and duty, guiding parameter selection. However, it does not explicitly mention sibling tools like update_project_rule or state when not to use this tool, though it's implied that creation is for new rules.

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