Skip to main content
Glama

finance

Subscription: Cancel subscription at period end

cancel_subscription
    Cancel the user's paid subscription. Premium access continues
    until the end of the current billing period.

    Args:
        answer: Optional. The user's own reply to "What would have made
            Zoninga worth it?" (up to 1000 characters), stored with the
            cancel when it succeeds. Empty when the user gave none.

    Returns ``{"success": True, ...}`` or ``{"error": ...}``.
    No-op for users on Free, family-shared, or trialing-without-card.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / answer
      Added value: +{
      +  "default": "",
      +  "title": "Answer",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations, it discloses the timing semantics (cancellation scheduled at period end, access retained), the success/error return contract, and the no-op account states. This meaningfully clarifies the destructiveHint=false annotation, which would otherwise look wrong for a cancellation tool.

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

Conciseness5/5

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

The behavior is front-loaded in the first two sentences, then args and return values follow in standard docstring blocks. Every sentence carries information; nothing is padding.

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 one-param mutation with no output schema, the description provides the effect, the no-op states, the parameter contract, and the response shape. The only gap is behavior when the subscription is already cancelled, which the idempotentHint=false annotation leaves ambiguous.

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 0%, so the description must carry the parameter alone, and it does: the `answer` arg is optional, capped at 1000 characters, tied to a specific prompt, stored only on successful cancellation, and defaults to empty. That is essentially complete semantics for the single param.

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 and resource ("Cancel the user's paid subscription") and immediately clarifies the deferred effect: premium access continues until the billing period ends. This distinguishes it from an immediate revocation, though it never names the sibling reactivate_subscription as the inverse operation.

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 supplies useful negative guidance: it is a no-op for Free, family-shared, or trialing-without-card users, which tells the agent when calling it is pointless. There is still no explicit when-to-use routing versus siblings such as reactivate_subscription or get_subscription_status.

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