Skip to main content
Glama

SpendGate

Mint a free API key

get_api_key

Mint one free sg_live_ key so later score_spend and get_quota calls use 1,000 scores per UTC day instead of the anonymous 100. Call once per agent when you will score often and have no stored key. Do not call every turn, do not mint again if you already stored the secret, and do not call just to read remaining scores (use get_quota). Returns the secret once as api_key, plus key_id, key_prefix, label, tier free, daily_limit, created_at, and note. Only a hash is stored, so the secret cannot be shown again. Keys do not expire and there is no revoke tool; a lost key stays valid, and an unknown or non-sg_live_ value later returns invalid_api_key. At most 20 mints per client per UTC day, then key_mint_limit and no new key. Minting is free and does not consume a score. Send the secret later as Authorization: Bearer or as api_key. label is an optional stored name and does not set a cap, a scope, or an expiry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoOptional name stored with the key, up to 80 characters. Does not set a cap or an expiry. Keys do not expire.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / label / description
      Previous value: -"Optional label stored with the key, up to 80 characters."New value: +"Optional name stored with the key, up to 80 characters. Does not set a cap or an expiry. Keys do not expire."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover safety hints (non-readonly, non-idempotent); the description supplies the substantive traits: secret returned once and only a hash stored, no expiry, no revoke path, a 20-mints-per-client-per-day cap yielding key_mint_limit, invalid_api_key for unknown values, and that minting is free. Far exceeds the annotation bar.

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

Conciseness4/5

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

Front-loaded with the action and its purpose, then rules, then return shape, then edge cases – a sensible ordering. It is long for a one-parameter tool and repeats 'keys do not expire' from the schema, costing a point on economy.

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

Completeness5/5

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

Despite no output schema, the description enumerates the returned fields (api_key, key_id, key_prefix, label, tier, daily_limit, created_at, note) and covers auth transport, error codes, and the mint rate limit. Nothing needed to call or interpret the tool is missing.

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?

Schema coverage is 100% on the single optional label param, so baseline is 3. The description goes slightly beyond by clarifying what label is not – no cap, no scope, no expiry – which pre-empts a plausible misuse of label as a quota control.

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

Purpose5/5

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

States a specific verb+resource ('Mint one free sg_live_ key') and immediately frames the effect on siblings score_spend and get_quota. An agent can distinguish this from get_quota (read remaining scores) and score_spend without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use ('Call once per agent when you will score often and have no stored key') and three explicit when-not-to conditions (not every turn, not if a secret is stored, not to read remaining scores – use get_quota). The alternative tool is named with the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.