Skip to main content
Glama

File an organization's contract

admin_set_contract
DestructiveIdempotent

Internal staff only. Files an organization's Enterprise contract, replacing the one filed before: every term is set again, and a term left out returns to the Enterprise catalog's figure. On Enterprise the terms set the plan from the moment they are filed: the credits each period includes, how long bought credits last from payment, and, with payment days, that an overdue invoice withholds the month's credits until it is paid. The signed PDF is kept; filing a new one is the contract command line's. Money is in minor units of the currency (USD 500.00 is 50000). billingEmail is required: the address Stripe sends the contract's invoices and receipts to, which becomes the organization's billing email. Ask the person for it when they have not given it, and never guess it from a name. Call it without confirm first, put the sentence it answers with to the person, and call again with confirm: true only when they agree.

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>",
      "termStart": "<termStart>",
      "termEnd": "<termEnd>",
      "committedCredits": "<committedCredits>",
      "committedAmount": "<committedAmount>",
      "currency": "<currency>",
      "ratePerThousand": "<ratePerThousand>",
      "billingEmail": "<billingEmail>",
      "confirm": "<confirm>"
    },
    "name": "admin_set_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYestrue only once the person has agreed to the sentence the unconfirmed call answered with.
termEndYesThe day the term ends and the contract renews, yyyy-mm-dd.
currencyYesThe three-letter currency, such as USD.
termStartYesThe first day of the term, yyyy-mm-dd.
invoicesToNoWho the contract says invoices go to, as a name, if it says. Where they are sent is billingEmail.
monthlyFeeNoThe fee invoiced each month, in minor units. Leave out where there is none.
creditTiersNoThe prices the contract sells credits at, graduated over the term: each step's start in credits bought this term (the first starts at 0) and its price per 1,000 credits in the currency's units, such as [{fromCredits: 0, pricePerThousand: 0.05}, {fromCredits: 50000000, pricePerThousand: 0.075}]. Leave out and the contract sells no credits.
paymentDaysNoDays the customer has to pay an invoice Stripe sends. Leave out for a contract paid by card.
billingEmailYesThe email address Stripe sends this contract's invoices and receipts to; it becomes the organization's billing email. Ask the person for it if they have not given it. Never guess it from a name.
organizationYesThe organization's id or slug, as admin_find_organization returned it.
purchaseOrderNoThe purchase order number, if the contract has one.
committedAmountYesWhat a year's commitment costs, in minor units of the currency.
includedCreditsNoCredits each billing period includes, in place of the catalog's 5,000,000. Leave out to keep the catalog's.
ratePerThousandYesThe price of 1,000 credits past the commitment, in minor units.
committedCreditsYesCredits committed for each contract year.
purchaseCapCreditsNoThe most credits bought over the term at these prices. Leave out for no cap.
purchaseMinimumCreditsNoThe fewest credits one purchase buys, a whole number of thousands. Leave out for 1,000.
boughtCreditsValidityMonthsNoMonths a bought credit lasts from the day its invoice was paid. Leave out and bought credits never lapse.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, and the description earns its keep by spelling out exactly what destruction means: prior terms are wiped, omitted terms silently revert to catalog defaults, and an overdue invoice withholds the month's credits. It also flags the confirmation gate and the 'never guess billingEmail' failure mode — context well beyond the annotation set.

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?

Front-loads audience restriction and the operation's identity, then layers destructive semantics, unit conventions, and finally the confirm protocol. Dense but every clause carries distinct information for an 18-parameter destructive tool; nothing is restated from the schema wholesale.

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?

For a destructive mutation with 9 required parameters and no output schema, it covers the essentials: precondition, wipe semantics, currency units, required email, and the confirm handshake. Minor gaps remain around idempotency on re-filing and what the unconfirmed 'sentence' contains, but the agent has enough to call it safely.

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% across all 18 parameters, so the baseline is 3. The description adds cross-cutting semantics the schema states only per-field — that all money is in minor units (USD 500.00 = 50000), that billingEmail is mandatory and must come from the person, and how confirm interacts with the rest.

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 and resource ('Files an organization's Enterprise contract') and immediately distinguishes itself from the read sibling by explaining it 'replac[es] the one filed before.' The reset semantics ('every term is set again, and a term left out returns to the Enterprise catalog's figure') make the operation distinguishable from admin_get_contract without opening either schema.

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?

Gives a hard precondition ('Internal staff only') and an explicit two-step procedure: call without confirm, relay the sentence to the person, then call with confirm: true only on agreement. It does not explicitly route the agent between this tool and the other contract-adjacent siblings (admin_get_contract, admin_quote_credits), which keeps it short of a 5.

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