Skip to main content
Glama

Billing: a personal upgrade discount (free accounts, 48 hours, never under $50 per client)

upgrade_discount_offer

Make a free agency a personal discount on a paid plan, to help them decide to upgrade. Use your judgement: when they're close but hesitating (price, 'maybe later', hit the free limit, want Autopilot), not as an opener and not to someone already paying. You choose the plan, the percent (it can't take the price under $50 per client a month; the result says the most each plan allows if you ask for more) and how long the discount lasts (months, or leave it out for as long as they stay). It is single-use, made for them, and expires in 48 hours; the upgrade link applies it at checkout. Say it plainly and honestly: what they get, the price per client after the discount, how long it lasts, and that it closes in 48 hours. No invented urgency or reasons. While the Black Friday sale is on, this gives them the Black Friday code (40% off the first 12 months) instead of a personal one, unless you ask for more than 40% off. If they asked to cancel, disconnect or delete anything, help them do that first (account_links has the links) and never offer instead of it; offer only if they then say the price is why, and only once.

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": {
      "plan": "<plan>",
      "percent_off": "<percent_off>",
      "why": "<why>"
    },
    "name": "upgrade_discount_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyYesOne line on why this person needs the push (kept with the offer for the agency's records; not shown to them).
planYesThe plan the discount is for (it works on that plan only). Premium includes Autopilot.
monthsNoHow many months the discounted price lasts (1 to 24). Leave out for as long as they stay on the plan.
percent_offYesWhole percent off, at least 5. The $50-per-client floor sets the most: about 39% on Standard, 59% on Premium.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) by disclosing single-use, person-specific issuance, a 48-hour expiry, that the link applies the discount at checkout, the $50/client floor, and a Black Friday code override with its 40% threshold. The only notable omission is whether an issued offer can be revoked or reissued after expiry.

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-loaded with purpose, then decision criteria, then mechanics, then messaging rules — a sensible order. The middle sentence stacking plan, percent, floor and duration is dense and slightly run-on, and the floor figures partly duplicate the schema, but almost every clause carries operational value.

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 mutation tool with no output schema, the definition covers issuance semantics, expiry, pricing floor, response behavior on over-asking, and the required user-facing messaging. An agent has everything needed to decide, call it correctly, and communicate the result.

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 100%, so the schema already documents plan, percent_off, months and why. The description still adds behavior the schema cannot express: that the response reports the maximum each plan allows when you ask for too much, that omitting months means the discount lasts as long as they stay, and that the offer is tied to the chosen plan only.

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?

Opens with a specific verb and resource: making a free agency a personal discount on a paid plan, with the goal (nudge them to upgrade) stated up front. The scope is narrowed by 'free agency' and 'personal', so an agent can distinguish this from a general agreement offer without opening the schema.

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

Usage Guidelines5/5

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

Explicit when-to-use triggers (price hesitation, 'maybe later', hit the free limit, wants Autopilot) and explicit when-not (not as an opener, not for someone already paying). It also routes the agent to the alternative path: handle cancel/disconnect/delete requests first via account_links, and only re-offer once if price is then cited.

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.