Skip to main content
Glama

paywall__purchase_add_on_units

Purchases addition subscription units. The systems use the available credit balances (if available) when no OTT voucher PIN is provided. When an OTT voucher is provided, the voucher is redeemed and the fup allocated to the customer. Any amount OTT voucher may be used. OTT Merchant Fees are 7%, these are deducted before the units are purchased. The total amount used in allocating FUP tokens = credit + (OTT amount - OTT Merchant Fee of 7%) This will work on any subscription including the freemium tier, meaning non-paying subscribers become pay-as-you-go customers Buying additional tokens does not extend your subscription period, it merely adds to your available tokens. @param customer_id: The database customer_id @param mobile: The customers mobile number, typically his session_id @param ott_pin: The OTT Voucher PIN, a 10-digit number @return: a json object, containing the results in the "values" object

Input Schema

NameRequiredDescriptionDefault
mobileNo
ott_pinNo
customer_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the 7% OTT merchant fee deducted before purchase, that credit balances are drawn first, that the tool works on the freemium tier turning non-payers into pay-as-you-go customers, and that buying tokens does not extend the subscription period. It omits any auth/permission or rate-limit context, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body rambles: the merchant-fee arithmetic is restated twice, 'Any amount OTT voucher may be used' is filler, and the legacy @param/@return formatting is noisy. A typo ('addition') and the redundant formula sentence dilute an otherwise information-dense block.

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 3-parameter mutation tool with no annotations and no output schema, the description is largely complete: it covers fees, credit-vs-voucher branching, side effects, and parameter meaning. It still lacks auth requirements and a clearer statement of the return payload beyond 'a json object containing the results in the values object'.

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 description coverage is 0%, so the description must compensate, and it does: customer_id is 'the database customer_id', mobile is 'typically his session_id', and ott_pin is 'a 10-digit number'. These add real meaning beyond the bare schema types, though it does not clarify the interaction between mobile and customer_id or their required/optional status.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ('Purchases additional subscription units'), so the core action is unambiguous. However, it does not distinguish this from close siblings like pay_subscription_with_credits, pay_subscription_with_ott_voucher, or customer_deduct_from_fup, leaving the agent to infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by explaining that credit balances are consumed when no OTT voucher is supplied and that a voucher is redeemed when provided, which hints at the two invocation modes. But it never states when to prefer this tool over the several subscription-payment and FUP siblings, and offers no explicit exclusions.

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