Skip to main content
Glama
input-parser.ts589 B
// Parses and validates input arguments for balance-history tool import { BalanceHistoryArgs } from '../../types.js'; export interface BalanceHistoryInput { accountId: string; includeOffBudget: boolean; months: number; } export class BalanceHistoryInputParser { parse(args: BalanceHistoryArgs): BalanceHistoryInput { const { accountId, includeOffBudget, months } = args; return { accountId, includeOffBudget: typeof includeOffBudget === 'boolean' ? includeOffBudget : false, months: typeof months === 'number' && months > 0 ? months : 12, }; } }

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