exponential-mcp 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ export const goals = {
12
12
  description: 'Objectives (`Goal`) — the qualitative half of an OKR, keyed by integer id and nestable up to 5 levels. Their measurable key results live in the `key_results` tool; discussion on an objective is in `comments` (target "goal").',
13
13
  operations: {
14
14
  list: op({
15
+ effect: 'read',
15
16
  summary: 'List objectives with their linked projects. With workspaceId: every member’s; without: only your own.',
16
17
  params: z.object({
17
18
  workspaceId: workspaceId.optional().describe('Workspace ID for the workspace-wide list; omit for only your own'),
@@ -21,6 +22,7 @@ export const goals = {
21
22
  run: (client, params) => client.goals.list(params),
22
23
  }),
23
24
  tree: op({
25
+ effect: 'read',
24
26
  summary: 'Objectives nested parent → child (up to 5 levels), each with projects and key results. Only roots at top level.',
25
27
  params: z.object({
26
28
  workspaceId: workspaceId.optional(),
@@ -29,16 +31,19 @@ export const goals = {
29
31
  run: (client, params) => client.goals.tree(params),
30
32
  }),
31
33
  get: op({
34
+ effect: 'read',
32
35
  summary: 'Get one objective.',
33
36
  params: z.object({ id: goalId() }),
34
37
  run: (client, { id }) => client.goals.get(id),
35
38
  }),
36
39
  list_by_project: op({
40
+ effect: 'read',
37
41
  summary: 'Objectives linked to a given project.',
38
42
  params: z.object({ projectId: id('Project') }),
39
43
  run: (client, { projectId }) => client.goals.listByProject(projectId),
40
44
  }),
41
45
  create: op({
46
+ effect: 'write',
42
47
  summary: 'Create an objective, optionally nested under a parent and linked to one project.',
43
48
  params: z.object({
44
49
  title: z.string(),
@@ -60,6 +65,7 @@ export const goals = {
60
65
  run: (client, params) => client.goals.create(params),
61
66
  }),
62
67
  update: op({
68
+ effect: 'write',
63
69
  summary: 'Partial update: omitted fields are untouched, null clears. Prefer set_status / set_parent when that is all you change.',
64
70
  params: z.object({
65
71
  id: goalId(),
@@ -84,6 +90,7 @@ export const goals = {
84
90
  run: (client, params) => client.goals.update(params),
85
91
  }),
86
92
  set_status: op({
93
+ effect: 'write',
87
94
  summary: 'Status-only write; the only path that accepts "on-hold". Moving to "completed" also records a workspace milestone.',
88
95
  params: z.object({
89
96
  id: goalId(),
@@ -92,6 +99,7 @@ export const goals = {
92
99
  run: (client, params) => client.goals.setStatus(params),
93
100
  }),
94
101
  set_parent: op({
102
+ effect: 'write',
95
103
  summary: 'Re-parent an objective (or detach with null). Writes only parentGoalId; rejects self-parenting, cycles and depth > 5.',
96
104
  params: z.object({
97
105
  id: goalId(),
@@ -100,16 +108,19 @@ export const goals = {
100
108
  run: (client, params) => client.goals.setParent(params),
101
109
  }),
102
110
  delete: op({
111
+ effect: 'delete',
103
112
  summary: 'Delete an objective permanently. Its key results are deleted with it; child objectives are detached, not deleted.',
104
113
  params: z.object({ id: goalId() }),
105
114
  run: (client, { id }) => client.goals.delete(id),
106
115
  }),
107
116
  periods: op({
117
+ effect: 'read',
108
118
  summary: 'The conventional period strings (quarters, halves, annual) for this year and next.',
109
119
  params: z.object({}),
110
120
  run: (client) => client.goals.periods(),
111
121
  }),
112
122
  stats: op({
123
+ effect: 'read',
113
124
  summary: 'Aggregate objective/key-result counts, status breakdown and average progress.',
114
125
  params: z.object({
115
126
  workspaceId: workspaceId.optional(),
@@ -11,6 +11,7 @@ export const keyResults = {
11
11
  description: 'Key results — the measurable half of an OKR, each hanging off one objective. Objectives themselves are in the `goals` tool; key results can be linked to projects and features as the work that moves them.',
12
12
  operations: {
13
13
  list: op({
14
+ effect: 'read',
14
15
  summary: 'List key results. With workspaceId: every member’s (older servers may return only yours — prefer by_objective); without: only your own.',
15
16
  params: z.object({
16
17
  workspaceId: workspaceId.optional(),
@@ -22,6 +23,7 @@ export const keyResults = {
22
23
  run: (client, params) => client.keyResults.list(params),
23
24
  }),
24
25
  by_objective: op({
26
+ effect: 'read',
25
27
  summary: 'Objectives with their key results nested and progress/status counts — the richest OKR read; workspace-correct on every server.',
26
28
  params: z.object({
27
29
  workspaceId: workspaceId.optional(),
@@ -35,11 +37,13 @@ export const keyResults = {
35
37
  run: (client, params) => client.keyResults.byObjective(params),
36
38
  }),
37
39
  get: op({
40
+ effect: 'read',
38
41
  summary: 'Get one key result with its check-ins and linked projects/features.',
39
42
  params: z.object({ id: keyResultId }),
40
43
  run: (client, { id }) => client.keyResults.get(id),
41
44
  }),
42
45
  create: op({
46
+ effect: 'write',
43
47
  summary: 'Create a key result on an objective. Omit workspaceId to inherit the objective’s workspace.',
44
48
  params: z.object({
45
49
  goalId,
@@ -57,6 +61,7 @@ export const keyResults = {
57
61
  run: (client, params) => client.keyResults.create(params),
58
62
  }),
59
63
  update: op({
64
+ effect: 'write',
60
65
  summary: 'Update a key result. Only the fields you pass change. Use check_in to record progress with history.',
61
66
  params: z.object({
62
67
  id: keyResultId,
@@ -75,6 +80,7 @@ export const keyResults = {
75
80
  run: (client, params) => client.keyResults.update(params),
76
81
  }),
77
82
  check_in: op({
83
+ effect: 'write',
78
84
  summary: 'Record a progress check-in. The server re-derives status from where value lands between start and target.',
79
85
  params: z.object({
80
86
  id: keyResultId,
@@ -84,26 +90,31 @@ export const keyResults = {
84
90
  run: (client, params) => client.keyResults.checkIn(params),
85
91
  }),
86
92
  delete: op({
93
+ effect: 'delete',
87
94
  summary: 'Delete a key result permanently.',
88
95
  params: z.object({ id: keyResultId }),
89
96
  run: (client, { id }) => client.keyResults.delete(id),
90
97
  }),
91
98
  link_project: op({
99
+ effect: 'write',
92
100
  summary: 'Link a project to a key result as executing work. Idempotent.',
93
101
  params: z.object({ keyResultId, projectId: id('Project') }),
94
102
  run: (client, params) => client.keyResults.linkProject(params),
95
103
  }),
96
104
  unlink_project: op({
105
+ effect: 'write',
97
106
  summary: 'Remove a project link from a key result.',
98
107
  params: z.object({ keyResultId, projectId: id('Project') }),
99
108
  run: (client, params) => client.keyResults.unlinkProject(params),
100
109
  }),
101
110
  link_feature: op({
111
+ effect: 'write',
102
112
  summary: 'Link a feature as executing work. Idempotent; feature must be in the same workspace. An unaligned feature inherits the objective.',
103
113
  params: z.object({ keyResultId, featureId: id('Feature') }),
104
114
  run: (client, params) => client.keyResults.linkFeature(params),
105
115
  }),
106
116
  unlink_feature: op({
117
+ effect: 'write',
107
118
  summary: 'Remove a feature link. Removes only the link row — never the feature’s objective alignment.',
108
119
  params: z.object({ keyResultId, featureId: id('Feature') }),
109
120
  run: (client, params) => client.keyResults.unlinkFeature(params),
@@ -38,6 +38,7 @@ export const labels = {
38
38
  description: 'Labels (tags) that can be attached to actions (`actions`), tickets (`tickets`), features (`features`) and epics (`epics`). There are global system tags and per-workspace tags; a "label" is a tag whose category is null.',
39
39
  operations: {
40
40
  list: op({
41
+ effect: 'read',
41
42
  summary: 'List available tags as { globalTags, workspaceTags, allTags }. Without workspaceId, workspaceTags covers every workspace you belong to. Omit category for all categories; null for plain labels only.',
42
43
  params: z.object({
43
44
  workspaceId: workspaceId.optional(),
@@ -46,6 +47,7 @@ export const labels = {
46
47
  run: (client, params) => client.labels.list(params),
47
48
  }),
48
49
  create: op({
50
+ effect: 'write',
49
51
  summary: 'Create a workspace tag. Fails if a tag with the same name (slug) already exists in the workspace.',
50
52
  params: z.object({
51
53
  workspaceId,
@@ -57,6 +59,7 @@ export const labels = {
57
59
  run: (client, params) => client.labels.create(params),
58
60
  }),
59
61
  set_for_entity: op({
62
+ effect: 'write',
60
63
  summary: 'Replace the full tag set on an action, ticket, feature or epic (an empty list clears it). Tags must be global or from the entity’s workspace.',
61
64
  params: z.object({
62
65
  entityType: z.enum(ENTITY_TYPES),
@@ -66,6 +69,7 @@ export const labels = {
66
69
  run: (client, params) => client.labels.setEntityTags(params),
67
70
  }),
68
71
  list_for_entity: op({
72
+ effect: 'read',
69
73
  summary: 'List the tags on an action, ticket, feature or epic.',
70
74
  params: z.object({
71
75
  entityType: z.enum(ENTITY_TYPES),
@@ -6,6 +6,7 @@ export const meetings = {
6
6
  description: 'Meetings (transcription sessions): recorded, imported or manually created, each with free-form `notes`, an AI `summary` and the raw `transcription`. Actions extracted from them are in the `actions` tool; people in `contacts`.',
7
7
  operations: {
8
8
  list: op({
9
+ effect: 'read',
9
10
  summary: 'List meetings you can see (owner, participant, project or workspace access), newest first. Rows include full notes/summary/transcription — expect large payloads.',
10
11
  params: z.object({
11
12
  workspaceId: z
@@ -21,11 +22,13 @@ export const meetings = {
21
22
  run: (client, params) => client.meetings.list(params),
22
23
  }),
23
24
  get: op({
25
+ effect: 'read',
24
26
  summary: 'Get one meeting with participants, linked actions, workspace and project.',
25
27
  params: z.object({ id: meetingId }),
26
28
  run: (client, { id }) => client.meetings.get(id),
27
29
  }),
28
30
  create: op({
31
+ effect: 'write',
29
32
  summary: 'Create a meeting manually. A project-linked meeting inherits its project’s workspace.',
30
33
  params: z.object({
31
34
  title: z.string(),
@@ -48,6 +51,7 @@ export const meetings = {
48
51
  run: (client, params) => client.meetings.create(params),
49
52
  }),
50
53
  update: op({
54
+ effect: 'write',
51
55
  summary: 'Update a meeting. Only the fields you pass change; passing none is an error. `notes` replaces the whole body — use append_notes to add.',
52
56
  params: z.object({
53
57
  id: meetingId,
@@ -62,26 +66,31 @@ export const meetings = {
62
66
  run: (client, params) => client.meetings.update(params),
63
67
  }),
64
68
  get_notes: op({
69
+ effect: 'read',
65
70
  summary: 'Get just the meeting’s notes body (null when none written).',
66
71
  params: z.object({ id: meetingId }),
67
72
  run: (client, { id }) => client.meetings.getNotes(id),
68
73
  }),
69
74
  set_notes: op({
75
+ effect: 'write',
70
76
  summary: 'Replace the meeting’s notes wholesale.',
71
77
  params: z.object({ id: meetingId, notes: z.string() }),
72
78
  run: (client, { id, notes }) => client.meetings.setNotes(id, notes),
73
79
  }),
74
80
  append_notes: op({
81
+ effect: 'write',
75
82
  summary: 'Append a block to the meeting’s notes (blank-line separated), creating them if empty. Read-modify-write, not atomic.',
76
83
  params: z.object({ id: meetingId, text: z.string() }),
77
84
  run: (client, { id, text }) => client.meetings.appendNotes(id, text),
78
85
  }),
79
86
  delete: op({
87
+ effect: 'delete',
80
88
  summary: 'Permanently delete one meeting you own (FORBIDDEN otherwise). Linked actions survive, unlinked.',
81
89
  params: z.object({ id: meetingId }),
82
90
  run: (client, { id }) => client.meetings.delete(id),
83
91
  }),
84
92
  delete_many: op({
93
+ effect: 'delete',
85
94
  summary: 'Permanently delete meetings in bulk. Ids that are missing or not yours are silently skipped — compare the returned count to what you sent.',
86
95
  params: z.object({ ids: z.array(meetingId) }),
87
96
  run: (client, { ids }) => client.meetings.deleteMany(ids),
@@ -6,6 +6,7 @@ export const organizations = {
6
6
  description: 'CRM organizations (companies) in a workspace. People are in the `contacts` tool and deals in `deals`.',
7
7
  operations: {
8
8
  list: op({
9
+ effect: 'read',
9
10
  summary: 'List organizations alphabetically, with contact counts. Paginate with the returned nextCursor.',
10
11
  params: z.object({
11
12
  workspaceId,
@@ -17,11 +18,13 @@ export const organizations = {
17
18
  run: (client, params) => client.organizations.list(params),
18
19
  }),
19
20
  get: op({
21
+ effect: 'read',
20
22
  summary: 'Get one organization.',
21
23
  params: z.object({ id: id('Organization') }),
22
24
  run: (client, { id }) => client.organizations.get(id),
23
25
  }),
24
26
  create: op({
27
+ effect: 'write',
25
28
  summary: 'Create an organization.',
26
29
  params: z.object({
27
30
  workspaceId,
@@ -15,6 +15,7 @@ export const pages = {
15
15
  description: 'Knowledge pages: workspace-scoped Markdown documents (strategy, PRDs, research, specs), optionally filed under a project. Reads are Markdown-only (the editor doc is never sent); use `outline` then `get` with `section` on long pages. Every write is recorded in the page history — pass a `note` saying why, and `baseVersion` so you never overwrite a newer edit. Link one to a feature with `features` link_page; page comments are in the `comments` tool.',
16
16
  operations: {
17
17
  list: op({
18
+ effect: 'read',
18
19
  summary: 'List pages you can view, most recently edited first. Metadata only (no body) — use get for the content, search to find pages by meaning.',
19
20
  params: z.object({
20
21
  workspaceId,
@@ -24,6 +25,7 @@ export const pages = {
24
25
  run: (client, params) => client.pages.list(params),
25
26
  }),
26
27
  search: op({
28
+ effect: 'read',
27
29
  summary: 'Find pages by meaning: semantic hits from the Knowledge index first (nearest first, with the matching passage as snippet), then pages whose title or body contain the text. Only pages you can view.',
28
30
  params: z.object({
29
31
  workspaceId,
@@ -34,6 +36,7 @@ export const pages = {
34
36
  run: (client, params) => client.pages.search(params),
35
37
  }),
36
38
  get: op({
39
+ effect: 'read',
37
40
  summary: 'Get one page: Markdown body, bodyBytes (size of the whole body) and canEdit. Pass section to read one heading only.',
38
41
  params: z.object({
39
42
  id: id('Page'),
@@ -45,11 +48,13 @@ export const pages = {
45
48
  run: (client, { id, section }) => client.pages.get(id, { format: 'markdown', section }),
46
49
  }),
47
50
  outline: op({
51
+ effect: 'read',
48
52
  summary: 'The page\'s headings (level, text, line) and bodyBytes, no body — see a long page\'s shape before reading a section.',
49
53
  params: z.object({ id: id('Page') }),
50
54
  run: (client, { id }) => client.pages.outline(id),
51
55
  }),
52
56
  create: op({
57
+ effect: 'write',
53
58
  summary: 'Create a page. Title defaults to "Untitled"; a non-empty body is indexed for search. The note lands on its first revision.',
54
59
  params: z.object({
55
60
  workspaceId,
@@ -64,6 +69,7 @@ export const pages = {
64
69
  run: (client, params) => client.pages.create(params),
65
70
  }),
66
71
  update: op({
72
+ effect: 'write',
67
73
  summary: 'Update a page. Only the fields you pass change; body replaces the whole document (comment anchors are carried across where their text survives). Send baseVersion (the docVersion you read) so a newer edit by someone else fails with CONFLICT instead of being overwritten.',
68
74
  params: z.object({
69
75
  id: id('Page'),
@@ -79,6 +85,7 @@ export const pages = {
79
85
  run: (client, params) => client.pages.update(params),
80
86
  }),
81
87
  history: op({
88
+ effect: 'read',
82
89
  summary: 'The page\'s revisions, newest first: who (authorHidden when names are withheld from you; baseline and automated rows have no author and the note says what wrote them), when, kind (baseline/create/editor/markdown/restore), note, provenance and body size. Never the bodies.',
83
90
  params: z.object({
84
91
  id: id('Page'),
@@ -88,11 +95,13 @@ export const pages = {
88
95
  run: (client, { id, ...options }) => client.pages.history(id, options),
89
96
  }),
90
97
  revision: op({
98
+ effect: 'read',
91
99
  summary: 'One revision with its Markdown body.',
92
100
  params: z.object({ id: id('Page'), revisionId: id('Revision') }),
93
101
  run: (client, { id, revisionId }) => client.pages.revision(id, revisionId),
94
102
  }),
95
103
  diff: op({
104
+ effect: 'read',
96
105
  summary: 'What a revision changed: a unified diff of the Markdown with added/removed counts, plus titleChanged and provenanceChanged (source/asOf on both sides). against: "previous" (default — the revision before it), "current" (the page now) or another revision id.',
97
106
  params: z.object({
98
107
  id: id('Page'),
@@ -102,6 +111,7 @@ export const pages = {
102
111
  run: (client, { id, revisionId, against }) => client.pages.diff(id, revisionId, { against }),
103
112
  }),
104
113
  restore: op({
114
+ effect: 'write',
105
115
  summary: 'Put a revision\'s title and body back as the page\'s current content. A forward write: docVersion bumps and a "restore" revision is recorded, so nothing is lost.',
106
116
  params: z.object({
107
117
  id: id('Page'),
@@ -18,16 +18,19 @@ export const positions = {
18
18
  description: "A workspace's roles & responsibilities (Positions): what each role takes on (remit), what it is not accountable for, and who holds it — humans and agents alike. Shown on the workspace settings page. Routing data only; it never grants access. Every write needs the user's own API key (agent keys are refused) and owner/admin, except that a holder who is at least a member may edit their Position's remit. Resolve holders with `workspaces` list_members.",
19
19
  operations: {
20
20
  list: op({
21
+ effect: 'read',
21
22
  summary: 'Every Position with its holders, plus one row per member: { positions, members: [{ userId, positionIds, remitGap }] }. remitGap = no stated remit.',
22
23
  params: z.object({ workspaceId }),
23
24
  run: (client, { workspaceId }) => client.positions.list(workspaceId),
24
25
  }),
25
26
  coverage: op({
27
+ effect: 'read',
26
28
  summary: 'How many members have a stated remit, and whether to offer an import.',
27
29
  params: z.object({ workspaceId }),
28
30
  run: (client, { workspaceId }) => client.positions.coverage(workspaceId),
29
31
  }),
30
32
  create: op({
33
+ effect: 'write',
31
34
  summary: 'Create a Position (owner/admin). A duplicate title is CONFLICT.',
32
35
  params: z.object({
33
36
  workspaceId,
@@ -39,6 +42,7 @@ export const positions = {
39
42
  run: (client, params) => client.positions.create(params),
40
43
  }),
41
44
  update: op({
45
+ effect: 'write',
42
46
  summary: 'Edit a Position. Pass at least one field. holderUserIds REPLACES the holder set; notAccountableFor null or "" clears it.',
43
47
  params: z.object({
44
48
  workspaceId,
@@ -51,16 +55,19 @@ export const positions = {
51
55
  run: (client, params) => client.positions.update(params),
52
56
  }),
53
57
  set_holders: op({
58
+ effect: 'write',
54
59
  summary: 'Replace who holds a Position (owner/admin). An empty list leaves it unheld.',
55
60
  params: z.object({ workspaceId, positionId, userIds: holderUserIds }),
56
61
  run: (client, { workspaceId, positionId, userIds }) => client.positions.setHolders(workspaceId, positionId, userIds),
57
62
  }),
58
63
  delete: op({
64
+ effect: 'delete',
59
65
  summary: 'Delete a Position (owner/admin). Its holdings go with it.',
60
66
  params: z.object({ workspaceId, positionId }),
61
67
  run: (client, { workspaceId, positionId }) => client.positions.delete(workspaceId, positionId),
62
68
  }),
63
69
  import_many: op({
70
+ effect: 'write',
64
71
  summary: 'Upsert 1–50 Positions by title (case-insensitive; never renames), all or nothing (owner/admin). An update replaces the remit, keeps notAccountableFor when omitted ("" clears), and only ADDS holders. Run dryRun: true first and show the plan.',
65
72
  params: z.object({
66
73
  workspaceId,
@@ -10,11 +10,13 @@ export const products = {
10
10
  description: 'Products: the container under a workspace that owns features (`features`), tickets (`tickets`), product epics (`epics`) and research. Most product-side tools need a product ID — find it here by slug or ID.',
11
11
  operations: {
12
12
  list: op({
13
+ effect: 'read',
13
14
  summary: 'List the products in a workspace.',
14
15
  params: z.object({ workspaceId }),
15
16
  run: (client, { workspaceId }) => client.products.list(workspaceId),
16
17
  }),
17
18
  get: op({
19
+ effect: 'read',
18
20
  summary: 'Get one product by ID, or by slug when workspaceId is given (a slug-or-ID with workspaceId tries the ID first, then the slug).',
19
21
  params: z.object({
20
22
  slugOrId: z.string().describe('Product ID, or its URL slug (slug requires workspaceId)'),
@@ -23,6 +25,7 @@ export const products = {
23
25
  run: (client, { slugOrId, workspaceId }) => workspaceId ? client.products.resolve(workspaceId, slugOrId) : client.products.get(slugOrId),
24
26
  }),
25
27
  create: op({
28
+ effect: 'write',
26
29
  summary: 'Create a product in a workspace. The slug must be unique within the workspace.',
27
30
  params: z.object({
28
31
  workspaceId,
@@ -36,6 +39,7 @@ export const products = {
36
39
  run: (client, params) => client.products.create(params),
37
40
  }),
38
41
  update: op({
42
+ effect: 'write',
39
43
  summary: 'Update a product. Only the fields you pass change.',
40
44
  params: z.object({
41
45
  id: id('Product'),
@@ -49,6 +53,7 @@ export const products = {
49
53
  run: (client, params) => client.products.update(params),
50
54
  }),
51
55
  delete: op({
56
+ effect: 'delete',
52
57
  summary: 'Delete a product permanently. Cascades: all its features, tickets, research, insights and product-bound epics are deleted too. Cycles and retrospectives survive, unlinked.',
53
58
  params: z.object({ id: id('Product') }),
54
59
  run: (client, { id }) => client.products.delete(id),
@@ -6,6 +6,7 @@ export const projects = {
6
6
  description: 'Projects: containers of actions, optionally linked to a product, objectives (goals) and key results. Their actions are in the `actions` tool; workspaces in `workspaces`.',
7
7
  operations: {
8
8
  list: op({
9
+ effect: 'read',
9
10
  summary: 'List projects you can see. Carries no OKR links — use get for those.',
10
11
  params: z.object({
11
12
  workspaceId: z
@@ -17,6 +18,7 @@ export const projects = {
17
18
  run: (client, params) => client.projects.list(params),
18
19
  }),
19
20
  get: op({
21
+ effect: 'read',
20
22
  summary: 'Get one project with its actions, linked objectives and key results, DRI and team — the only way to see what a project is driving.',
21
23
  params: z.object({
22
24
  id: z.string().describe('Project cuid, slug, or the `slug-cuid` form from app URLs'),
@@ -24,6 +26,7 @@ export const projects = {
24
26
  run: (client, { id }) => client.projects.get(id),
25
27
  }),
26
28
  update: op({
29
+ effect: 'write',
27
30
  summary: 'Update a project. Only the fields you pass change (omitted name/status/priority cost one extra read).',
28
31
  params: z.object({
29
32
  id: id('Project'),
@@ -49,6 +52,7 @@ export const projects = {
49
52
  run: (client, params) => client.projects.update(params),
50
53
  }),
51
54
  delete: op({
55
+ effect: 'delete',
52
56
  summary: 'Delete a project AND all its actions. No undo.',
53
57
  params: z.object({ id: id('Project') }),
54
58
  run: (client, { id }) => client.projects.delete(id),
@@ -5,6 +5,7 @@ export const requirements = {
5
5
  description: 'Requirements on a feature: atomic EARS-style "shall" statements, optionally pinned to one of its scopes, each checkable met/unmet. Features are in `features`, scopes in `scopes`.',
6
6
  operations: {
7
7
  list: op({
8
+ effect: 'read',
8
9
  summary: 'List a feature’s requirements in display order, optionally only those pinned to one scope.',
9
10
  params: z.object({
10
11
  featureId: id('Feature'),
@@ -13,6 +14,7 @@ export const requirements = {
13
14
  run: (client, params) => client.requirements.list(params),
14
15
  }),
15
16
  create: op({
17
+ effect: 'write',
16
18
  summary: 'Add a requirement to the end of a feature’s list.',
17
19
  params: z.object({
18
20
  featureId: id('Feature'),
@@ -23,6 +25,7 @@ export const requirements = {
23
25
  run: (client, params) => client.requirements.create(params),
24
26
  }),
25
27
  set_checked: op({
28
+ effect: 'write',
26
29
  summary: 'Mark a requirement met (true, stamped with you and now) or unmet (false, clears the stamp).',
27
30
  params: z.object({
28
31
  id: id('Requirement'),
@@ -31,6 +34,7 @@ export const requirements = {
31
34
  run: (client, { id, checked }) => client.requirements.setChecked(id, checked),
32
35
  }),
33
36
  delete: op({
37
+ effect: 'delete',
34
38
  summary: 'Delete a requirement permanently.',
35
39
  params: z.object({ id: id('Requirement') }),
36
40
  run: (client, { id }) => client.requirements.delete(id),
@@ -6,11 +6,13 @@ export const scopes = {
6
6
  description: 'Feature scopes: shippable increments of a feature ("V1", "V2: auto-sync"), each with its own lifecycle. Scope status rolls up to the parent feature (see `features`); requirements can be pinned to a scope (see `requirements`).',
7
7
  operations: {
8
8
  list: op({
9
+ effect: 'read',
9
10
  summary: 'List a feature’s scopes in display order.',
10
11
  params: z.object({ featureId: id('Feature') }),
11
12
  run: (client, params) => client.scopes.list(params),
12
13
  }),
13
14
  create: op({
15
+ effect: 'write',
14
16
  summary: 'Add a scope to the end of a feature’s list. Status defaults to PLANNED; rolls up the feature’s status.',
15
17
  params: z.object({
16
18
  featureId: id('Feature'),
@@ -22,6 +24,7 @@ export const scopes = {
22
24
  run: (client, params) => client.scopes.create(params),
23
25
  }),
24
26
  update: op({
27
+ effect: 'write',
25
28
  summary: 'Update a scope. Only the fields you pass change; setting SHIPPED stamps shippedAt now unless you pass one, and any status change rolls up to the feature.',
26
29
  params: z.object({
27
30
  id: id('Scope'),
@@ -34,6 +37,7 @@ export const scopes = {
34
37
  run: (client, params) => client.scopes.update(params),
35
38
  }),
36
39
  delete: op({
40
+ effect: 'delete',
37
41
  summary: 'Delete a scope permanently. Requirements, tickets and pages pinned to it are kept but unpinned; its comments are deleted.',
38
42
  params: z.object({ id: id('Scope') }),
39
43
  run: (client, { id }) => client.scopes.delete(id),
@@ -11,11 +11,13 @@ export const stories = {
11
11
  description: 'User stories on a feature (As a / I want / So that, plus acceptance criteria), optionally grouped under one of the feature’s scopes. Features live in `features`, scopes in `scopes`.',
12
12
  operations: {
13
13
  list: op({
14
+ effect: 'read',
14
15
  summary: 'List a feature’s user stories in display order.',
15
16
  params: z.object({ featureId: id('Feature') }),
16
17
  run: (client, params) => client.userStories.list(params),
17
18
  }),
18
19
  create: op({
20
+ effect: 'write',
19
21
  summary: 'Add a user story to a feature, appended at the end of the display order.',
20
22
  params: z.object({
21
23
  featureId: id('Feature'),
@@ -25,6 +27,7 @@ export const stories = {
25
27
  run: (client, params) => client.userStories.create(params),
26
28
  }),
27
29
  update: op({
30
+ effect: 'write',
28
31
  summary: 'Update a user story. Only the fields you pass change.',
29
32
  params: z.object({
30
33
  id: id('User story'),
@@ -38,6 +41,7 @@ export const stories = {
38
41
  run: (client, params) => client.userStories.update(params),
39
42
  }),
40
43
  delete: op({
44
+ effect: 'delete',
41
45
  summary: 'Delete a user story permanently.',
42
46
  params: z.object({ id: id('User story') }),
43
47
  run: (client, { id }) => client.userStories.delete(id),
@@ -21,6 +21,7 @@ export const tickets = {
21
21
  description: 'Tickets: the unit of work in a product backlog, with blocking dependencies and linked actions. Always product-scoped (see `products`); they can point at a feature (`features`), scope (`scopes`), epic (`epics`) and cycle. Ticket comments are in the `comments` tool and labels in `labels`.',
22
22
  operations: {
23
23
  list: op({
24
+ effect: 'read',
24
25
  summary: 'List every ticket in one product with full fields (body included), optionally filtered. No workspace-wide query — call once per product. prUrl/branchName are exact-match filters applied after the fetch.',
25
26
  params: z.object({
26
27
  productId: id('Product'),
@@ -36,11 +37,13 @@ export const tickets = {
36
37
  run: (client, params) => client.tickets.list(params),
37
38
  }),
38
39
  get: op({
40
+ effect: 'read',
39
41
  summary: 'Get one ticket in full: body, product, dependencies (dependsOn / requiredFor), linked actions and comments (newest first).',
40
42
  params: z.object({ id: ticketId }),
41
43
  run: (client, { id }) => client.tickets.get(id),
42
44
  }),
43
45
  create: op({
46
+ effect: 'write',
44
47
  summary: 'Create a ticket in a product. Number and shortId are assigned server-side.',
45
48
  params: z.object({
46
49
  productId: id('Product'),
@@ -65,6 +68,7 @@ export const tickets = {
65
68
  run: (client, params) => client.tickets.create(params),
66
69
  }),
67
70
  update: op({
71
+ effect: 'write',
68
72
  summary: 'Update a ticket. Only the fields you pass change.',
69
73
  params: z.object({
70
74
  id: ticketId,
@@ -88,11 +92,13 @@ export const tickets = {
88
92
  run: (client, params) => client.tickets.update(params),
89
93
  }),
90
94
  delete: op({
95
+ effect: 'delete',
91
96
  summary: 'Delete a ticket permanently, with its comments and dependency edges. Linked actions are kept but unlinked.',
92
97
  params: z.object({ id: ticketId }),
93
98
  run: (client, { id }) => client.tickets.delete(id),
94
99
  }),
95
100
  search: op({
101
+ effect: 'read',
96
102
  summary: 'Quick picker search within one product: matches title, shortId or ticket number and returns slim rows (id, number, shortId, title, status, priority, assignee), most recently updated first. Use `list` for full tickets or field filters.',
97
103
  params: z.object({
98
104
  productId: id('Product'),
@@ -103,6 +109,7 @@ export const tickets = {
103
109
  run: (client, params) => client.tickets.search(params),
104
110
  }),
105
111
  add_dependency: op({
112
+ effect: 'write',
106
113
  summary: 'Mark ticketId as blocked by dependsOnId. Both must be in the same product; rejects self-dependencies and cycles. Idempotent.',
107
114
  params: z.object({
108
115
  ticketId: id('Blocked ticket'),
@@ -111,6 +118,7 @@ export const tickets = {
111
118
  run: (client, { ticketId, dependsOnId }) => client.tickets.addDependency(ticketId, dependsOnId),
112
119
  }),
113
120
  remove_dependency: op({
121
+ effect: 'write',
114
122
  summary: 'Remove a "ticketId is blocked by dependsOnId" edge. Succeeds even if no such edge exists.',
115
123
  params: z.object({
116
124
  ticketId: id('Blocked ticket'),
@@ -119,6 +127,7 @@ export const tickets = {
119
127
  run: (client, { ticketId, dependsOnId }) => client.tickets.removeDependency(ticketId, dependsOnId),
120
128
  }),
121
129
  link_action: op({
130
+ effect: 'write',
122
131
  summary: 'Attach one of your own actions to a ticket (an action belongs to at most one ticket, so this moves it if already linked).',
123
132
  params: z.object({
124
133
  ticketId: id('Ticket'),
@@ -127,6 +136,7 @@ export const tickets = {
127
136
  run: (client, { ticketId, actionId }) => client.tickets.linkAction(ticketId, actionId),
128
137
  }),
129
138
  unlink_action: op({
139
+ effect: 'write',
130
140
  summary: 'Detach one of your own actions from whatever ticket it is linked to.',
131
141
  params: z.object({ actionId: id('Action') }),
132
142
  run: (client, { actionId }) => client.tickets.unlinkAction(actionId),