File an organization's contract
admin_set_contractInternal 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
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | true only once the person has agreed to the sentence the unconfirmed call answered with. | |
| termEnd | Yes | The day the term ends and the contract renews, yyyy-mm-dd. | |
| currency | Yes | The three-letter currency, such as USD. | |
| termStart | Yes | The first day of the term, yyyy-mm-dd. | |
| invoicesTo | No | Who the contract says invoices go to, as a name, if it says. Where they are sent is billingEmail. | |
| monthlyFee | No | The fee invoiced each month, in minor units. Leave out where there is none. | |
| creditTiers | No | The 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. | |
| paymentDays | No | Days the customer has to pay an invoice Stripe sends. Leave out for a contract paid by card. | |
| billingEmail | Yes | The 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. | |
| organization | Yes | The organization's id or slug, as admin_find_organization returned it. | |
| purchaseOrder | No | The purchase order number, if the contract has one. | |
| committedAmount | Yes | What a year's commitment costs, in minor units of the currency. | |
| includedCredits | No | Credits each billing period includes, in place of the catalog's 5,000,000. Leave out to keep the catalog's. | |
| ratePerThousand | Yes | The price of 1,000 credits past the commitment, in minor units. | |
| committedCredits | Yes | Credits committed for each contract year. | |
| purchaseCapCredits | No | The most credits bought over the term at these prices. Leave out for no cap. | |
| purchaseMinimumCredits | No | The fewest credits one purchase buys, a whole number of thousands. Leave out for 1,000. | |
| boughtCreditsValidityMonths | No | Months a bought credit lasts from the day its invoice was paid. Leave out and bought credits never lapse. |