@theronap/agnoclast-mcp 0.9.218 → 0.9.220
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/lib/server.mjs +4 -2
- package/package.json +1 -1
package/lib/server.mjs
CHANGED
|
@@ -4512,7 +4512,7 @@ function renderNudge(payload) {
|
|
|
4512
4512
|
'list_records',
|
|
4513
4513
|
{
|
|
4514
4514
|
title: 'List activity records (filtered)',
|
|
4515
|
-
description: 'List recent activity records you can see, filtered by type, project, page, source and recency. RLS-scoped. Use to enumerate "what happened on project X this week", "recent meetings", or EVERYTHING FILED ON A PAGE — pass `page` (its name or ref) to read a channel\'s items or a project page\'s records, with order:"oldest" to read a series in sequence, `offset` to page past 50, and `match` to narrow to records mentioning something. A long result holds whole records back and tells you the offset to resume from. Returns each record\'s FULL summary + id — never a truncated preview, so what you get back is the whole record you are permitted to read (use an id with request_file to ask its owner for the original file).',
|
|
4515
|
+
description: 'List recent activity records you can see, filtered by type, project, page, source and recency. RLS-scoped. Use to enumerate "what happened on project X this week", "recent meetings", or EVERYTHING FILED ON A PAGE — pass `page` (its name or ref) to read a channel\'s items or a project page\'s records, with order:"oldest" to read a series in sequence, `offset` to page past 50, and `match` to narrow to records mentioning something. A long result holds whole records back and tells you the offset to resume from. Returns each record\'s FULL summary + id — never a truncated preview, so what you get back is the whole record you are permitted to read (use an id with request_file to ask its owner for the original file). For HOW MANY rather than which, pass `group_by` ("emails per week", "which pages get the most", "who logged the most sessions"): counts over exactly the records the same filters would list.',
|
|
4516
4516
|
inputSchema: {
|
|
4517
4517
|
type: z.string().optional().describe("record type, e.g. 'meeting', 'comm', 'activity', 'ai_session', 'doc', 'note'"),
|
|
4518
4518
|
project: z.string().optional().describe('project key to filter to (e.g. "cortex")'),
|
|
@@ -4526,10 +4526,12 @@ function renderNudge(payload) {
|
|
|
4526
4526
|
match: z.string().optional().describe('only records whose title or text contains this (case-insensitive, literal) — e.g. one book on a channel that carries several, one ticket in a queue'),
|
|
4527
4527
|
container: z.string().optional().describe('a container\'s record id (a class session, a meeting) — lists the records INSIDE it. read_record on the container shows the same list with its own content'),
|
|
4528
4528
|
person: z.string().optional().describe('a member\'s exact display name or email — only the records they created (within what you can see)'),
|
|
4529
|
+
group_by: z.enum(['day', 'week', 'month', 'source', 'type', 'project', 'person', 'page']).optional().describe('return COUNTS instead of records, grouped by this — every other filter still applies (not container). Days and weeks are in your timezone (my_settings). Under "page" a record filed on several pages counts once per page, and a page you cannot read is never named'),
|
|
4529
4530
|
},
|
|
4530
4531
|
},
|
|
4531
|
-
async ({ type, project, since_days, limit, session, page, source, order, offset, match, container, person }) => {
|
|
4532
|
+
async ({ type, project, since_days, limit, session, page, source, order, offset, match, container, person, group_by }) => {
|
|
4532
4533
|
const qs = new URLSearchParams()
|
|
4534
|
+
if (group_by) qs.set('group_by', group_by)
|
|
4533
4535
|
if (container) qs.set('container', container)
|
|
4534
4536
|
if (person) qs.set('person', person)
|
|
4535
4537
|
if (page) qs.set('page', page)
|
package/package.json
CHANGED