Skip to main content
Glama
justmytwospence

ynab-mcp

get_api_usage

Check current YNAB API usage against the 200 calls/hour rate limit to ensure sufficient budget before batch operations.

Instructions

[0 API calls] Check current YNAB API usage against the 200 calls/hour rate limit. Use this before batch operations to ensure you have enough budget.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for 'get_api_usage' that retrieves usage stats from the API usage tracker and formats the output.
    }, async () => {
      const usage = apiUsageTracker.getUsage();
      const lines = [
        `YNAB API Usage:`,
        `  Calls used (last hour): ${usage.used}`,
        `  Calls remaining: ${usage.remaining}`,
        `  Rate limit: ${usage.limit}/hour`,
      ];
      if (usage.windowResetsAt) {
        lines.push(`  Next call expires at: ${usage.windowResetsAt}`);
      }
      return textResult(lines.join("\n"));
    });
  • Registration of the 'get_api_usage' tool, including its schema and description.
    server.registerTool("get_api_usage", {
      title: "Get API Usage",
      description:
        "[0 API calls] Check current YNAB API usage against the 200 calls/hour rate limit. " +
        "Use this before batch operations to ensure you have enough budget.",
      inputSchema: {},
      annotations: { readOnlyHint: true },

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/justmytwospence/ynab-mcp'

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