Skip to main content
Glama

set_spending_policy

Set organization and current-credential daily spending ceilings in USD cents. Requires billing scope. Set funding_policy=null to keep automatic replenishment off; enabling it requires an explicit amount, threshold, daily maximum, future expiry and mandate reference. Returns applied limits and automatic_funding state; does not itself purchase credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesDaily organization and credential ceilings plus funding_policy (null by default, or an explicit bounded replenishment mandate).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / body / additionalProperties
      Previous value: -trueNew value: +false
    • addedInput schema / properties / body / description
      Added value: +"Daily organization and credential ceilings plus funding_policy (null by default, or an explicit bounded replenishment mandate)."
    • addedInput schema / properties / body / properties
      Added value: +{
      +  "credential_limit_cents": {
      +    "maximum": 100000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "daily_limit_cents": {
      +    "maximum": 100000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "funding_policy": {
      +    "oneOf": [
      +      {
      +        "type": "null"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "amountCents": {
      +            "maximum": 100000,
      +            "minimum": 50,
      +            "type": "integer"
      +          },
      +          "dailyMaximumCents": {
      +            "maximum": 100000,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "expiresAt": {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          "mandateReference": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "thresholdCents": {
      +            "maximum": 100000,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "amountCents",
      +          "thresholdCents",
      +          "dailyMaximumCents",
      +          "expiresAt",
      +          "mandateReference"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  }
      +}
    • addedInput schema / properties / body / required
      Added value: +[
      +  "daily_limit_cents",
      +  "credential_limit_cents",
      +  "funding_policy"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources