Skip to main content
Glama

get_usage

Check your API usage quota for the current billing month to monitor document conversion limits.

Instructions

Check your API usage quota for the current billing month

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the get_usage tool which makes a GET request to /v1/usage.
    async () => {
      try {
        const result = await client.request("GET", "/v1/usage");
        return jsonResult(result);
      } catch (err) {
        return errorResult(err);
      }
    },
  • src/tools.ts:309-328 (registration)
    The registration of the get_usage tool within the MCP server instance.
    server.tool(
      "get_usage",
      "Check your API usage quota for the current billing month",
      {},
      {
        title: "Get API Usage",
        readOnlyHint: true,
        destructiveHint: false,
        idempotentHint: true,
        openWorldHint: true,
      },
      async () => {
        try {
          const result = await client.request("GET", "/v1/usage");
          return jsonResult(result);
        } catch (err) {
          return errorResult(err);
        }
      },
    );

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/UnMarkdown/mcp-server'

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