Skip to main content
Glama

paywall__pay_subscription_with_credits

Accepts a subscription payment from the customers prepaid credit. These credits could have arrived from an over-payment or calling netfluid_wallet_transfer tool. The invoice_id is the result of a call to customer_log_subscription tool @param customer_id: The database customer_id @param invoice_id: The database invoice_id @return: a json object, containing the results in the "values" object

Input Schema

NameRequiredDescriptionDefault
invoice_idYes
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

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that this is a payment (a mutation), explains the credit source, and sketches the return as a JSON object with a 'values' field. It omits auth requirements, whether the operation is idempotent/reversible, and error conditions.

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?

The core action is front-loaded in the first sentence, and the provenance notes follow economically. The @param/@return lines are conventional and short, with only minor redundancy against the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description covers the fund source and the invoice_id prerequisite but leaves holes around authorization, failure modes, and side effects. The loose 'values' object mention only partially covers return expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It supplies @param notes for both arguments and usefully reveals that invoice_id is produced by customer_log_subscription, but the remaining text ('the database customer_id/invoice_id') mostly restates the schema types without adding format or validation meaning.

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?

States a specific verb (accepts a payment) and resource (subscription payment) plus the funding source (customer's prepaid credit), which distinguishes it from the sibling pay_subscription_with_wallet and pay_subscription_with_ott_voucher. It doesn't name those alternatives explicitly, so full differentiation relies on inference.

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?

Provides useful provenance context: credits may come from an over-payment or netfluid_wallet_transfer, and invoice_id comes from customer_log_subscription. However, it never states when to choose this tool over the wallet/ott-voucher payment siblings, so usage is only implied.

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