Skip to main content
Glama
benswel

QR for Agent

get_usage

Check your API key's current usage and quota limits for the QR for Agent platform. Monitor consumption to manage your QR code generation and tracking activities.

Instructions

Get current usage and quota for your API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_usage tool is defined in packages/mcp/src/tools.ts. It calls the /api/usage endpoint.
    get_usage: {
      description:
        "Get current usage and quota for your API key.",
      inputSchema: z.object({}),
      handler: async () => {
        return apiRequest("/api/usage");
      },
    },
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It identifies the read intent via 'Get' but fails to disclose idempotency, caching behavior, whether the call counts against the quota itself, or the structure of the returned usage data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence of eight words with no redundant or filler content. It is appropriately front-loaded with the action verb.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the description identifies what is retrieved, it lacks any indication of the return value structure or content (e.g., whether it includes rate limits, current period usage, or reset dates) despite the absence of an output schema. However, given the tool's simplicity and zero parameters, it meets minimum viability.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema contains zero parameters. Per the baseline rules for zero-parameter tools, this earns a default score of 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and the specific resource ('current usage and quota for your API key'). While it doesn't explicitly differentiate from analytics siblings like get_qr_analytics in the text, the target resource is distinct enough to avoid confusion with QR-specific operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like manage_billing or get_qr_analytics, nor does it mention prerequisites such as authentication requirements or rate limit considerations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/benswel/qr-agent-core'

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