Skip to main content
Glama
input-parser.ts533 B
export class MonthlySummaryInputParser { parse(args: unknown): { months: number; accountId?: string } { if (!args || typeof args !== 'object') { throw new Error('Arguments must be an object'); } const argsObj = args as Record<string, unknown>; const months = typeof argsObj.months === 'number' && argsObj.months > 0 ? argsObj.months : 3; const accountId = typeof argsObj.accountId === 'string' && argsObj.accountId.length > 0 ? argsObj.accountId : undefined; return { months, accountId }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-stefanov/actual-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server