add_constraint
Record a project constraint or an explicit non-goal that applies to tasks in a project. Use it for rules a single task's spec cannot carry: 'one deployable service', 'no new third-party APIs', 'must stay under 50KB on the client', or a non-goal like 'do not add a mobile app'. Constraints are returned by get_next_task on every task they apply to. Returns the new constraint's id, kind, text and node scope.
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": {
"project_id": "<project_id>",
"kind": "<kind>",
"text": "<text>"
},
"name": "add_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 'constraint' for a rule the build must obey; 'non_goal' for something this project explicitly will not do. | |
| text | Yes | The rule in one clear sentence, e.g. 'Ship a single deployable service — do not introduce a second deploy target.' | |
| project_id | Yes | The project ID. | |
| applies_to_node_ids | No | Scope the rule to specific node IDs (and, transitively, to every task that depends on them). Omit, or pass null, to apply it to every task in the project; pass [] to apply it to no task. |