Skip to main content
Glama

Manage site membership

subscriptions_write
Destructive

Lets the site owner manage the access of site members in the Subscriptions module of the site: creates and updates membership plans, gives members access and trial periods without payment, moves an access period to another plan, pauses it, turns its auto-renewal off and adds unpaid payment records. It is an administration tool of the site owner: nothing is offered to members, no payment is taken, refunded or confirmed, and no action turns auto-renewal on.

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": {
      "action": "<action>",
      "site_id": "<site_id>"
    },
    "name": "subscriptions_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoLegacy membership plan id.
typeNoPlan type: 0 free, 1 one-time, 2 recurring, 3 donate.
priceNo
titleNoPlan title (plan_add/update).
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
amountNoPayment amount in minor currency units.
fieldsNoExtra request fields described in the subscriptions OpenAPI specification (docs_tool).
periodNoRecurring period in days.
confirmNoPass true only after the user approves this change. Required by: subscription_grant.
plan_idNoMembership plan id.
site_idYesSite to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.
user_idNoSite member (user) id.
currencyNoISO 4217 code, e.g. RUB.
group_toNoGroup of a member while the access period is active.
intervalNoAccess period in days.
price_oldNo
group_backNoGroup of a member after the access period ends.
descriptionNoPlan description.
is_discountNo
is_advantageNo
text_advantageNo
transaction_idNoTransaction id of the payment record; a repeated id adds no second record.
trial_intervalNo
advantage_itemsNoAdvantage lines separated by newline.
subscription_idNoId of an access period (subscription) of a site member.
payment_method_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "action"
      -]New value: +[
      +  "action",
      +  "site_id"
      +]
  2. Changed12 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "plan_add",
      -  "plan_update",
      -  "plan_enable",
      -  "plan_disable",
      -  "legacy_item_add",
      -  "legacy_item_update",
      -  "subscription_create",
      -  "subscription_grant",
      -  "subscription_trial",
      -  "subscription_renew",
      -  "subscription_change_plan",
      -  "subscription_pause",
      -  "subscription_resume",
      -  "subscription_autorenew_disable",
      -  "payment_create",
      -  "payment_confirm"
      -]New value: +[
      +  "plan_add",
      +  "plan_update",
      +  "plan_enable",
      +  "plan_disable",
      +  "legacy_item_add",
      +  "legacy_item_update",
      +  "subscription_create",
      +  "subscription_grant",
      +  "subscription_trial",
      +  "subscription_change_plan",
      +  "subscription_pause",
      +  "subscription_autorenew_disable",
      +  "payment_create"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_add",
      -    "description": "Creates a tariff plan. Required: title. Optional: description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "plan_update",
      -    "description": "Updates a tariff plan. Required: plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "plan_enable",
      -    "description": "Enables a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_disable",
      -    "description": "Disables a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "legacy_item_add",
      -    "description": "Creates a legacy tariff. Required: title. Optional: description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "legacy_item_update",
      -    "description": "Updates a legacy tariff (id in id or plan_id). Required: id or plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "subscription_create",
      -    "description": "Creates an unpaid subscription of a user to a plan. Instead of a new one it reuses the unpaid subscription of the user to this plan (for a recurring plan also a paused or expired one, which keeps its status), refreshes it from the current plan and clears its saved payment method, so its auto-renewal is lost. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Gives no access, charges nothing and records no payment. Required: user_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_grant",
      -    "description": "Grants a user paid access to a plan without any payment: a subscription is created, or an unpaid one of the user to this plan (for a recurring plan also a paused or expired one) is reused and refreshed from the plan, and it is activated at once for one plan period (unlimited when the plan has no period). The user is moved to the plan group, and the user and the site owner are notified. No payment is recorded. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Required: user_id, plan_id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_trial",
      -    "description": "Starts a free trial of a recurring plan that has trial days: the subscription gets the trial status for trial_interval days without a card or any payment. The user group is not changed. Refused when the user already has this plan active, in trial or paused, or has an active or trial subscription to any other plan. Required: user_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_renew",
      -    "description": "Extends a subscription by one plan period without payment and without a payment record: from its end date, or from now when it has ended. The subscription becomes active and the user is moved to the plan group, even if it was unpaid, in trial or paused. A cancelled one is refused. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_change_plan",
      -    "description": "Moves a subscription to another plan at once: the new price, period and group (for an active or trial subscription) apply now, without extra payment, refund or price recalculation, and the end date stays. Auto-renewal is kept when the new plan is recurring at the same price, and later charges then follow the new plan period; otherwise it is turned off and the saved payment method is removed. PayPal subscriptions are refused. Required: subscription_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_pause",
      -    "description": "Pauses a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_resume",
      -    "description": "Resumes a paused subscription that has not ended: the user is moved back to the plan group, and automatic charges of a saved payment method are scheduled again, even if auto-renewal was turned off before the pause; the next charge may come within the hour when the period ends soon. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_autorenew_disable",
      -    "description": "Turns off auto-renewal of a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "payment_create",
      -    "description": "Records an unpaid payment of a subscription in the module accounts only: nothing is charged, no payment system is contacted, and the subscription does not change. amount is in minor currency units; the payment method must be enabled on the site. Required: subscription_id, amount. Optional: payment_method_id, currency, transaction_id, fields."
      -  },
      -  {
      -    "const": "payment_confirm",
      -    "description": "Marks an unpaid or awaiting payment as paid without any check that money was received; nothing is charged. The subscription is activated and extended by one plan period, the user is moved to the plan group, and the payment counts in paid totals (plan_stats). The amount is not checked against the plan price. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off; the next charge may come within the hour when the plan period is short. Required: payment_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_add",
      +    "description": "Creates a membership plan. Required: title. Optional: description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "plan_update",
      +    "description": "Updates a membership plan. Required: plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "plan_enable",
      +    "description": "Enables a membership plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_disable",
      +    "description": "Disables a membership plan. Required: plan_id."
      +  },
      +  {
      +    "const": "legacy_item_add",
      +    "description": "Creates a legacy membership plan. Required: title. Optional: description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "legacy_item_update",
      +    "description": "Updates a legacy membership plan (id in id or plan_id). Required: id or plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "subscription_create",
      +    "description": "Adds an inactive access period (an unpaid subscription) of a site member to a plan. Instead of a new one it reuses the unpaid one of the member to this plan (for a recurring plan also a paused or expired one, which keeps its status), refreshes it from the current plan and turns its auto-renewal off. Refused when the member has an active or trial access period on any plan (unless the plan is a donation plan). Gives no access and records no payment. Required: user_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_grant",
      +    "description": "Gives a site member access through a plan without payment: an access period is created, or an unpaid one of the member to this plan (for a recurring plan also a paused or expired one) is reused and refreshed from the plan, and it starts at once for one plan period (unlimited when the plan has no period). The member is moved to the plan group, and the member and the site owner are notified. No payment is recorded. Refused when the member has an active or trial access period on any plan (unless the plan is a donation plan). Required: user_id, plan_id, confirm. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_trial",
      +    "description": "Starts a free trial period of a recurring plan that has trial days for a site member: the access period gets the trial status for trial_interval days without payment. The member group is not changed. Refused when the member already has this plan active, in trial or paused, or has an active or trial access period on any other plan. Required: user_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_change_plan",
      +    "description": "Moves the access period of a site member to another plan at once: the period, the group (for an active or trial access period) and the price stored with it follow the new plan now, without payment, refund or recalculation, and the end date stays. Auto-renewal stays as it is when the new plan is recurring at the same price, and later renewals then follow the new plan period; otherwise auto-renewal is turned off. It is never turned on. Access periods paid through PayPal are refused. Required: subscription_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_pause",
      +    "description": "Pauses the access period of a site member. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_autorenew_disable",
      +    "description": "Turns off auto-renewal of the access period of a site member. Required: subscription_id."
      +  },
      +  {
      +    "const": "payment_create",
      +    "description": "Adds an unpaid payment record to the access period of a site member in the module accounts only: no payment system is contacted, nothing is taken from the member, and the access period does not change. amount is in minor currency units; the payment method must be enabled on the site. Required: subscription_id, amount. Optional: payment_method_id, currency, transaction_id, fields."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true only after the user approves this change. Required by: subscription_grant, payment_confirm."New value: +"Pass true only after the user approves this change. Required by: subscription_grant."
    • changedInput schema / properties / group_back / description
      Previous value: -"Group id after subscription ends."New value: +"Group of a member after the access period ends."
    • changedInput schema / properties / group_to / description
      Previous value: -"Group id while subscription is active."New value: +"Group of a member while the access period is active."
    • changedInput schema / properties / id / description
      Previous value: -"Legacy tariff id."New value: +"Legacy membership plan id."
    • changedInput schema / properties / interval / description
      Previous value: -"Subscription interval in days."New value: +"Access period in days."
    • removedInput schema / properties / payment_id
      Removed value: -{
      -  "description": "Payment id.",
      -  "type": "number"
      -}
    • changedInput schema / properties / plan_id / description
      Previous value: -"Tariff plan id."New value: +"Membership plan id."
    • changedInput schema / properties / subscription_id / description
      Previous value: -"Subscription id."New value: +"Id of an access period (subscription) of a site member."
    • changedInput schema / properties / transaction_id / description
      Previous value: -"Idempotent payment transaction id."New value: +"Transaction id of the payment record; a repeated id adds no second record."
    • changedInput schema / properties / user_id / description
      Previous value: -"User id."New value: +"Site member (user) id."
  3. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_add",
      -    "description": "Creates a tariff plan. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "plan_update",
      -    "description": "Updates a tariff plan. Required: plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "plan_enable",
      -    "description": "Enables a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_disable",
      -    "description": "Disables a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "legacy_item_add",
      -    "description": "Creates a legacy tariff. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "legacy_item_update",
      -    "description": "Updates a legacy tariff (id in id or plan_id). Optional: id, plan_id, title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "subscription_create",
      -    "description": "Creates an unpaid subscription of a user to a plan. Instead of a new one it reuses the unpaid subscription of the user to this plan (for a recurring plan also a paused or expired one, which keeps its status), refreshes it from the current plan and clears its saved payment method, so its auto-renewal is lost. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Gives no access, charges nothing and records no payment. Required: user_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_grant",
      -    "description": "Grants a user paid access to a plan without any payment: a subscription is created, or an unpaid one of the user to this plan (for a recurring plan also a paused or expired one) is reused and refreshed from the plan, and it is activated at once for one plan period (unlimited when the plan has no period). The user is moved to the plan group, and the user and the site owner are notified. No payment is recorded. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Required: user_id, plan_id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_trial",
      -    "description": "Starts a free trial of a recurring plan that has trial days: the subscription gets the trial status for trial_interval days without a card or any payment. The user group is not changed. Refused when the user already has this plan active, in trial or paused, or has an active or trial subscription to any other plan. Required: user_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_renew",
      -    "description": "Extends a subscription by one plan period without payment and without a payment record: from its end date, or from now when it has ended. The subscription becomes active and the user is moved to the plan group, even if it was unpaid, in trial or paused. A cancelled one is refused. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_change_plan",
      -    "description": "Moves a subscription to another plan at once: the new price, period and group (for an active or trial subscription) apply now, without extra payment, refund or price recalculation, and the end date stays. Auto-renewal is kept when the new plan is recurring at the same price, and later charges then follow the new plan period; otherwise it is turned off and the saved payment method is removed. PayPal subscriptions are refused. Required: subscription_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_pause",
      -    "description": "Pauses a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_resume",
      -    "description": "Resumes a paused subscription that has not ended: the user is moved back to the plan group, and automatic charges of a saved payment method are scheduled again, even if auto-renewal was turned off before the pause; the next charge may come within the hour when the period ends soon. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_autorenew_disable",
      -    "description": "Turns off auto-renewal of a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "payment_create",
      -    "description": "Records an unpaid payment of a subscription in the module accounts only: nothing is charged, no payment system is contacted, and the subscription does not change. amount is in minor currency units; the payment method must be enabled on the site. Required: subscription_id, amount. Optional: payment_method_id, currency, transaction_id, fields."
      -  },
      -  {
      -    "const": "payment_confirm",
      -    "description": "Marks an unpaid or awaiting payment as paid without any check that money was received; nothing is charged. The subscription is activated and extended by one plan period, the user is moved to the plan group, and the payment counts in paid totals (plan_stats). The amount is not checked against the plan price. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off; the next charge may come within the hour when the plan period is short. Required: payment_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_add",
      +    "description": "Creates a tariff plan. Required: title. Optional: description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "plan_update",
      +    "description": "Updates a tariff plan. Required: plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "plan_enable",
      +    "description": "Enables a tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_disable",
      +    "description": "Disables a tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "legacy_item_add",
      +    "description": "Creates a legacy tariff. Required: title. Optional: description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "legacy_item_update",
      +    "description": "Updates a legacy tariff (id in id or plan_id). Required: id or plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "subscription_create",
      +    "description": "Creates an unpaid subscription of a user to a plan. Instead of a new one it reuses the unpaid subscription of the user to this plan (for a recurring plan also a paused or expired one, which keeps its status), refreshes it from the current plan and clears its saved payment method, so its auto-renewal is lost. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Gives no access, charges nothing and records no payment. Required: user_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_grant",
      +    "description": "Grants a user paid access to a plan without any payment: a subscription is created, or an unpaid one of the user to this plan (for a recurring plan also a paused or expired one) is reused and refreshed from the plan, and it is activated at once for one plan period (unlimited when the plan has no period). The user is moved to the plan group, and the user and the site owner are notified. No payment is recorded. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Required: user_id, plan_id, confirm. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_trial",
      +    "description": "Starts a free trial of a recurring plan that has trial days: the subscription gets the trial status for trial_interval days without a card or any payment. The user group is not changed. Refused when the user already has this plan active, in trial or paused, or has an active or trial subscription to any other plan. Required: user_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_renew",
      +    "description": "Extends a subscription by one plan period without payment and without a payment record: from its end date, or from now when it has ended. The subscription becomes active and the user is moved to the plan group, even if it was unpaid, in trial or paused. A cancelled one is refused. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_change_plan",
      +    "description": "Moves a subscription to another plan at once: the new price, period and group (for an active or trial subscription) apply now, without extra payment, refund or price recalculation, and the end date stays. Auto-renewal is kept when the new plan is recurring at the same price, and later charges then follow the new plan period; otherwise it is turned off and the saved payment method is removed. PayPal subscriptions are refused. Required: subscription_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_pause",
      +    "description": "Pauses a subscription. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_resume",
      +    "description": "Resumes a paused subscription that has not ended: the user is moved back to the plan group, and automatic charges of a saved payment method are scheduled again, even if auto-renewal was turned off before the pause; the next charge may come within the hour when the period ends soon. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_autorenew_disable",
      +    "description": "Turns off auto-renewal of a subscription. Required: subscription_id."
      +  },
      +  {
      +    "const": "payment_create",
      +    "description": "Records an unpaid payment of a subscription in the module accounts only: nothing is charged, no payment system is contacted, and the subscription does not change. amount is in minor currency units; the payment method must be enabled on the site. Required: subscription_id, amount. Optional: payment_method_id, currency, transaction_id, fields."
      +  },
      +  {
      +    "const": "payment_confirm",
      +    "description": "Marks an unpaid or awaiting payment as paid without any check that money was received; nothing is charged. The subscription is activated and extended by one plan period, the user is moved to the plan group, and the payment counts in paid totals (plan_stats). The amount is not checked against the plan price. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off; the next charge may come within the hour when the plan period is short. Required: payment_id, confirm."
      +  }
      +]
  4. Changed3 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "plan_add",
      -  "plan_update",
      -  "plan_enable",
      -  "plan_disable",
      -  "legacy_item_add",
      -  "legacy_item_update",
      -  "subscription_create",
      -  "subscription_grant",
      -  "subscription_trial",
      -  "subscription_renew",
      -  "subscription_change_plan",
      -  "subscription_pause",
      -  "subscription_resume",
      -  "subscription_autorenew_enable",
      -  "subscription_autorenew_disable",
      -  "payment_create",
      -  "payment_confirm",
      -  "payment_refund"
      -]New value: +[
      +  "plan_add",
      +  "plan_update",
      +  "plan_enable",
      +  "plan_disable",
      +  "legacy_item_add",
      +  "legacy_item_update",
      +  "subscription_create",
      +  "subscription_grant",
      +  "subscription_trial",
      +  "subscription_renew",
      +  "subscription_change_plan",
      +  "subscription_pause",
      +  "subscription_resume",
      +  "subscription_autorenew_disable",
      +  "payment_create",
      +  "payment_confirm"
      +]
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plan_add",
      -    "description": "Creates a tariff plan. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "plan_update",
      -    "description": "Updates a tariff plan. Required: plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "plan_enable",
      -    "description": "Enables a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_disable",
      -    "description": "Disables a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "legacy_item_add",
      -    "description": "Creates a legacy tariff. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "legacy_item_update",
      -    "description": "Updates a legacy tariff (id in id or plan_id). Optional: id, plan_id, title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      -  },
      -  {
      -    "const": "subscription_create",
      -    "description": "Creates a subscription of a user to a plan. Required: user_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_grant",
      -    "description": "Grants a user access to a plan without payment. Required: user_id, plan_id, confirm. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_trial",
      -    "description": "Starts a trial subscription of a user to a plan. Required: user_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_renew",
      -    "description": "Renews a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_change_plan",
      -    "description": "Moves a subscription to another plan. Required: subscription_id, plan_id. Optional: fields."
      -  },
      -  {
      -    "const": "subscription_pause",
      -    "description": "Pauses a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_resume",
      -    "description": "Resumes a paused subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_autorenew_enable",
      -    "description": "Turns on auto-renewal of a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "subscription_autorenew_disable",
      -    "description": "Turns off auto-renewal of a subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "payment_create",
      -    "description": "Creates a payment for a subscription. Required: subscription_id. Optional: amount, payment_method_id, currency, transaction_id, fields."
      -  },
      -  {
      -    "const": "payment_confirm",
      -    "description": "Confirms a payment. Required: payment_id, confirm."
      -  },
      -  {
      -    "const": "payment_refund",
      -    "description": "Refunds a payment. Required: payment_id, confirm."
      -  }
      -]New value: +[
      +  {
      +    "const": "plan_add",
      +    "description": "Creates a tariff plan. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "plan_update",
      +    "description": "Updates a tariff plan. Required: plan_id. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "plan_enable",
      +    "description": "Enables a tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_disable",
      +    "description": "Disables a tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "legacy_item_add",
      +    "description": "Creates a legacy tariff. Optional: title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "legacy_item_update",
      +    "description": "Updates a legacy tariff (id in id or plan_id). Optional: id, plan_id, title, description, type, price, price_old, is_discount, is_advantage, interval, period, trial_interval, group_to, group_back, text_advantage, advantage_items, fields."
      +  },
      +  {
      +    "const": "subscription_create",
      +    "description": "Creates an unpaid subscription of a user to a plan. Instead of a new one it reuses the unpaid subscription of the user to this plan (for a recurring plan also a paused or expired one, which keeps its status), refreshes it from the current plan and clears its saved payment method, so its auto-renewal is lost. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Gives no access, charges nothing and records no payment. Required: user_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_grant",
      +    "description": "Grants a user paid access to a plan without any payment: a subscription is created, or an unpaid one of the user to this plan (for a recurring plan also a paused or expired one) is reused and refreshed from the plan, and it is activated at once for one plan period (unlimited when the plan has no period). The user is moved to the plan group, and the user and the site owner are notified. No payment is recorded. Refused when the user has an active or trial subscription to any plan (unless the requested plan is a donation plan). Required: user_id, plan_id, confirm. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_trial",
      +    "description": "Starts a free trial of a recurring plan that has trial days: the subscription gets the trial status for trial_interval days without a card or any payment. The user group is not changed. Refused when the user already has this plan active, in trial or paused, or has an active or trial subscription to any other plan. Required: user_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_renew",
      +    "description": "Extends a subscription by one plan period without payment and without a payment record: from its end date, or from now when it has ended. The subscription becomes active and the user is moved to the plan group, even if it was unpaid, in trial or paused. A cancelled one is refused. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_change_plan",
      +    "description": "Moves a subscription to another plan at once: the new price, period and group (for an active or trial subscription) apply now, without extra payment, refund or price recalculation, and the end date stays. Auto-renewal is kept when the new plan is recurring at the same price, and later charges then follow the new plan period; otherwise it is turned off and the saved payment method is removed. PayPal subscriptions are refused. Required: subscription_id, plan_id. Optional: fields."
      +  },
      +  {
      +    "const": "subscription_pause",
      +    "description": "Pauses a subscription. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_resume",
      +    "description": "Resumes a paused subscription that has not ended: the user is moved back to the plan group, and automatic charges of a saved payment method are scheduled again, even if auto-renewal was turned off before the pause; the next charge may come within the hour when the period ends soon. Required: subscription_id."
      +  },
      +  {
      +    "const": "subscription_autorenew_disable",
      +    "description": "Turns off auto-renewal of a subscription. Required: subscription_id."
      +  },
      +  {
      +    "const": "payment_create",
      +    "description": "Records an unpaid payment of a subscription in the module accounts only: nothing is charged, no payment system is contacted, and the subscription does not change. amount is in minor currency units; the payment method must be enabled on the site. Required: subscription_id, amount. Optional: payment_method_id, currency, transaction_id, fields."
      +  },
      +  {
      +    "const": "payment_confirm",
      +    "description": "Marks an unpaid or awaiting payment as paid without any check that money was received; nothing is charged. The subscription is activated and extended by one plan period, the user is moved to the plan group, and the payment counts in paid totals (plan_stats). The amount is not checked against the plan price. When the subscription has a saved payment method, automatic charges are scheduled again, even if auto-renewal was turned off; the next charge may come within the hour when the plan period is short. Required: payment_id, confirm."
      +  }
      +]
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true only after the user approves this change. Required by: subscription_grant, payment_confirm, payment_refund."New value: +"Pass true only after the user approves this change. Required by: subscription_grant, payment_confirm."
  5. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true), the description discloses reuse of existing unpaid/paused/expired access periods, refusal conditions when the member already has active or trial access, PayPal-paid periods being refused on plan change, the notification side effect of subscription_grant, and that payment_create touches only the module's records. This is materially more than the annotations convey.

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?

Purpose and capability list are front-loaded, and the closing sentence is a compact scope exclusion. The middle is a long semicolon-chained clause that is dense but each segment carries distinct behavioral information, so little is pure filler.

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 26-parameter, multi-action mutation tool with no output schema, the description covers the behaviors an agent most needs: mutation side effects, refusals, confirmation, and the no-payment guarantee. Return values and the site_id targeting rule are left to the schema, which is a minor residual gap.

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 73% and the oneOf enum already documents per-action required/optional parameters, so much of the burden is carried structurally. The description still adds action-level meaning — what each action does to an existing access period and that confirm is an approval gate — which usefully supplements the schema rather than repeating it.

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 description names a specific actor (site owner), resource (site members' access, membership plans in the Subscriptions module) and enumerates the operations: creating/updating plans, granting access and trials, moving/pausing access periods, disabling auto-renewal, adding unpaid payment records. This clearly separates it from the read/delete siblings of the same module without relying on schema inspection.

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?

It frames the tool as an owner-only administration tool and sets explicit boundaries: nothing is offered to members, no payment is taken/refunded/confirmed, and no action turns auto-renewal on. These negative scopes effectively route the agent away from payment or member-facing flows, though no sibling tool is named as an alternative for read or delete operations.

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.