Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

adjust_reward_points

Adjust a card's reward point balance to apply redemptions, bonuses, referrals, promos, expirations, or corrections and return the updated total.

Instructions

Adjusts the point balance for a card. Use for redemptions, bonuses, or corrections.

Args:
    card_name: The card to adjust.
    points: Points to add (+ve) or remove (-ve). Use negative for redemptions.
    reason: Description (e.g., "Redeemed for Amazon voucher", "Welcome bonus").
    adjustment_type: One of: redemption, signup_bonus, referral, promo, correction, expiration.
    reference: Optional reference (order ID, promo code).

Returns:
    Dictionary with adjustment details and new balance.

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": {
      "card_name": "<card_name>",
      "points": "<points>",
      "reason": "<reason>"
    },
    "name": "adjust_reward_points"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsYes
reasonYes
card_nameYes
referenceNo
adjustment_typeNocorrection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations present, the description carries the full disclosure burden, and it does cover the essentials: this is a mutation, points may be positive or negative, and the return includes the new balance. It omits permission requirements, whether a negative adjustment can push a balance below zero, idempotency, and whether adjustments are reversible — meaningful gaps for a balance-mutating operation.

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?

Front-loads the purpose in one sentence, then uses a compact Args block and a one-line Returns note. Slight redundancy between 'Points to add (+ve) or remove (-ve)' and 'Use negative for redemptions' costs a point but nothing is buried or bloated.

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 five-parameter mutation tool with no annotations and no output schema, the definition supplies purpose, all parameter meanings, enum values, and the return shape. It still leaves out operational context an agent would want — required permissions, whether balances can go negative, and error behavior — which is a real gap for a write operation.

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: all five parameters are documented, the sign convention for points is explicit, reason is given examples, reference is explained with sample values, and adjustment_type enumerates the six allowed values that the schema itself does not constrain. It does not restate the default of 'correction' or any length/format limits, so it is strong rather than complete.

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?

States a specific verb and resource ('Adjusts the point balance for a card') and immediately scopes the use cases to redemptions, bonuses, and corrections. That scope separates it cleanly from read-only siblings like get_points_history and get_reward_balance without opening any schema.

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?

Gives clear when-to-use framing ('Use for redemptions, bonuses, or corrections') plus a sign convention telling the agent which direction to move points. It stops short of naming an alternative tool or stating when this should not be used, so the routing is implied rather than exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.