Skip to main content
Glama

Grant an organization credits

admin_grant_credits
Destructive

Internal staff only. Grants an organization credits: they are spent after its included credits, never lapse, and cannot be taken back; on Flex and Enterprise they also raise the billing period's fair use on recall. The grant is recorded with your address as its author and the reason as the customer's Billing screen shows it. Call it without confirm first, put the sentence it answers with to the person, and call again with confirm: true only when they agree. Calling twice with confirm grants twice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "organization": "<organization>",
      "credits": "<credits>",
      "reason": "<reason>",
      "confirm": "<confirm>"
    },
    "name": "admin_grant_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in at most 500 characters. The customer sees it beside the grant.
confirmYestrue only once the person has agreed to the sentence the unconfirmed call answered with.
creditsYesHow many credits, between 1 and 50,000,000.
organizationYesThe organization's id or slug, as admin_find_organization returned it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already mark the tool as destructive and non-idempotent, and the description reinforces this with concrete behavior: credits never lapse, cannot be taken back, and double-confirming grants twice. It also explains billing-period fair-use effects and that the grant is attributed to the caller's address with a customer-visible reason.

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 front-loaded with the internal-staff restriction and the core action, then adds only behavior that affects safe invocation. Every sentence carries operational weight, especially the irreversible-credit and double-confirm warnings.

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?

For a destructive, non-idempotent mutation with no output schema, the description covers the key risks, the confirmation workflow, customer-visible effects, billing-period impact, and attribution. An agent has enough context to invoke it safely without needing more documentation.

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%, so the baseline is 3, but the description adds workflow semantics for confirm beyond the schema by specifying the unconfirmed-then-confirmed call pattern. It also ties reason to what the customer sees in the Billing screen, though most other parameter details are already documented in the schema.

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?

The description states a specific verb and resource: 'Grants an organization credits.' It also clearly scopes the tool to internal staff, distinguishing it from customer-facing credit tools like admin_quote_credits or admin_invoice_credits.

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?

It gives an explicit two-step workflow: call without confirm first, present the returned sentence to the person, then call again with confirm: true only after agreement. It also warns that calling twice with confirm grants twice, preventing accidental duplicate grants.

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.

Resources