dsh-plugin-imem 0.1.0 → 0.2.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.
- package/README.md +46 -29
- package/cordis.patch.yml +2 -11
- package/index.js +55 -0
- package/package.json +4 -1
- package/skills/imem-skill/SKILL.md +213 -213
- package/skills/imem-skill/references/agent-contract.md +172 -171
- package/skills/imem-skill/references/mcp-tool-spec.md +328 -326
|
@@ -1,326 +1,328 @@
|
|
|
1
|
-
# iMem Remote MCP Tool Specification
|
|
2
|
-
|
|
3
|
-
This is the public Agent contract for production iMem remote MCP contract
|
|
4
|
-
`2026-11-
|
|
5
|
-
|
|
6
|
-
## Production Connection
|
|
7
|
-
|
|
8
|
-
```text
|
|
9
|
-
MCP URL: https://imem.xin/mcp
|
|
10
|
-
Transport: Streamable HTTP
|
|
11
|
-
Authentication: Authorization: Bearer <personal-api-key>
|
|
12
|
-
OAuth:
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
|
63
|
-
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
73
|
-
| `
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
`
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
|
320
|
-
|
|
321
|
-
| `
|
|
322
|
-
| `
|
|
323
|
-
| `
|
|
324
|
-
| `
|
|
325
|
-
| `
|
|
326
|
-
| `
|
|
1
|
+
# iMem Remote MCP Tool Specification
|
|
2
|
+
|
|
3
|
+
This is the public Agent contract for production iMem remote MCP contract
|
|
4
|
+
`2026-11-26`.
|
|
5
|
+
|
|
6
|
+
## Production Connection
|
|
7
|
+
|
|
8
|
+
```text
|
|
9
|
+
MCP URL: https://imem.xin/mcp
|
|
10
|
+
Transport: Streamable HTTP
|
|
11
|
+
Authentication: OAuth Authorization Code with PKCE or Authorization: Bearer <personal-api-key>
|
|
12
|
+
OAuth: available
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
OAuth clients discover protected resource metadata at
|
|
16
|
+
`https://imem.xin/.well-known/oauth-protected-resource/mcp`. Personal API Keys
|
|
17
|
+
remain available at `https://imem.xin/app/api-keys`. The service derives user
|
|
18
|
+
and workspace identity from the active credential. Never pass `workspace_id`
|
|
19
|
+
in normal Agent requests.
|
|
20
|
+
|
|
21
|
+
## Canonical Resource Shape
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"id": "MEM-20261101-001",
|
|
26
|
+
"revision": 1,
|
|
27
|
+
"kind": "schedule",
|
|
28
|
+
"title": "Product review",
|
|
29
|
+
"content": "Review the launch scope",
|
|
30
|
+
"category": "Work",
|
|
31
|
+
"owner": "agent",
|
|
32
|
+
"members": [],
|
|
33
|
+
"tags": [],
|
|
34
|
+
"visibility": "private",
|
|
35
|
+
"source": {"type": "agent"},
|
|
36
|
+
"status": "pending",
|
|
37
|
+
"created_at": "2026-11-01T09:00:00",
|
|
38
|
+
"updated_at": null,
|
|
39
|
+
"deleted_at": null,
|
|
40
|
+
"schedule_details": {
|
|
41
|
+
"start_time": "2026-11-05T10:00:00+08:00",
|
|
42
|
+
"end_time": "2026-11-05T11:00:00+08:00",
|
|
43
|
+
"location": "",
|
|
44
|
+
"participants": [],
|
|
45
|
+
"notes": "",
|
|
46
|
+
"recurrence": null,
|
|
47
|
+
"timezone": "Asia/Shanghai",
|
|
48
|
+
"next_occurrence_at": "2026-11-05T02:00:00Z"
|
|
49
|
+
},
|
|
50
|
+
"reminder_rules": []
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`schedule_details` is `null` and `reminder_rules` is empty for a note Entry.
|
|
55
|
+
Every Entry has a top-level integer `revision`. Every nested Reminder Rule also
|
|
56
|
+
has its own integer `revision`. Reminder Rules are nested under Schedule Entries.
|
|
57
|
+
Occurrences expose `entry_id` and `occurrence_id`, never legacy identity as the
|
|
58
|
+
canonical key.
|
|
59
|
+
|
|
60
|
+
## Canonical Production Tools
|
|
61
|
+
|
|
62
|
+
| Tool | Scope | Purpose |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| `imem_health` | `entries:read` | Verify authenticated service access and contract version |
|
|
65
|
+
| `imem_get_time_context` | `entries:read` | Get authoritative server and workspace time |
|
|
66
|
+
| `imem_create_entry` | `entries:write` | Create a note or Schedule Entry |
|
|
67
|
+
| `imem_list_entries` | `entries:read` | List and filter Entries |
|
|
68
|
+
| `imem_get_entry` | `entries:read` | Read one Entry by canonical ID |
|
|
69
|
+
| `imem_update_entry` | `entries:write` | Patch one Entry |
|
|
70
|
+
| `imem_delete_entry` | `entries:write` | Soft-delete or cancel one Entry |
|
|
71
|
+
| `imem_list_entry_occurrences` | `entries:read` | Read Schedule occurrences for a range |
|
|
72
|
+
| `imem_create_entry_reminder_rule` | `entries:write` | Add a Reminder Rule to a Schedule Entry |
|
|
73
|
+
| `imem_update_entry_reminder_rule` | `entries:write` | Patch a nested Reminder Rule |
|
|
74
|
+
| `imem_delete_entry_reminder_rule` | `entries:write` | Delete/cancel a nested Reminder Rule |
|
|
75
|
+
| `imem_upload_artifact` | `entries:write` | Upload a private text, Markdown, or HTML Artifact |
|
|
76
|
+
|
|
77
|
+
## Tool Parameters
|
|
78
|
+
|
|
79
|
+
### `imem_health`
|
|
80
|
+
|
|
81
|
+
No parameters. Verify `data.status`, `data.mcp_url`, and
|
|
82
|
+
`data.contract_version`.
|
|
83
|
+
|
|
84
|
+
### `imem_get_time_context`
|
|
85
|
+
|
|
86
|
+
No parameters. Use `data.server_time` and `data.workspace_timezone` before
|
|
87
|
+
resolving relative dates or times.
|
|
88
|
+
|
|
89
|
+
### `imem_create_entry`
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
kind: note | schedule
|
|
93
|
+
title: string
|
|
94
|
+
request_id: string
|
|
95
|
+
idempotency_key: string
|
|
96
|
+
content?: string
|
|
97
|
+
category?: string
|
|
98
|
+
owner?: string
|
|
99
|
+
members?: string[]
|
|
100
|
+
tags?: string[]
|
|
101
|
+
visibility?: string
|
|
102
|
+
source?: object
|
|
103
|
+
status?: string
|
|
104
|
+
created_at?: ISO datetime
|
|
105
|
+
schedule_details?: object
|
|
106
|
+
reminder_rules?: object[]
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
For `kind=schedule`, set `schedule_details.start_time` and optionally:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
end_time?: ISO datetime
|
|
113
|
+
location?: string
|
|
114
|
+
participants?: string[]
|
|
115
|
+
notes?: string
|
|
116
|
+
recurrence?: object
|
|
117
|
+
timezone?: IANA timezone
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
For `kind=note`, omit schedule details and reminder rules. Return
|
|
121
|
+
`data.entry`.
|
|
122
|
+
|
|
123
|
+
### `imem_list_entries`
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
kind?: note | schedule
|
|
127
|
+
q?: string
|
|
128
|
+
status?: string
|
|
129
|
+
scheduled_from?: ISO datetime
|
|
130
|
+
scheduled_to?: ISO datetime
|
|
131
|
+
include_deleted?: boolean
|
|
132
|
+
limit?: integer
|
|
133
|
+
offset?: integer
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Return `data.entries`, `data.total`, `data.limit`, and `data.offset`.
|
|
137
|
+
|
|
138
|
+
### `imem_get_entry`
|
|
139
|
+
|
|
140
|
+
```text
|
|
141
|
+
entry_id: string
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Return `data.entry` or `ENTRY_NOT_FOUND`.
|
|
145
|
+
|
|
146
|
+
### `imem_update_entry`
|
|
147
|
+
|
|
148
|
+
Canonical input:
|
|
149
|
+
|
|
150
|
+
```text
|
|
151
|
+
entry_id: string
|
|
152
|
+
patch: object
|
|
153
|
+
request_id: string
|
|
154
|
+
expected_revision?: integer
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Do not set `id`, `kind`, or `revision`. Nest Schedule changes under
|
|
158
|
+
`patch.schedule_details`. Canonical Skill callers must read `data.entry.revision`
|
|
159
|
+
first and pass it as `expected_revision`; the parameter is optional only for
|
|
160
|
+
legacy client compatibility. Return `data.entry` with its incremented revision.
|
|
161
|
+
A stale value returns `REVISION_CONFLICT` without applying the patch.
|
|
162
|
+
|
|
163
|
+
During migration, the tool also accepts this mutually exclusive legacy form:
|
|
164
|
+
|
|
165
|
+
```text
|
|
166
|
+
entity_type: memory | schedule | reminder
|
|
167
|
+
entity_id: string
|
|
168
|
+
patch: object
|
|
169
|
+
request_id: string
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
New integrations must use `entry_id`.
|
|
173
|
+
|
|
174
|
+
### `imem_delete_entry`
|
|
175
|
+
|
|
176
|
+
```text
|
|
177
|
+
entry_id: string
|
|
178
|
+
reason: string
|
|
179
|
+
request_id: string
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Perform a soft delete/cancel and return `data.entry`.
|
|
183
|
+
|
|
184
|
+
### `imem_list_entry_occurrences`
|
|
185
|
+
|
|
186
|
+
```text
|
|
187
|
+
start: ISO datetime
|
|
188
|
+
end: ISO datetime
|
|
189
|
+
limit?: integer
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Return `data.occurrences`. Each item uses canonical `entry_id` plus an
|
|
193
|
+
occurrence-specific `occurrence_id`.
|
|
194
|
+
|
|
195
|
+
### `imem_create_entry_reminder_rule`
|
|
196
|
+
|
|
197
|
+
```text
|
|
198
|
+
entry_id: string
|
|
199
|
+
request_id: string
|
|
200
|
+
idempotency_key: string
|
|
201
|
+
remind_at?: ISO datetime
|
|
202
|
+
offset_minutes?: integer
|
|
203
|
+
channel?: string
|
|
204
|
+
is_default?: boolean
|
|
205
|
+
status?: string
|
|
206
|
+
message?: string
|
|
207
|
+
title?: string
|
|
208
|
+
notification_endpoint_id?: string
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Use only with a Schedule Entry and provide a valid timing rule. Return the
|
|
212
|
+
updated `data.entry`.
|
|
213
|
+
|
|
214
|
+
### `imem_update_entry_reminder_rule`
|
|
215
|
+
|
|
216
|
+
```text
|
|
217
|
+
entry_id: string
|
|
218
|
+
rule_id: string
|
|
219
|
+
patch: object
|
|
220
|
+
request_id: string
|
|
221
|
+
expected_revision?: integer
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Canonical Skill callers must read the selected nested Reminder Rule's `revision`
|
|
225
|
+
and pass it as `expected_revision`; omission remains only for legacy client
|
|
226
|
+
compatibility. Return the updated `data.entry`, including the incremented rule
|
|
227
|
+
revision. A stale value returns `REVISION_CONFLICT` without applying the patch.
|
|
228
|
+
|
|
229
|
+
### `imem_delete_entry_reminder_rule`
|
|
230
|
+
|
|
231
|
+
```text
|
|
232
|
+
entry_id: string
|
|
233
|
+
rule_id: string
|
|
234
|
+
reason: string
|
|
235
|
+
request_id: string
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Return the updated `data.entry`.
|
|
239
|
+
|
|
240
|
+
### `imem_upload_artifact`
|
|
241
|
+
|
|
242
|
+
```text
|
|
243
|
+
title: string
|
|
244
|
+
content: string
|
|
245
|
+
media_type: text/plain | text/markdown | text/html
|
|
246
|
+
request_id: string
|
|
247
|
+
idempotency_key: string
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
The Artifact is private and returns an owner URL. The tool cannot enable a
|
|
251
|
+
Public Link.
|
|
252
|
+
|
|
253
|
+
## Return Envelope
|
|
254
|
+
|
|
255
|
+
Success:
|
|
256
|
+
|
|
257
|
+
```json
|
|
258
|
+
{
|
|
259
|
+
"ok": true,
|
|
260
|
+
"data": {},
|
|
261
|
+
"error": null,
|
|
262
|
+
"source": "imem-remote-mcp"
|
|
263
|
+
}
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
Failure:
|
|
267
|
+
|
|
268
|
+
```json
|
|
269
|
+
{
|
|
270
|
+
"ok": false,
|
|
271
|
+
"data": null,
|
|
272
|
+
"error": {"code": "VALIDATION_FAILED", "message": "..."},
|
|
273
|
+
"source": "imem-remote-mcp"
|
|
274
|
+
}
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
Preserve `error.code`. Never present a failed write as successful.
|
|
278
|
+
|
|
279
|
+
## Idempotency And Recovery
|
|
280
|
+
|
|
281
|
+
`imem_create_entry`, `imem_create_entry_reminder_rule`, and
|
|
282
|
+
`imem_upload_artifact` require both `request_id` and `idempotency_key`. Reuse a
|
|
283
|
+
key only for an identical retry. Different arguments with the same key return
|
|
284
|
+
`IDEMPOTENCY_CONFLICT`.
|
|
285
|
+
|
|
286
|
+
After an uncertain update or delete, read current state before retrying. Ask
|
|
287
|
+
the user to choose when a list returns multiple plausible targets.
|
|
288
|
+
|
|
289
|
+
## Optimistic Concurrency
|
|
290
|
+
|
|
291
|
+
Before `imem_update_entry`, get the Entry and send its top-level `revision` as
|
|
292
|
+
`expected_revision`. Before `imem_update_entry_reminder_rule`, get the owning
|
|
293
|
+
Schedule Entry, select the rule, and send that rule's `revision`. The update
|
|
294
|
+
returns the resource with an incremented revision.
|
|
295
|
+
|
|
296
|
+
If either update returns `REVISION_CONFLICT`, do not retry automatically and do
|
|
297
|
+
not omit `expected_revision` to force a write. Re-read current state, explain
|
|
298
|
+
that another client changed the resource, and ask the user whether to retry the
|
|
299
|
+
intended patch against the latest revision or merge the competing changes.
|
|
300
|
+
|
|
301
|
+
## Migration Aliases
|
|
302
|
+
|
|
303
|
+
Production temporarily retains:
|
|
304
|
+
|
|
305
|
+
```text
|
|
306
|
+
imem_search
|
|
307
|
+
imem_create_memory
|
|
308
|
+
imem_create_schedule
|
|
309
|
+
imem_create_reminder
|
|
310
|
+
imem_cancel_entry
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
These aliases preserve older integrations. New Skill workflows must use the
|
|
314
|
+
canonical Entry tools. Do not remove aliases before a separately approved
|
|
315
|
+
deprecation and telemetry review.
|
|
316
|
+
|
|
317
|
+
## Error Handling
|
|
318
|
+
|
|
319
|
+
| Error code | Required behavior |
|
|
320
|
+
|---|---|
|
|
321
|
+
| `UNAUTHORIZED` | Reconnect or check the configured credential. |
|
|
322
|
+
| `FORBIDDEN` | Report the missing scope. |
|
|
323
|
+
| `ENTRY_NOT_FOUND` | List again or ask the user to identify the Entry. |
|
|
324
|
+
| `VALIDATION_FAILED` | Correct clear fields or ask for missing information. |
|
|
325
|
+
| `INVALID_ENTRY_KIND` | Use `note` or `schedule`. |
|
|
326
|
+
| `IDEMPOTENCY_CONFLICT` | Do not retry with that key; confirm intent. |
|
|
327
|
+
| `REVISION_CONFLICT` | Re-read current state, explain the concurrent change, and ask whether to retry or merge. Never force overwrite. |
|
|
328
|
+
| `MCP_TOOL_ERROR` | Treat the outcome as failed or uncertain. |
|