Skip to main content
Glama

settings-usage-logs

Retrieve paginated usage logs to track actions, credits, and timestamps for monitoring platform activity.

Instructions

Get paginated usage logs. Returns individual usage entries with action, credits, and timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetNoOffset for pagination
limitNoNumber of entries to return

Implementation Reference

  • The tool "settings-usage-logs" is registered in src/tools/settings.ts using server.tool. It uses the client.settings.getUsageLogs method to fetch usage logs.
    server.tool(
      "settings-usage-logs",
      "Get paginated usage logs. Returns individual usage entries with action, credits, and timestamps.",
      {
        offset: z.number().optional().describe("Offset for pagination"),
        limit: z.number().optional().describe("Number of entries to return"),
      },
      async (params) => {
        try {
          const result = await client.settings.getUsageLogs({
            offset: params.offset,
            limit: params.limit,
          });
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return { content: [{ type: "text", text: `Error: ${message}` }], isError: 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/ebenezer-isaac/llmconveyors-mcp'

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