Skip to main content
Glama

Manage a Wiro agent's plan

manage_agent_billing
Destructive

Pay for, renew, change, or cancel a deployed agent's plan, with quotes and confirmation before any charge.

Instructions

Pay for, renew, change or cancel a deployed agent's plan. An agent has one of three plans, smallest first: Starter, Pro or Max. Each has a fixed monthly price that it also includes as AI usage each month, and every plan includes every skill. After the included usage, the agent uses the Wiro balance of its workspace. Charges come from the Wiro balance of the agent's workspace (the team wallet for a team agent); the connected project must belong to that same workspace. Every call without confirm: true only returns what will happen and the amount (for a move to a larger plan, the prorated amount Wiro works out, or the most it can charge when that is worked out only at the change). Show it to the user, get their approval, then repeat the call with confirm: true and, for a charge, confirm_charge_usd set to the quoted amount (for a move to a larger plan, quote.maxChargeUsd); if the price changed in between, nothing is charged and a new quote comes back. Never repeat a confirmed charge that failed or timed out without checking get_my_agent first. subscribe starts a plan for an agent without one; renew undoes a cancellation or renews an expired plan; change_plan moves to another plan: a larger plan starts now and charges the prorated difference for the rest of the period, a smaller plan starts with the next renewal and charges or refunds nothing, and asking for the plan the agent is on undoes a move set for the next renewal; cancel stops renewals with no refund. Extra credit packs are retired: buy_credits only says so and charges nothing, and funds are added to the balance on wiro.ai. Plans renew every 30 days until cancelled. Renewals and plan changes leave a running agent running. Agent plans are paid only from the Wiro balance: no card payment is taken, and a quote refused because the balance is short says how much to add on wiro.ai, with nothing charged. Every plan payment, the automatic renewal included, counts the balance's deposits, store revenue and coupon credit that is not limited to certain models; coupon credit limited to models pays no plan. A card plan from before plans were paid from the balance is paid by card through its period, then moves to the balance and renews from it (one whose period ends within 7 days after Wiro's email announcing the move renews once more by card first); its plan changes are paid from the balance, cancel ends it with its period instead, and renew undoes that, or brings back a card plan that ended, from the balance. A card plan whose last payment did not go through has not ended and takes no new plan until it ends. On a team agent only a team admin, the organization's owner or the person who deployed the agent can pay for it or change its plan; other members are refused and nothing is charged.

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": {
      "agent_guid": "<agent_guid>",
      "action": "<action>"
    },
    "name": "manage_agent_billing"
  }
}

Input Schema

NameRequiredDescriptionDefault
packNoRetired with buy_credits: extra credit packs are no longer sold. Ignored.
planNosubscribe: the plan to pay for (default: the agent's current plan, else starter). change_plan: the plan to move to; leave it out to get the plans with their prices.
actionYessubscribe, change_plan, cancel or renew. buy_credits is retired: it says so and charges nothing.
confirmNofalse returns only the quote. true performs the action. Set it only after the user approved it.
agent_guidYesThe deployed agent's guid, from list_my_agents or deploy_agent.
request_idNoRetired with buy_credits. Ignored.
confirm_charge_usdNoWith confirm: true, the amount the user approved, from the quote's nextAction (quote.chargeNowUsd, or quote.maxChargeUsd for a move to a larger plan). Required for every action that charges: subscribe, change_plan to a larger plan and renewing an expired plan. If a fresh quote no longer matches it, nothing is charged and the new quote is returned. For a move to a larger plan it is the most the user agreed to pay now.

Output Schema

NameRequiredDescriptionDefault
agentYes
quoteNo
actionYes
resultNo
messageYes
outcomeYes
agentGuidYes
nextActionNo
dashboardUrlYes
priceChangedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changedv2.0.0
    • changedInput schema / properties / action / description
      Previous value: -"subscribe, change_plan, cancel, renew or buy_credits."New value: +"subscribe, change_plan, cancel or renew. buy_credits is retired: it says so and charges nothing."
    • changedInput schema / properties / confirm_charge_usd / description
      Previous value: -"With confirm: true, the amount the user approved, from the quote's nextAction (quote.chargeNowUsd, or quote.maxChargeUsd for a move to a larger plan). Required for every action that charges: subscribe, change_plan to a larger plan, buy_credits and renewing an expired plan. If a fresh quote no longer matches it, nothing is charged and the new quote is returned. For a move to a larger plan it is the most the user agreed to pay now."New value: +"With confirm: true, the amount the user approved, from the quote's nextAction (quote.chargeNowUsd, or quote.maxChargeUsd for a move to a larger plan). Required for every action that charges: subscribe, change_plan to a larger plan and renewing an expired plan. If a fresh quote no longer matches it, nothing is charged and the new quote is returned. For a move to a larger plan it is the most the user agreed to pay now."
    • changedInput schema / properties / pack / description
      Previous value: -"buy_credits only: the credit pack to buy. Leave it out to get the packs with their credits and prices."New value: +"Retired with buy_credits: extra credit packs are no longer sold. Ignored."
    • changedInput schema / properties / request_id / description
      Previous value: -"buy_credits only: the id returned by the quote. Repeating a purchase with the same id never charges twice. Every new purchase needs a new quote; an id whose purchase already completed buys nothing."New value: +"Retired with buy_credits. Ignored."
    • removedOutput schema / properties / agent / properties / credits
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "extra": {
      -      "type": "number"
      -    },
      -    "monthly": {
      -      "description": "The monthly credits this period grants. A plan change inside a period moves it for the time left, so it can differ from renewal.",
      -      "type": "number"
      -    },
      -    "period": {
      -      "type": "string"
      -    },
      -    "remaining": {
      -      "type": "number"
      -    },
      -    "renewal": {
      -      "description": "The monthly credits each renewal grants.",
      -      "type": "number"
      -    },
      -    "used": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "monthly",
      -    "extra",
      -    "used",
      -    "remaining"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / agent / properties / spend
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "What the agent cost this calendar month. Left out when Wiro does not say.",
      +  "properties": {
      +    "aiUsageBalanceUsd": {
      +      "description": "AI usage paid from the balance.",
      +      "type": "number"
      +    },
      +    "aiUsagePlanUsd": {
      +      "description": "AI usage the plan included, already paid with the plan and not in totalUsd.",
      +      "type": "number"
      +    },
      +    "fundsAddedUsd": {
      +      "description": "Funds added to the balance from this agent's page. Not spending, so not in totalUsd.",
      +      "type": "number"
      +    },
      +    "modelRunsUsd": {
      +      "type": "number"
      +    },
      +    "month": {
      +      "description": "The calendar month (UTC), such as 2026-11.",
      +      "type": "string"
      +    },
      +    "planUsd": {
      +      "type": "number"
      +    },
      +    "totalUsd": {
      +      "description": "What the agent cost this month: its plan, its AI usage paid from the balance and the model runs it started.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "totalUsd",
      +    "planUsd",
      +    "aiUsageBalanceUsd",
      +    "aiUsagePlanUsd",
      +    "modelRunsUsd",
      +    "fundsAddedUsd"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / agent / properties / subscription / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "amountUsd": {
      -        "description": "What the plan costs every 30 days. For a plan that has ended, what a new period costs: the price of its plan today.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "atPeriodEnd": {
      -        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      -        "enum": [
      -          "renews",
      -          "ends",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "billing": {
      -        "enum": [
      -          "wallet",
      -          "card"
      -        ],
      -        "type": "string"
      -      },
      -      "cancelAtPeriodEnd": {
      -        "type": "boolean"
      -      },
      -      "daysRemaining": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "periodEndsAt": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "switchingToWallet": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "billing",
      -      "switchingToWallet",
      -      "amountUsd",
      -      "daysRemaining",
      -      "cancelAtPeriodEnd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "description": "What the plan costs every 30 days. For a plan that has ended, what a new period costs: the price of its plan today.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "atPeriodEnd": {
      +        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan from before agent plans were paid from the Wiro balance only.",
      +        "enum": [
      +          "renews",
      +          "ends",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "billing": {
      +        "enum": [
      +          "wallet",
      +          "card"
      +        ],
      +        "type": "string"
      +      },
      +      "cancelAtPeriodEnd": {
      +        "type": "boolean"
      +      },
      +      "daysRemaining": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "periodEndsAt": {
      +        "type": "string"
      +      },
      +      "renewsOrEndsAt": {
      +        "description": "For an active plan, when it renews, or ends when atPeriodEnd is ends, as Wiro shows it: periodEndsAt, or the time of the answer once that has passed and the renewal is due (while the balance cannot pay a wallet plan's renewal, Wiro tries again for up to a day), never a moment gone by. Absent when Wiro does not send it.",
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "switchingToWallet": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "billing",
      +      "switchingToWallet",
      +      "amountUsd",
      +      "daysRemaining",
      +      "cancelAtPeriodEnd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / agent / properties / usage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The agent's AI usage this period in USD: what its plan includes, used and left, then the Wiro balance that pays after it.",
      +  "properties": {
      +    "balanceUsd": {
      +      "description": "What the agent's AI usage can draw on now in the Wiro balance that pays after the included usage (the personal wallet, or the team wallet for a team agent): its deposits, store revenue and coupon credit that is not limited to certain models. A coupon limited to certain models never pays an agent's AI usage, so this can read less than get_account shows.",
      +      "type": "number"
      +    },
      +    "extraUsd": {
      +      "description": "Only in an answer from an older Wiro release: usage bought earlier for this agent that is left.",
      +      "type": "number"
      +    },
      +    "fromBalanceUsd": {
      +      "description": "The AI usage paid from the workspace balance this period, after the included usage ran out.",
      +      "type": "number"
      +    },
      +    "includedUsd": {
      +      "description": "The AI usage the plan includes this period, in USD. A plan change inside a period moves it for the time left, so it can differ from renewalUsd.",
      +      "type": "number"
      +    },
      +    "leftUsd": {
      +      "description": "The included AI usage left this period.",
      +      "type": "number"
      +    },
      +    "legacy": {
      +      "description": "true when Wiro answered without these amounts, so they were worked out from its older fields.",
      +      "type": "boolean"
      +    },
      +    "minBalanceUsd": {
      +      "description": "Without included usage left, a new turn needs balanceUsd to be at least this much.",
      +      "type": "number"
      +    },
      +    "paused": {
      +      "description": "Whether the agent takes no new turns now: it has no active plan, its included usage is used up and the balance is under minBalanceUsd, or a spend limit is reached. A turn that is running finishes.",
      +      "type": "boolean"
      +    },
      +    "pausedReason": {
      +      "description": "Why it is paused: plan (it has no active plan; an agent runs only with one, whatever the balance holds), balance (the included usage is used up and the balance is short) or spendlimit (a spend limit is reached).",
      +      "enum": [
      +        "plan",
      +        "balance",
      +        "spendlimit"
      +      ],
      +      "type": "string"
      +    },
      +    "period": {
      +      "description": "A month tag (YYYY-MM, UTC), such as 2026-11: the month the current plan period started in, when its renewal ran. Not the period itself, which runs from one renewal to the next (resetsAt), so the amounts are not a calendar month's.",
      +      "type": "string"
      +    },
      +    "planBalanceUsd": {
      +      "description": "What the wallet that pays for the agent can pay a plan with: deposits, store revenue and coupons that can pay a plan; a coupon limited to models does not count. Set where the agent's full detail is read, such as get_my_agent; list_my_agents leaves it out.",
      +      "type": "number"
      +    },
      +    "renewalDue": {
      +      "description": "true while the plan's renewal is due: a wallet plan whose period has ended and that Wiro has not renewed yet, so resetsAt reads the time of the answer. Once the balance can pay the renewal, it renews within 15 minutes; Wiro tries again for up to a day after the period end, and after that day the plan ends. Absent when Wiro does not send it.",
      +      "type": "boolean"
      +    },
      +    "renewalUsd": {
      +      "description": "The AI usage each renewal includes.",
      +      "type": "number"
      +    },
      +    "resetsAt": {
      +      "description": "When the included AI usage starts again: the plan's next renewal.",
      +      "type": "string"
      +    },
      +    "usedUsd": {
      +      "description": "The included AI usage used this period.",
      +      "type": "number"
      +    },
      +    "wallet": {
      +      "description": "Which Wiro balance pays after the included usage.",
      +      "enum": [
      +        "personal",
      +        "team"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "includedUsd",
      +    "usedUsd",
      +    "leftUsd",
      +    "paused"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / agent / required
      Previous value: -[
      -  "guid",
      -  "title",
      -  "status",
      -  "statusLabel",
      -  "setupRequired",
      -  "workspace",
      -  "template",
      -  "monthlyPriceUsd",
      -  "credits",
      -  "subscription",
      -  "skills"
      -]New value: +[
      +  "guid",
      +  "title",
      +  "status",
      +  "statusLabel",
      +  "setupRequired",
      +  "workspace",
      +  "template",
      +  "monthlyPriceUsd",
      +  "usage",
      +  "subscription",
      +  "skills"
      +]
    • removedOutput schema / properties / quote / properties / creditsAdded
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / quote / properties / creditsNow
      Removed value: -{
      -  "description": "change_plan to a larger plan: the credits this period gains now. monthlyCredits is what every renewal gives.",
      -  "type": "number"
      -}
    • addedOutput schema / properties / quote / properties / includedUsageNowUsd
      Added value: +{
      +  "description": "change_plan to a larger plan: the included AI usage this period gains now, in USD. includedUsageUsd is what every renewal includes.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / quote / properties / includedUsageUsd
      Added value: +{
      +  "description": "The AI usage the plan includes each month, in USD, from every renewal.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / quote / properties / monthlyCredits
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / quote / properties / pack
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / properties / quote / properties / startsAt / description
      Previous value: -"change_plan to a smaller plan: when the period ends; the new plan starts with the renewal after it."New value: +"change_plan to a smaller plan: when the period ends, as Wiro shows it (never a moment gone by); the new plan starts with the renewal after it."
    • removedOutput schema / properties / requestId
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / result / properties / creditsAdded
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / result / properties / creditsNow
      Removed value: -{
      -  "description": "change_plan to a larger plan: the credits this period gained with it. monthlyCredits is what every renewal gives.",
      -  "type": "number"
      -}
    • addedOutput schema / properties / result / properties / includedUsageNowUsd
      Added value: +{
      +  "description": "change_plan to a larger plan: the included AI usage this period gained with it, in USD.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / result / properties / includedUsageUsd
      Added value: +{
      +  "description": "The AI usage the plan includes each month, in USD, from every renewal.",
      +  "type": "number"
      +}
    • removedOutput schema / properties / result / properties / monthlyCredits
      Removed value: -{
      -  "type": "number"
      -}
  2. Changed22 schema fields changedv1.6.1
    • changedInput schema / properties / action / description
      Previous value: -"subscribe, upgrade_to_pro, cancel, renew or buy_credits."New value: +"subscribe, change_plan, cancel, renew or buy_credits."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "subscribe",
      -  "upgrade_to_pro",
      -  "cancel",
      -  "renew",
      -  "buy_credits"
      -]New value: +[
      +  "subscribe",
      +  "change_plan",
      +  "cancel",
      +  "renew",
      +  "buy_credits"
      +]
    • changedInput schema / properties / confirm_charge_usd / description
      Previous value: -"With confirm: true, the amount the user approved, from the quote's nextAction (quote.chargeNowUsd, or quote.maxChargeUsd for upgrade_to_pro). Required for every action that charges: subscribe, upgrade_to_pro, buy_credits and renewing an expired plan. If a fresh quote no longer matches it, nothing is charged and the new quote is returned. For upgrade_to_pro it is the most the user agreed to pay now."New value: +"With confirm: true, the amount the user approved, from the quote's nextAction (quote.chargeNowUsd, or quote.maxChargeUsd for a move to a larger plan). Required for every action that charges: subscribe, change_plan to a larger plan, buy_credits and renewing an expired plan. If a fresh quote no longer matches it, nothing is charged and the new quote is returned. For a move to a larger plan it is the most the user agreed to pay now."
    • addedInput schema / properties / plan
      Added value: +{
      +  "description": "subscribe: the plan to pay for (default: the agent's current plan, else starter). change_plan: the plan to move to; leave it out to get the plans with their prices.",
      +  "enum": [
      +    "starter",
      +    "pro",
      +    "max"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / tier
      Removed value: -{
      -  "description": "subscribe only: the tier to pay for (default: the agent's current tier).",
      -  "enum": [
      -    "starter",
      -    "pro"
      -  ],
      -  "type": "string"
      -}
    • changedOutput schema / properties / action / enum
      Previous value: -[
      -  "subscribe",
      -  "upgrade_to_pro",
      -  "cancel",
      -  "renew",
      -  "buy_credits"
      -]New value: +[
      +  "subscribe",
      +  "change_plan",
      +  "cancel",
      +  "renew",
      +  "buy_credits"
      +]
    • addedOutput schema / properties / agent / properties / nextPlan
      Added value: +{
      +  "description": "The plan the agent moves to at its next renewal, when a move is set: another plan, or its own plan at today's price. null when none is set; left out when Wiro does not say.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / agent / properties / subscription / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "amountUsd": {
      -        "description": "What the plan costs every 30 days. For a plan that has ended, the agent's monthly price, which is what a renew charges.",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "atPeriodEnd": {
      -        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      -        "enum": [
      -          "renews",
      -          "ends",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "billing": {
      -        "enum": [
      -          "wallet",
      -          "card"
      -        ],
      -        "type": "string"
      -      },
      -      "cancelAtPeriodEnd": {
      -        "type": "boolean"
      -      },
      -      "daysRemaining": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "periodEndsAt": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "switchingToWallet": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "billing",
      -      "switchingToWallet",
      -      "amountUsd",
      -      "daysRemaining",
      -      "cancelAtPeriodEnd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "description": "What the plan costs every 30 days. For a plan that has ended, what a new period costs: the price of its plan today.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "atPeriodEnd": {
      +        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      +        "enum": [
      +          "renews",
      +          "ends",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "billing": {
      +        "enum": [
      +          "wallet",
      +          "card"
      +        ],
      +        "type": "string"
      +      },
      +      "cancelAtPeriodEnd": {
      +        "type": "boolean"
      +      },
      +      "daysRemaining": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "periodEndsAt": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "switchingToWallet": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "billing",
      +      "switchingToWallet",
      +      "amountUsd",
      +      "daysRemaining",
      +      "cancelAtPeriodEnd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / agent / properties / tier / description
      Added value: +"The agent's plan: starter, pro or max."
    • addedOutput schema / properties / quote / properties / change
      Added value: +{
      +  "description": "change_plan: upgrade (a larger plan, now), downgrade (a smaller plan, from the next renewal) or undo_downgrade (keep the plan, and undo the move set for the next renewal).",
      +  "enum": [
      +    "upgrade",
      +    "downgrade",
      +    "undo_downgrade"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / quote / properties / creditsNow / description
      Previous value: -"upgrade_to_pro: the credits this period gains now, below 0 when it loses them. monthlyCredits is what every renewal gives."New value: +"change_plan to a larger plan: the credits this period gains now. monthlyCredits is what every renewal gives."
    • addedOutput schema / properties / quote / properties / plan
      Added value: +{
      +  "description": "subscribe and change_plan: the plan this quote is for. renew: the plan it renews on.",
      +  "enum": [
      +    "starter",
      +    "pro",
      +    "max"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / quote / properties / startsAt
      Added value: +{
      +  "description": "change_plan to a smaller plan: when the period ends; the new plan starts with the renewal after it.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / quote / properties / tier
      Removed value: -{
      -  "enum": [
      -    "starter",
      -    "pro"
      -  ],
      -  "type": "string"
      -}
    • addedOutput schema / properties / result / properties / change
      Added value: +{
      +  "enum": [
      +    "upgrade",
      +    "downgrade",
      +    "undo_downgrade"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / result / properties / creditsNow / description
      Previous value: -"upgrade_to_pro: the credits this period gained with it, below 0 when it lost them. monthlyCredits is what every renewal gives."New value: +"change_plan to a larger plan: the credits this period gained with it. monthlyCredits is what every renewal gives."
    • addedOutput schema / properties / result / properties / nextPlan
      Added value: +{
      +  "description": "change_plan: the plan set for the next renewal, or null when none is.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / result / properties / plan
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / result / properties / previousPlan
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / result / properties / previousTier
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / result / properties / startsAt
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / result / properties / tier
      Removed value: -{
      -  "type": "string"
      -}
  3. Changed2 schema fields changedv1.5.3
    • changedOutput schema / properties / agent / properties / status / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  4. Changed7 schema fields changedv1.5.1
    • addedOutput schema / properties / agent / properties / credits / properties / monthly / description
      Added value: +"The monthly credits this period grants. A plan change inside a period moves it for the time left, so it can differ from renewal."
    • addedOutput schema / properties / agent / properties / credits / properties / renewal
      Added value: +{
      +  "description": "The monthly credits each renewal grants.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / agent / properties / lastActivityAt
      Added value: +{
      +  "description": "When the agent's newest message was written, on any channel, scheduled runs included. Left out when it has none.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / agent / properties / setupRequired / description
      Added value: +"Whether the agent waits for setup. list_my_agents goes by the status (6). get_my_agent also checks each required credential and names what is missing."
    • changedOutput schema / properties / agent / properties / subscription / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "amountUsd": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "atPeriodEnd": {
      -        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      -        "enum": [
      -          "renews",
      -          "ends",
      -          "unknown"
      -        ],
      -        "type": "string"
      -      },
      -      "billing": {
      -        "enum": [
      -          "wallet",
      -          "card"
      -        ],
      -        "type": "string"
      -      },
      -      "cancelAtPeriodEnd": {
      -        "type": "boolean"
      -      },
      -      "daysRemaining": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "periodEndsAt": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "type": "string"
      -      },
      -      "switchingToWallet": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "billing",
      -      "switchingToWallet",
      -      "amountUsd",
      -      "daysRemaining",
      -      "cancelAtPeriodEnd"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "amountUsd": {
      +        "description": "What the plan costs every 30 days. For a plan that has ended, the agent's monthly price, which is what a renew charges.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "atPeriodEnd": {
      +        "description": "For an active plan, what happens at periodEndsAt: it renews, it ends, or unknown for a card plan whose renewal is managed in the Wiro dashboard.",
      +        "enum": [
      +          "renews",
      +          "ends",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "billing": {
      +        "enum": [
      +          "wallet",
      +          "card"
      +        ],
      +        "type": "string"
      +      },
      +      "cancelAtPeriodEnd": {
      +        "type": "boolean"
      +      },
      +      "daysRemaining": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "periodEndsAt": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      },
      +      "switchingToWallet": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "billing",
      +      "switchingToWallet",
      +      "amountUsd",
      +      "daysRemaining",
      +      "cancelAtPeriodEnd"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / quote / properties / creditsNow
      Added value: +{
      +  "description": "upgrade_to_pro: the credits this period gains now, below 0 when it loses them. monthlyCredits is what every renewal gives.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / result / properties / creditsNow
      Added value: +{
      +  "description": "upgrade_to_pro: the credits this period gained with it, below 0 when it lost them. monthlyCredits is what every renewal gives.",
      +  "type": "number"
      +}
  5. Addedv1.4.1

TDQS

A4.7/5.0
Behavior5/5

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

Goes far beyond the destructive/openWorld annotations: it discloses that charges come only from the workspace Wiro balance (no card), that cancel gives no refund, that downgrades take effect at next renewal with no charge or refund, that a short balance produces a quote naming the amount to add, and that a price drift voids the charge and returns a new quote. It also spells out team-admin authorization rules and the legacy card-plan transition, which annotations cannot convey.

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

Conciseness3/5

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

Purpose and the confirm workflow are front-loaded, which is good, but the body is a single ~450-word wall covering proration, coupons, legacy card plans, and team permissions with no paragraph breaks or lists. Nearly every sentence carries policy, yet the density makes it hard to scan and pushes key warnings (retry safety, authorization) deep into the block.

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 destructive, money-moving tool with seven parameters, the description leaves almost nothing unanswered: payment source, proration rules, refund behavior, quote invalidation, authorization, and failure-retry guidance are all covered. With an output schema present, it correctly avoids describing return payloads and focuses on behavior.

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 baseline is 3, but the description adds real meaning: it explains the quote/confirm handshake that gives confirm and confirm_charge_usd their purpose, and maps the approved amount to quote.chargeNowUsd or quote.maxChargeUsd for upgrades. It does not further clarify pack or request_id beyond calling them retired, but the schema already handles those.

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 set of verbs and a specific resource: 'Pay for, renew, change or cancel a deployed agent's plan.' It also defines the plan ladder (Starter, Pro, Max) and what each plan includes, so an agent knows exactly which domain this tool owns versus siblings like update_agent or get_my_agent.

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?

Explicitly prescribes the two-step pattern: call without confirm to get a quote, show it to the user, then repeat with confirm:true and confirm_charge_usd. It also states when to use each action (subscribe for an agent without a plan, renew for cancellations/expired plans, change_plan for upgrades/downgrades), and routes to get_my_agent before retrying a failed confirmed charge.

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