@davidwoods/skylight-mcp 1.8.4 → 1.8.5
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/LICENSE +22 -22
- package/README.md +637 -637
- package/THIRD_PARTY_NOTICES.md +38 -38
- package/dist/api/endpoints/meals.d.ts +20 -3
- package/dist/api/endpoints/meals.d.ts.map +1 -1
- package/dist/api/endpoints/meals.js +68 -10
- package/dist/api/endpoints/meals.js.map +1 -1
- package/dist/cli.js +5 -5
- package/dist/config.js +23 -23
- package/dist/tools/calendar.js +56 -56
- package/dist/tools/chores.js +66 -66
- package/dist/tools/family.js +17 -17
- package/dist/tools/lists.js +87 -87
- package/dist/tools/meals.d.ts.map +1 -1
- package/dist/tools/meals.js +135 -110
- package/dist/tools/meals.js.map +1 -1
- package/dist/tools/messages.js +32 -32
- package/dist/tools/misc.js +14 -14
- package/dist/tools/photos.js +6 -6
- package/dist/tools/planning.js +18 -18
- package/dist/tools/rewards.js +70 -70
- package/dist/tools/tasks.js +13 -13
- package/dist/utils/errors.js +16 -16
- package/package.json +78 -78
package/dist/tools/chores.js
CHANGED
|
@@ -6,14 +6,14 @@ import { formatErrorForMcp } from "../utils/errors.js";
|
|
|
6
6
|
import { getConfig } from "../config.js";
|
|
7
7
|
export function registerChoreTools(server) {
|
|
8
8
|
// get_chores tool
|
|
9
|
-
server.tool("get_chores", `Get chores from Skylight.
|
|
10
|
-
|
|
11
|
-
Use this to answer:
|
|
12
|
-
- "What chores do I need to do today?"
|
|
13
|
-
- "Show me this week's chores"
|
|
14
|
-
- "What's on the chore chart?"
|
|
15
|
-
- "What chores does [name] have?"
|
|
16
|
-
|
|
9
|
+
server.tool("get_chores", `Get chores from Skylight.
|
|
10
|
+
|
|
11
|
+
Use this to answer:
|
|
12
|
+
- "What chores do I need to do today?"
|
|
13
|
+
- "Show me this week's chores"
|
|
14
|
+
- "What's on the chore chart?"
|
|
15
|
+
- "What chores does [name] have?"
|
|
16
|
+
|
|
17
17
|
Returns chores with their assignees, due dates, and completion status.`, {
|
|
18
18
|
date: z
|
|
19
19
|
.string()
|
|
@@ -122,13 +122,13 @@ Returns chores with their assignees, due dates, and completion status.`, {
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
// create_chore tool
|
|
125
|
-
server.tool("create_chore", `Add a new chore to Skylight.
|
|
126
|
-
|
|
127
|
-
Use this when the user wants to:
|
|
128
|
-
- Add a new task like "empty the dishwasher"
|
|
129
|
-
- Assign chores to family members
|
|
130
|
-
- Create recurring chores
|
|
131
|
-
|
|
125
|
+
server.tool("create_chore", `Add a new chore to Skylight.
|
|
126
|
+
|
|
127
|
+
Use this when the user wants to:
|
|
128
|
+
- Add a new task like "empty the dishwasher"
|
|
129
|
+
- Assign chores to family members
|
|
130
|
+
- Create recurring chores
|
|
131
|
+
|
|
132
132
|
The chore will appear on the Skylight display.`, {
|
|
133
133
|
summary: z.string().describe("Chore description (e.g., 'Empty the dishwasher')"),
|
|
134
134
|
date: z
|
|
@@ -225,23 +225,23 @@ The chore will appear on the Skylight display.`, {
|
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
227
|
// update_chore tool
|
|
228
|
-
server.tool("update_chore", `Update an existing chore in Skylight.
|
|
229
|
-
|
|
230
|
-
Use this when:
|
|
231
|
-
- (To mark a routine or chore done, use complete_chore, not this tool)
|
|
232
|
-
- Changing chore assignment: "Reassign the trash to Casey"
|
|
233
|
-
- Updating chore details: "Change the time for the homework chore"
|
|
234
|
-
|
|
235
|
-
Parameters:
|
|
236
|
-
- choreId (required): ID of the chore (from get_chores)
|
|
237
|
-
- summary: New description for the chore
|
|
238
|
-
- status: not supported here; use complete_chore
|
|
239
|
-
- date: New due date
|
|
240
|
-
- time: New due time
|
|
241
|
-
- assignee: New family member assignment
|
|
242
|
-
|
|
243
|
-
Recurring chores and routines (ids like 12345-2026-11-03-0600): only summary (rename) and the weekly schedule (days plus timeOfDay, together) can be changed; date, time, assignee and rewardPoints are refused because they have not been captured. Skylight gives the chore a NEW id after every edit, and the reply says what it is. Changing the schedule of a habit-tracked routine can reset its streak history, so it needs acknowledgeReset: true after the user agrees.
|
|
244
|
-
|
|
228
|
+
server.tool("update_chore", `Update an existing chore in Skylight.
|
|
229
|
+
|
|
230
|
+
Use this when:
|
|
231
|
+
- (To mark a routine or chore done, use complete_chore, not this tool)
|
|
232
|
+
- Changing chore assignment: "Reassign the trash to Casey"
|
|
233
|
+
- Updating chore details: "Change the time for the homework chore"
|
|
234
|
+
|
|
235
|
+
Parameters:
|
|
236
|
+
- choreId (required): ID of the chore (from get_chores)
|
|
237
|
+
- summary: New description for the chore
|
|
238
|
+
- status: not supported here; use complete_chore
|
|
239
|
+
- date: New due date
|
|
240
|
+
- time: New due time
|
|
241
|
+
- assignee: New family member assignment
|
|
242
|
+
|
|
243
|
+
Recurring chores and routines (ids like 12345-2026-11-03-0600): only summary (rename) and the weekly schedule (days plus timeOfDay, together) can be changed; date, time, assignee and rewardPoints are refused because they have not been captured. Skylight gives the chore a NEW id after every edit, and the reply says what it is. Changing the schedule of a habit-tracked routine can reset its streak history, so it needs acknowledgeReset: true after the user agrees.
|
|
244
|
+
|
|
245
245
|
Returns: The updated chore details.`, {
|
|
246
246
|
choreId: z.string().describe("ID of the chore to update"),
|
|
247
247
|
summary: z.string().optional().describe("New chore description"),
|
|
@@ -331,20 +331,20 @@ Returns: The updated chore details.`, {
|
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
// create_routine tool
|
|
334
|
-
server.tool("create_routine", `Create a routine: a weekly recurring chore that shows on the routine chart for one or more family members.
|
|
335
|
-
|
|
336
|
-
Use this when the user wants a repeating habit like "brush teeth every morning" for specific people. A separate routine is created for each profile.
|
|
337
|
-
|
|
338
|
-
Parameters:
|
|
339
|
-
- summary (required): routine name
|
|
340
|
-
- profiles (required): family member names, as in get_family_members
|
|
341
|
-
- days (required): weekdays it repeats on (MO TU WE TH FR SA SU)
|
|
342
|
-
- timeOfDay (required): morning, afternoon or evening
|
|
343
|
-
- startDate: first day (YYYY-MM-DD or 'today'); defaults to today
|
|
344
|
-
- trackHabit: track streaks (default false)
|
|
345
|
-
- rewardPoints: stars per completion
|
|
346
|
-
- emojiIcon: optional emoji
|
|
347
|
-
|
|
334
|
+
server.tool("create_routine", `Create a routine: a weekly recurring chore that shows on the routine chart for one or more family members.
|
|
335
|
+
|
|
336
|
+
Use this when the user wants a repeating habit like "brush teeth every morning" for specific people. A separate routine is created for each profile.
|
|
337
|
+
|
|
338
|
+
Parameters:
|
|
339
|
+
- summary (required): routine name
|
|
340
|
+
- profiles (required): family member names, as in get_family_members
|
|
341
|
+
- days (required): weekdays it repeats on (MO TU WE TH FR SA SU)
|
|
342
|
+
- timeOfDay (required): morning, afternoon or evening
|
|
343
|
+
- startDate: first day (YYYY-MM-DD or 'today'); defaults to today
|
|
344
|
+
- trackHabit: track streaks (default false)
|
|
345
|
+
- rewardPoints: stars per completion
|
|
346
|
+
- emojiIcon: optional emoji
|
|
347
|
+
|
|
348
348
|
Only weekly schedules are supported (every day = all seven days). Returns the new series ids.`, {
|
|
349
349
|
summary: z.string().min(1).describe("Routine name"),
|
|
350
350
|
profiles: z.array(z.string()).min(1).describe("Family member names"),
|
|
@@ -381,15 +381,15 @@ Only weekly schedules are supported (every day = all seven days). Returns the ne
|
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
// complete_chore tool (local only: see LOCAL_ONLY_TOOLS in registry.ts)
|
|
384
|
-
server.tool("complete_chore", `Mark one occurrence of a recurring chore or routine complete, or undo that.
|
|
385
|
-
|
|
386
|
-
This is visible to the family and has real effects: completing a chore with a reward awards stars, and completing a routine extends its streak, both shown on the Skylight display. Undoing restores the status and the stars, but a routine's "longest streak" record cannot be reduced.
|
|
387
|
-
|
|
388
|
-
Without confirm: true this only previews what would happen and changes nothing. Show the preview to the user and get an explicit yes before calling again with confirm: true.
|
|
389
|
-
|
|
390
|
-
Parameters:
|
|
391
|
-
- choreId (required): the occurrence id from get_chores. For recurring chores and routines it looks like 12345-2026-11-03-0600. One-off chores are not supported.
|
|
392
|
-
- complete: true (default) to mark done, false to mark not done
|
|
384
|
+
server.tool("complete_chore", `Mark one occurrence of a recurring chore or routine complete, or undo that.
|
|
385
|
+
|
|
386
|
+
This is visible to the family and has real effects: completing a chore with a reward awards stars, and completing a routine extends its streak, both shown on the Skylight display. Undoing restores the status and the stars, but a routine's "longest streak" record cannot be reduced.
|
|
387
|
+
|
|
388
|
+
Without confirm: true this only previews what would happen and changes nothing. Show the preview to the user and get an explicit yes before calling again with confirm: true.
|
|
389
|
+
|
|
390
|
+
Parameters:
|
|
391
|
+
- choreId (required): the occurrence id from get_chores. For recurring chores and routines it looks like 12345-2026-11-03-0600. One-off chores are not supported.
|
|
392
|
+
- complete: true (default) to mark done, false to mark not done
|
|
393
393
|
- confirm: must be true to make the change`, {
|
|
394
394
|
choreId: z.string().describe("Occurrence id from get_chores, e.g. 12345-2026-11-03-0600"),
|
|
395
395
|
complete: z.boolean().optional().default(true).describe("true to mark complete, false to mark not complete"),
|
|
@@ -439,17 +439,17 @@ Parameters:
|
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
// delete_chore tool
|
|
442
|
-
server.tool("delete_chore", `Delete a chore from Skylight.
|
|
443
|
-
|
|
444
|
-
Use this when:
|
|
445
|
-
- Removing an old or irrelevant chore
|
|
446
|
-
- Deleting a chore that was added by mistake
|
|
447
|
-
|
|
448
|
-
Parameters:
|
|
449
|
-
- choreId (required): ID of the chore to delete (from get_chores)
|
|
450
|
-
- scope: required for recurring chores and routines (ids like 12345-2026-11-03-0600). "future" deletes this day and every later day ("Delete this and future tasks" in the app); "all" deletes the whole series ("Delete all tasks in series"). Ignored for one-off chores.
|
|
451
|
-
- confirm: must be true to delete; without it nothing is deleted and a preview is returned.
|
|
452
|
-
|
|
442
|
+
server.tool("delete_chore", `Delete a chore from Skylight.
|
|
443
|
+
|
|
444
|
+
Use this when:
|
|
445
|
+
- Removing an old or irrelevant chore
|
|
446
|
+
- Deleting a chore that was added by mistake
|
|
447
|
+
|
|
448
|
+
Parameters:
|
|
449
|
+
- choreId (required): ID of the chore to delete (from get_chores)
|
|
450
|
+
- scope: required for recurring chores and routines (ids like 12345-2026-11-03-0600). "future" deletes this day and every later day ("Delete this and future tasks" in the app); "all" deletes the whole series ("Delete all tasks in series"). Ignored for one-off chores.
|
|
451
|
+
- confirm: must be true to delete; without it nothing is deleted and a preview is returned.
|
|
452
|
+
|
|
453
453
|
Note: This permanently removes the chore. Deleting a routine also loses its streak history. Skylight returns no body, so the tool reads the chores back and reports whether the occurrence is gone.`, {
|
|
454
454
|
choreId: z.string().describe("ID of the chore to delete"),
|
|
455
455
|
scope: z.enum(["future", "all"]).optional().describe("Recurring chores only: 'future' = this and later days, 'all' = the whole series"),
|
package/dist/tools/family.js
CHANGED
|
@@ -4,13 +4,13 @@ import { getDevices } from "../api/endpoints/devices.js";
|
|
|
4
4
|
import { formatErrorForMcp } from "../utils/errors.js";
|
|
5
5
|
export function registerFamilyTools(server) {
|
|
6
6
|
// get_family_members tool
|
|
7
|
-
server.tool("get_family_members", `Get family members/profiles from Skylight.
|
|
8
|
-
|
|
9
|
-
Shows who can be assigned chores and their profile details.
|
|
10
|
-
|
|
11
|
-
Use this to answer:
|
|
12
|
-
- "Who's in our family on Skylight?"
|
|
13
|
-
- "What family members are set up?"
|
|
7
|
+
server.tool("get_family_members", `Get family members/profiles from Skylight.
|
|
8
|
+
|
|
9
|
+
Shows who can be assigned chores and their profile details.
|
|
10
|
+
|
|
11
|
+
Use this to answer:
|
|
12
|
+
- "Who's in our family on Skylight?"
|
|
13
|
+
- "What family members are set up?"
|
|
14
14
|
- "Who can I assign chores to?"`, {}, async () => {
|
|
15
15
|
try {
|
|
16
16
|
const members = await getFamilyMembers();
|
|
@@ -86,12 +86,12 @@ Use this to answer:
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
// get_frame_info tool
|
|
89
|
-
server.tool("get_frame_info", `Get Skylight household/frame information.
|
|
90
|
-
|
|
91
|
-
Useful for setup verification and debugging.
|
|
92
|
-
|
|
93
|
-
Use this to answer:
|
|
94
|
-
- "Show Skylight household info"
|
|
89
|
+
server.tool("get_frame_info", `Get Skylight household/frame information.
|
|
90
|
+
|
|
91
|
+
Useful for setup verification and debugging.
|
|
92
|
+
|
|
93
|
+
Use this to answer:
|
|
94
|
+
- "Show Skylight household info"
|
|
95
95
|
- "What's my frame ID?"`, {}, async () => {
|
|
96
96
|
try {
|
|
97
97
|
const frame = await getFrame();
|
|
@@ -128,10 +128,10 @@ Use this to answer:
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
// get_devices tool
|
|
131
|
-
server.tool("get_devices", `List Skylight devices in the household.
|
|
132
|
-
|
|
133
|
-
Use this to answer:
|
|
134
|
-
- "What Skylight devices do we have?"
|
|
131
|
+
server.tool("get_devices", `List Skylight devices in the household.
|
|
132
|
+
|
|
133
|
+
Use this to answer:
|
|
134
|
+
- "What Skylight devices do we have?"
|
|
135
135
|
- "How many Skylight frames are connected?"`, {}, async () => {
|
|
136
136
|
try {
|
|
137
137
|
const devices = await getDevices();
|
package/dist/tools/lists.js
CHANGED
|
@@ -27,9 +27,9 @@ async function resolveListId(listId, listName, defaultToGrocery = false) {
|
|
|
27
27
|
}
|
|
28
28
|
export function registerListTools(server) {
|
|
29
29
|
// get_lists tool
|
|
30
|
-
server.tool("get_lists", `Get all lists from Skylight (grocery lists, to-do lists, etc.).
|
|
31
|
-
|
|
32
|
-
Use this to see what lists are available before adding items.
|
|
30
|
+
server.tool("get_lists", `Get all lists from Skylight (grocery lists, to-do lists, etc.).
|
|
31
|
+
|
|
32
|
+
Use this to see what lists are available before adding items.
|
|
33
33
|
Returns list names, types (shopping/to_do), and item counts.`, {}, async () => {
|
|
34
34
|
try {
|
|
35
35
|
const lists = await getLists();
|
|
@@ -80,13 +80,13 @@ Returns list names, types (shopping/to_do), and item counts.`, {}, async () => {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
// get_list_items tool
|
|
83
|
-
server.tool("get_list_items", `Get items from a specific Skylight list.
|
|
84
|
-
|
|
85
|
-
Use this to answer:
|
|
86
|
-
- "What's on the grocery list?"
|
|
87
|
-
- "Show me my to-do list"
|
|
88
|
-
- "What items are on [list name]?"
|
|
89
|
-
|
|
83
|
+
server.tool("get_list_items", `Get items from a specific Skylight list.
|
|
84
|
+
|
|
85
|
+
Use this to answer:
|
|
86
|
+
- "What's on the grocery list?"
|
|
87
|
+
- "Show me my to-do list"
|
|
88
|
+
- "What items are on [list name]?"
|
|
89
|
+
|
|
90
90
|
Returns items organized by section with their completion status.`, {
|
|
91
91
|
listName: z
|
|
92
92
|
.string()
|
|
@@ -219,17 +219,17 @@ Returns items organized by section with their completion status.`, {
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
// create_list tool
|
|
222
|
-
server.tool("create_list", `Create a new list in Skylight.
|
|
223
|
-
|
|
224
|
-
Use this when:
|
|
225
|
-
- Creating a new shopping/grocery list
|
|
226
|
-
- Creating a new to-do list
|
|
227
|
-
|
|
228
|
-
Parameters:
|
|
229
|
-
- label (required): Name of the list (e.g., "Vacation Packing", "Weekly Groceries")
|
|
230
|
-
- kind (required): "shopping" for grocery/shopping lists, "to_do" for task lists
|
|
231
|
-
- color: Optional color for the list
|
|
232
|
-
|
|
222
|
+
server.tool("create_list", `Create a new list in Skylight.
|
|
223
|
+
|
|
224
|
+
Use this when:
|
|
225
|
+
- Creating a new shopping/grocery list
|
|
226
|
+
- Creating a new to-do list
|
|
227
|
+
|
|
228
|
+
Parameters:
|
|
229
|
+
- label (required): Name of the list (e.g., "Vacation Packing", "Weekly Groceries")
|
|
230
|
+
- kind (required): "shopping" for grocery/shopping lists, "to_do" for task lists
|
|
231
|
+
- color: Optional color for the list
|
|
232
|
+
|
|
233
233
|
Returns: The created list details.`, {
|
|
234
234
|
label: z.string().describe("Name of the list (e.g., 'Vacation Packing')"),
|
|
235
235
|
kind: z.enum(["shopping", "to_do"]).describe("Type of list: 'shopping' or 'to_do'"),
|
|
@@ -254,19 +254,19 @@ Returns: The created list details.`, {
|
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
256
|
// update_list tool
|
|
257
|
-
server.tool("update_list", `Update an existing list's name or settings.
|
|
258
|
-
|
|
259
|
-
Use this when:
|
|
260
|
-
- Renaming a list
|
|
261
|
-
- Changing a list's type or color
|
|
262
|
-
|
|
263
|
-
Parameters:
|
|
264
|
-
- listId: ID of the list to update (use get_lists to find IDs)
|
|
265
|
-
- listName: Name of the list to update (alternative to listId)
|
|
266
|
-
- label: New name for the list
|
|
267
|
-
- kind: New type ("shopping" or "to_do")
|
|
268
|
-
- color: New color for the list
|
|
269
|
-
|
|
257
|
+
server.tool("update_list", `Update an existing list's name or settings.
|
|
258
|
+
|
|
259
|
+
Use this when:
|
|
260
|
+
- Renaming a list
|
|
261
|
+
- Changing a list's type or color
|
|
262
|
+
|
|
263
|
+
Parameters:
|
|
264
|
+
- listId: ID of the list to update (use get_lists to find IDs)
|
|
265
|
+
- listName: Name of the list to update (alternative to listId)
|
|
266
|
+
- label: New name for the list
|
|
267
|
+
- kind: New type ("shopping" or "to_do")
|
|
268
|
+
- color: New color for the list
|
|
269
|
+
|
|
270
270
|
Returns: The updated list details.`, {
|
|
271
271
|
listId: z.string().optional().describe("ID of the list to update"),
|
|
272
272
|
listName: z.string().optional().describe("Name of the list to update (alternative to listId)"),
|
|
@@ -307,17 +307,17 @@ Returns: The updated list details.`, {
|
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
// delete_list tool
|
|
310
|
-
server.tool("delete_list", `Delete a list from Skylight.
|
|
311
|
-
|
|
312
|
-
Use this when:
|
|
313
|
-
- Removing an old or unused list
|
|
314
|
-
- Deleting a temporary list
|
|
315
|
-
|
|
316
|
-
Parameters:
|
|
317
|
-
- listId: ID of the list to delete (use get_lists to find IDs)
|
|
318
|
-
- listName: Name of the list to delete (alternative to listId)
|
|
319
|
-
- confirm: must be true to delete; without it nothing is deleted and a preview is returned.
|
|
320
|
-
|
|
310
|
+
server.tool("delete_list", `Delete a list from Skylight.
|
|
311
|
+
|
|
312
|
+
Use this when:
|
|
313
|
+
- Removing an old or unused list
|
|
314
|
+
- Deleting a temporary list
|
|
315
|
+
|
|
316
|
+
Parameters:
|
|
317
|
+
- listId: ID of the list to delete (use get_lists to find IDs)
|
|
318
|
+
- listName: Name of the list to delete (alternative to listId)
|
|
319
|
+
- confirm: must be true to delete; without it nothing is deleted and a preview is returned.
|
|
320
|
+
|
|
321
321
|
Note: This permanently deletes the list and all its items.`, {
|
|
322
322
|
listId: z.string().optional().describe("ID of the list to delete"),
|
|
323
323
|
listName: z.string().optional().describe("Name of the list to delete (alternative to listId)"),
|
|
@@ -354,23 +354,23 @@ Note: This permanently deletes the list and all its items.`, {
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
// create_list_item tool
|
|
357
|
-
server.tool("create_list_item", `Add an item to a Skylight list.
|
|
358
|
-
|
|
359
|
-
Use this when:
|
|
360
|
-
- Adding something to the grocery list: "Add milk to the shopping list"
|
|
361
|
-
- Creating a to-do item: "Put 'call doctor' on my to-do list"
|
|
362
|
-
- Adding items to any list
|
|
363
|
-
|
|
364
|
-
Parameters:
|
|
365
|
-
- label (required): The item text (e.g., "Milk", "Call doctor")
|
|
366
|
-
- listId: ID of the list to add to
|
|
367
|
-
- listName: Name of the list to add to (e.g., "Grocery List")
|
|
368
|
-
- section: Category within the list (e.g., "Dairy", "Produce")
|
|
369
|
-
|
|
370
|
-
If no list is specified, adds to the default grocery list.
|
|
371
|
-
|
|
372
|
-
Returns: Confirmation of the added item.
|
|
373
|
-
|
|
357
|
+
server.tool("create_list_item", `Add an item to a Skylight list.
|
|
358
|
+
|
|
359
|
+
Use this when:
|
|
360
|
+
- Adding something to the grocery list: "Add milk to the shopping list"
|
|
361
|
+
- Creating a to-do item: "Put 'call doctor' on my to-do list"
|
|
362
|
+
- Adding items to any list
|
|
363
|
+
|
|
364
|
+
Parameters:
|
|
365
|
+
- label (required): The item text (e.g., "Milk", "Call doctor")
|
|
366
|
+
- listId: ID of the list to add to
|
|
367
|
+
- listName: Name of the list to add to (e.g., "Grocery List")
|
|
368
|
+
- section: Category within the list (e.g., "Dairy", "Produce")
|
|
369
|
+
|
|
370
|
+
If no list is specified, adds to the default grocery list.
|
|
371
|
+
|
|
372
|
+
Returns: Confirmation of the added item.
|
|
373
|
+
|
|
374
374
|
Related: Use get_lists to see available lists and their IDs.`, {
|
|
375
375
|
label: z.string().describe("The item text to add (e.g., 'Milk', 'Call doctor')"),
|
|
376
376
|
listId: z.string().optional().describe("ID of the list to add to"),
|
|
@@ -404,20 +404,20 @@ Related: Use get_lists to see available lists and their IDs.`, {
|
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
// update_list_item tool
|
|
407
|
-
server.tool("update_list_item", `Update a list item (mark complete, rename, move to section).
|
|
408
|
-
|
|
409
|
-
Use this when:
|
|
410
|
-
- Marking an item as complete: "Check off milk from the list"
|
|
411
|
-
- Renaming an item: "Change 'milk' to '2% milk'"
|
|
412
|
-
- Moving an item to a different section
|
|
413
|
-
|
|
414
|
-
Parameters:
|
|
415
|
-
- itemId (required): ID of the item to update
|
|
416
|
-
- listId (required): ID of the list containing the item
|
|
417
|
-
- label: New text for the item
|
|
418
|
-
- status: "completed" to check off, "pending" to uncheck
|
|
419
|
-
- section: Move to a different section
|
|
420
|
-
|
|
407
|
+
server.tool("update_list_item", `Update a list item (mark complete, rename, move to section).
|
|
408
|
+
|
|
409
|
+
Use this when:
|
|
410
|
+
- Marking an item as complete: "Check off milk from the list"
|
|
411
|
+
- Renaming an item: "Change 'milk' to '2% milk'"
|
|
412
|
+
- Moving an item to a different section
|
|
413
|
+
|
|
414
|
+
Parameters:
|
|
415
|
+
- itemId (required): ID of the item to update
|
|
416
|
+
- listId (required): ID of the list containing the item
|
|
417
|
+
- label: New text for the item
|
|
418
|
+
- status: "completed" to check off, "pending" to uncheck
|
|
419
|
+
- section: Move to a different section
|
|
420
|
+
|
|
421
421
|
Returns: The updated item details.`, {
|
|
422
422
|
itemId: z.string().describe("ID of the item to update"),
|
|
423
423
|
listId: z.string().describe("ID of the list containing the item"),
|
|
@@ -452,17 +452,17 @@ Returns: The updated item details.`, {
|
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
// delete_list_item tool
|
|
455
|
-
server.tool("delete_list_item", `Remove an item from a list.
|
|
456
|
-
|
|
457
|
-
Use this when:
|
|
458
|
-
- Removing an item that was added by mistake
|
|
459
|
-
- Deleting an item instead of marking it complete
|
|
460
|
-
|
|
461
|
-
Parameters:
|
|
462
|
-
- itemId (required): ID of the item to delete
|
|
463
|
-
- listId (required): ID of the list containing the item
|
|
464
|
-
- confirm: must be true to delete; without it nothing is deleted and a preview is returned.
|
|
465
|
-
|
|
455
|
+
server.tool("delete_list_item", `Remove an item from a list.
|
|
456
|
+
|
|
457
|
+
Use this when:
|
|
458
|
+
- Removing an item that was added by mistake
|
|
459
|
+
- Deleting an item instead of marking it complete
|
|
460
|
+
|
|
461
|
+
Parameters:
|
|
462
|
+
- itemId (required): ID of the item to delete
|
|
463
|
+
- listId (required): ID of the list containing the item
|
|
464
|
+
- confirm: must be true to delete; without it nothing is deleted and a preview is returned.
|
|
465
|
+
|
|
466
466
|
Note: This permanently removes the item. Use update_list_item with status="completed" to check it off instead.`, {
|
|
467
467
|
itemId: z.string().describe("ID of the item to delete"),
|
|
468
468
|
listId: z.string().describe("ID of the list containing the item"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meals.d.ts","sourceRoot":"","sources":["../../src/tools/meals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"meals.d.ts","sourceRoot":"","sources":["../../src/tools/meals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAwBzE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAskBzD"}
|