Skip to main content
Glama

Invoice credits on a contract

admin_invoice_credits
Destructive

Internal staff only. Sends an organization a Stripe invoice for credits at its Enterprise contract's prices, due in the contract's days to pay; the credits are added once it is paid and last the contract's months from then. A price in place of the contract's needs approvedBy: who approved it, in writing, and when. 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 sends two invoices.

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>",
      "confirm": "<confirm>"
    },
    "name": "admin_invoice_credits"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYestrue only once the person has agreed to the sentence the unconfirmed call answered with.
creditsYesHow many credits, a whole number of thousands.
approvedByNoWho approved that price, in writing, and when. Required with it.
organizationYesThe organization's id or slug, as admin_find_organization returned it.
approvedPricePerThousandNoA price per 1,000 credits, in the currency's units, approved in place of the steps. Leave out to price on the steps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already mark this destructive and non-idempotent, but the description adds real substance: a two-step confirm handshake with a human, the consequence of double-confirming, the fact credits only land after payment, and that a non-contract price requires written approval recorded in approvedBy. It does not describe auth mechanics or failure modes beyond the approval requirement.

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?

Five tightly packed sentences, front-loaded with the access restriction and the core action, with zero filler. Some phrasing is convoluted ('put the sentence it answers with to the person'), which slightly reduces scannability but does not waste space.

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

Completeness4/5

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

With no output schema, the description usefully explains that the unconfirmed call returns 'a sentence' to relay — information the agent would otherwise lack — and covers authorization, side effects, and the approval prerequisite. It stops short of describing what a confirmed call returns or handles any error/retry case.

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

Parameters3/5

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

Schema description coverage is 100%, so all five parameters are already documented, making 3 the baseline. The description does clarify the conditional dependency between approvedPricePerThousand and approvedBy ('A price in place of the contract's needs approvedBy'), which the schema only gestures at with 'Required with it', but it adds no syntax or format detail beyond what the schema provides.

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 states a specific verb and resource — 'Sends an organization a Stripe invoice for credits at its Enterprise contract's prices' — and explains the downstream effect (credits added once paid, lasting the contract's months). It implicitly separates this from grant/quote siblings by describing an invoice-based mechanism, but never names admin_grant_credits or admin_quote_credits, so an agent still has to infer which of the three credit tools applies.

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

Usage Guidelines4/5

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

Excellent operational guidance: 'Internal staff only', call without confirm first, relay the sentence to the person, and only re-call with confirm: true once they agree, plus the warning that two confirmed calls send two invoices. There is no explicit when-not guidance against the sibling tools (quote_credits, grant_credits), which is the main remaining ambiguity.

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