Skip to main content
Glama

Sprout: AI Finance & Cash Flow

Mark a recurring charge

set_subscription_state
Idempotent

Use this only when the person tells you about a recurring charge: they cancelled it, it is not a subscription (for example rent or a loan), or they don't want alerts about it. Takes the recurrenceKey from get_recurring_charges or get_upcoming_charges. Cancelled, or not a subscription, leaves the charge out of recurring lists, upcoming charges and heads-ups; ignored keeps it listed without alerts; null clears the person's earlier choice. This does not cancel anything at the merchant.

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": {
      "recurrenceKey": "<recurrenceKey>",
      "state": "<state>"
    },
    "name": "set_subscription_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYescancelled, ignored, not_subscription, or null to clear.
recurrenceKeyYesrecurrenceKey from get_recurring_charges or get_upcoming_charges.

Output Schema

NameRequiredDescriptionDefault
stateYes
recurrenceKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=true), the description discloses the downstream effect of each state: exclusion from recurring lists, upcoming charges and heads-ups; ignored stays listed without alerts; null clears the prior choice. The closing line 'This does not cancel anything at the merchant' is a critical behavioral clarification an agent would otherwise likely get wrong.

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?

Front-loaded with the usage gate, then the key source, then state effects, then the merchant-cancellation caveat. Every clause carries distinct information with no restatement of the name or title.

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

Completeness5/5

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

For a two-parameter mutation with full schema coverage and an output schema, nothing an agent needs is missing: trigger condition, key provenance, per-state consequences, clearing behavior, and the boundary that it does not cancel at the merchant.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining what each enum value actually does downstream and by stating where recurrenceKey must come from. That converts opaque enum strings into actionable semantics.

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 verb (set/mark) and resource (a recurring charge) and immediately scopes it to recurring-charge facts the person reports. It clearly differs from sibling read tools like get_recurring_charges and get_upcoming_charges, which it names only as sources of the key.

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?

The opening clause gives an explicit when-to-use test with three enumerated conditions (cancelled, not a subscription, no alerts wanted) and an explicit restriction ('only when the person tells you'). It stops short of naming what to do in other cases or an alternative tool, so it is strong but not fully closed.

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.