Constraints
Rules the output must follow, referenced as constraintIds in prompts.
search_constraints read-only
Search or list constraints (rules the output must follow, e.g. "never use jargon"). Constraint ids can be referenced as constraintIds in create_prompt / update_prompt.
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | 1-based page number. Default: 1. |
pageSize | 6 | 12 | 24 | 48 | 100 | no | Items per page. The server only accepts these exact values. Default: 12. |
sort | "newest" | "most-upvoted" | "most-favorited" | no | Sort order. Default: newest. |
scope | "public" | "mine" | "favorites" | "all" | no | public = community items, mine = the user's own items, favorites = items the user favorited, all = everything accessible to the user. Default: public. |
search | string | no | Full-text search over title and description. Max 200 characters. |
tag | string | no | Filter by a single tag (exact match). |
{
"name": "search_constraints",
"arguments": {}
}
get_constraint read-only
Fetch one constraint by id.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Constraint id. |
{
"name": "get_constraint",
"arguments": {
"id": "..."
}
}
create_constraint write · non-destructive
Create a constraint. The returned id can be referenced in constraintIds on prompts.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | yes | The constraint rule, e.g. "cite sources for claims". |
isPublic | boolean | yes | true publishes the item to the public community feed; false keeps it private to the user. Required: choose deliberately, server defaults are not applied. |
tags | string[] | no | Tags for categorisation and tag-filtered search. |
{
"name": "create_constraint",
"arguments": {
"text": "...",
"isPublic": false
}
}
update_constraint write · non-destructive
Update a constraint in place. Constraints are not versioned: the previous text is overwritten without history.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Constraint id. |
text | string | yes | New constraint rule. |
isPublic | boolean | no | Optionally change visibility. |
tags | string[] | no | Tags for categorisation and tag-filtered search. |
{
"name": "update_constraint",
"arguments": {
"id": "...",
"text": "..."
}
}