Skip to main content
Glama

updateSubscription

Destructive

Change the end date, payment collection pause, or advance invoicing of a subscription; omitted fields keep their current values. Returns the updated subscription. endDate cannot be in the past, before the start date, or before the end of the current billing cycle; null removes the end date so the subscription renews indefinitely. pausePaymentCollection.behavior "draft" keeps invoices as drafts and "void" voids them while paused, with an optional resumesAt; null resumes payment collection. Change items with createSubscriptionItem, updateSubscriptionItem and removeSubscriptionItem. Get subscriptionId from getSubscriptions. Never invent UUIDs; only use values from prior tool responses.

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": {
      "subscriptionId": "<subscriptionId>",
      "subscription": "<subscription>"
    },
    "name": "updateSubscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
subscriptionYes
subscriptionIdYesThe id of the subscription.

Output Schema

NameRequiredDescriptionDefault
subscriptionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / subscription / properties / cancelRequest
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "The latest request to cancel the subscription made by the person it belongs to.",
      +  "properties": {
      +    "comment": {
      +      "description": "What the person told the administrators about why they want to cancel.",
      +      "type": "string"
      +    },
      +    "createDate": {
      +      "description": "ISO timestamp of when the person asked to cancel the subscription.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "decisionDate": {
      +      "description": "ISO timestamp of when the request was approved, declined or withdrawn.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "endDate": {
      +      "description": "ISO timestamp of the day the person wants the subscription to end.",
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "reason": {
      +      "description": "What the administrator told the person about why the request was declined.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "State of the request. A `requested` one waits for an administrator. It becomes `approved` when an administrator sets the subscription's end date, `declined` when an administrator declines it, and `withdrawn` when the person takes it back.",
      +      "enum": [
      +        "requested",
      +        "approved",
      +        "declined",
      +        "withdrawn"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "createDate",
      +    "endDate",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / subscription / properties / items / items / properties / doorflowGroupRef
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "DoorFlow access group reference."
      +}
  3. Changed1 schema field changed
    • removedOutput schema / properties / subscription / properties / request / properties / ticketRef
      Removed value: -{
      -  "description": "ID of the ticket that holds the request's conversation.",
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -  "type": "string"
      -}
  4. Changed6 schema fields changed
    • addedInput schema / properties / subscription / properties / advanceInvoicing / properties / dayOfMonth
      Added value: +{
      +  "description": "Day of the month, from 1 to 28, to issue an invoice before renewal. Required when type is dayOfMonth.",
      +  "maximum": 28,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / subscription / properties / advanceInvoicing / properties / type / enum
      Previous value: -[
      -  "days",
      -  "default"
      -]New value: +[
      +  "dayOfMonth",
      +  "days",
      +  "default"
      +]
    • addedOutput schema / properties / subscription / properties / advanceInvoicing / properties / dayOfMonth
      Added value: +{
      +  "description": "Day of the month, from 1 to 28, to issue an invoice before renewal. Present when invoices are issued on a fixed day.",
      +  "type": "number"
      +}
    • changedOutput schema / properties / subscription / properties / advanceInvoicing / properties / days / description
      Previous value: -"Number of days before renewal to issue an invoice."New value: +"Number of days before renewal to issue an invoice. Present when invoices are issued a number of days before renewal."
    • changedOutput schema / properties / subscription / properties / advanceInvoicing / properties / type / enum
      Previous value: -[
      -  "days",
      -  "default"
      -]New value: +[
      +  "dayOfMonth",
      +  "days",
      +  "default"
      +]
    • changedOutput schema / properties / subscription / properties / advanceInvoicing / required
      Previous value: -[
      -  "days",
      -  "type"
      -]New value: +[
      +  "type"
      +]
  5. Changed1 schema field changed
    • addedOutput schema / properties / subscription / properties / request / properties / ticketRef
      Added value: +{
      +  "description": "ID of the ticket that holds the request's conversation.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  6. Changed5 schema fields changed
    • addedOutput schema / properties / subscription / properties / paymentMethod
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Payment method this subscription's invoices are charged to. When missing, the customer's default payment method is charged.",
      +  "properties": {
      +    "id": {
      +      "description": "Payment method ID.",
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    "pgType": {
      +      "description": "Payment gateway of the payment method.",
      +      "enum": [
      +        "hyperpay",
      +        "mollie",
      +        "paypal",
      +        "paytabs",
      +        "plata",
      +        "stripe",
      +        "tap",
      +        "wayforpay"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "pgType"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / subscription / properties / request / properties / subscriptionRef
      Added value: +{
      +  "description": "ID of the subscription an approval created from the request.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / subscription / properties / requestRef
      Added value: +{
      +  "description": "ID of the request this subscription was approved from.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / subscription / properties / status / description
      Previous value: -"Subscription status. A `requested` subscription is one a person asked for that an administrator has not approved yet: it bills nothing, grants nothing and holds no resource. It becomes `declined` when an administrator declines it or nobody answers it in time, and `withdrawn` when the person takes it back."New value: +"Subscription status. A `requested` subscription is one a person asked for that an administrator has not approved yet: it bills nothing, grants nothing and holds no resource. It becomes `declined` when an administrator declines it or nobody answers it in time, `withdrawn` when the person takes it back, and `approved` when an administrator approves it, which creates a separate subscription."
    • changedOutput schema / properties / subscription / properties / status / enum
      Previous value: -[
      -  "active",
      -  "scheduled",
      -  "incomplete",
      -  "incompleteExpired",
      -  "canceled",
      -  "requested",
      -  "declined",
      -  "withdrawn"
      -]New value: +[
      +  "active",
      +  "scheduled",
      +  "incomplete",
      +  "incompleteExpired",
      +  "canceled",
      +  "requested",
      +  "declined",
      +  "withdrawn",
      +  "approved"
      +]
  7. Changed6 schema fields changed
    • changedOutput schema / properties / subscription / properties / request / description
      Previous value: -"Set on a subscription a person asked for and an administrator has yet to approve."New value: +"Set on a subscription a person asked for, whether it still waits for an administrator or was answered."
    • addedOutput schema / properties / subscription / properties / request / properties / decisionDate
      Added value: +{
      +  "description": "ISO timestamp of when the request was declined, withdrawn or expired.",
      +  "format": "date-time",
      +  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / subscription / properties / request / properties / expired
      Added value: +{
      +  "description": "Whether the request was declined because nobody answered it in time.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / subscription / properties / request / properties / reason
      Added value: +{
      +  "description": "What the administrator told the person about why the request was declined.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / subscription / properties / status / description
      Previous value: -"Subscription status. A `requested` subscription is one a person asked for that an administrator has not approved yet: it bills nothing, grants nothing and holds no resource."New value: +"Subscription status. A `requested` subscription is one a person asked for that an administrator has not approved yet: it bills nothing, grants nothing and holds no resource. It becomes `declined` when an administrator declines it or nobody answers it in time, and `withdrawn` when the person takes it back."
    • changedOutput schema / properties / subscription / properties / status / enum
      Previous value: -[
      -  "active",
      -  "scheduled",
      -  "incomplete",
      -  "incompleteExpired",
      -  "canceled",
      -  "requested"
      -]New value: +[
      +  "active",
      +  "scheduled",
      +  "incomplete",
      +  "incompleteExpired",
      +  "canceled",
      +  "requested",
      +  "declined",
      +  "withdrawn"
      +]
  8. Changed3 schema fields changed
    • addedOutput schema / properties / subscription / properties / request
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Set on a subscription a person asked for and an administrator has yet to approve.",
      +  "properties": {
      +    "comment": {
      +      "description": "What the person told the administrators when asking for the subscription.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / subscription / properties / status / description
      Previous value: -"Subscription status."New value: +"Subscription status. A `requested` subscription is one a person asked for that an administrator has not approved yet: it bills nothing, grants nothing and holds no resource."
    • changedOutput schema / properties / subscription / properties / status / enum
      Previous value: -[
      -  "active",
      -  "scheduled",
      -  "incomplete",
      -  "incompleteExpired",
      -  "canceled"
      -]New value: +[
      +  "active",
      +  "scheduled",
      +  "incomplete",
      +  "incompleteExpired",
      +  "canceled",
      +  "requested"
      +]
  9. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-read-only, but the description adds the partial-update contract ('omitted fields keep their current values'), the null semantics for both endDate and pausePaymentCollection, and the actual destructive effect of behavior 'void'. It also discloses the return value, none of which is in the annotations.

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?

Front-loaded with the three mutable fields and dense with useful content, but it is a single semicolon-chained block where constraint, null-semantics, and routing guidance run together, making it harder to scan than a short bulleted or sentence-per-field structure would be.

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?

An output schema exists, so not restating return fields is fine, and the description covers mutation semantics, validation constraints, and ID sourcing for a destructive nested-object update. It stops short of stating permission requirements or whether advanceInvoicing can be cleared with null, which is the residual ambiguity for a destructive tool.

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?

With only 50% schema coverage, the description carries real weight: it explains that endDate cannot be in the past, before the start date, or before the end of the current billing cycle, and it distinguishes 'draft' from 'void' and the meaning of resumesAt/null. advanceInvoicing is named as mutable but its modes are left entirely to the schema, which is the one gap.

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 first clause names a specific verb and the exact three mutable fields ('end date, payment collection pause, or advance invoicing of a subscription'), and it explicitly redirects item-level changes to createSubscriptionItem/updateSubscriptionItem/removeSubscriptionItem, so an agent can separate this from its closest siblings without opening a schema.

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 states the alternative tools for a related operation, gives the prerequisite for the required identifier ('Get subscriptionId from getSubscriptions'), and adds a hard constraint against fabricating IDs. When-to-use is implied by the field list; when-to-use-something-else is stated outright.

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