Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/slimy-paths-beam.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---

Add list_paying_members admin tool and infer membership tier from subscription amount in get_account.
Fix list_paying_members returning incomplete results: raise default limit from 50 to 200 (max 500), add truncation warning when results are capped.
5 changes: 3 additions & 2 deletions server/src/addie/mcp/admin-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ Roles: member (default), admin (can manage team), owner (full control)`,
},
limit: {
type: 'number',
description: 'Maximum results (default: 50)',
description: 'Maximum results (default: 200, max: 500)',
},
},
},
Expand Down Expand Up @@ -6610,7 +6610,7 @@ Use add_committee_leader to assign a leader.`;
try {
const pool = getPool();
const includeIndividual = input.include_individual !== false;
const limit = Math.min(Math.max((input.limit as number) || 50, 1), 100);
const limit = Math.min(Math.max((input.limit as number) || 200, 1), 500);

const result = await pool.query(
`SELECT
Expand Down Expand Up @@ -6694,6 +6694,7 @@ Use add_committee_leader to assign a leader.`;
let response = `## Active Members\n\n`;
response += `**${result.rows.length} active member${result.rows.length !== 1 ? 's' : ''}**`;
if (!includeIndividual) response += ` (corporate only)`;
if (result.rows.length >= limit) response += ` (results truncated at ${limit} — increase limit for full list)`;
response += `\n\n`;

if (groups.icl.length > 0) {
Expand Down
Loading