Skip to main content
Glama

asksteps: get the link where the user books a plan

asksteps_start_checkout
Read-onlyIdempotent

Returns the link where the user books a plan themselves, with that plan preselected, and the exact net price. Requires "billing:write". NOTHING is bought by this call and nothing can be: the customer enters their payment details with the payment provider and gives the statutory acknowledgement personally — asksteps never sees card data, and that declaration is not one a machine can make for someone. Use this for a FIRST purchase. To move an existing paid account between plans, use asksteps_change_plan instead.

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_code": "<plan_code>"
    },
    "name": "asksteps_start_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
intervalNo"month" (default) or "year".
plan_codeYesPlan code: "starter", "professional" or "business". Call asksteps_get_capabilities for the catalogue.

Output Schema

NameRequiredDescriptionDefault
urlNoLink where the user completes the purchase themselves. Give it to them verbatim.
noteYesOne sentence for the user. On "confirmation_required" it names the plan, the price and what changes — read it out before asking.
statusYesOutcome. One of: "changed" (the plan is now different), "confirmation_required" (read the note to the user and call again with confirm = true if they agree), "checkout_required" (give them the url; only they can enter payment details), "not_allowed" (outside the mandate — the note says which limit), "rate_limited" (too many plan changes in the last minute — wait a minute; nothing was charged), "not_connected", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do.
intervalNoThe billing interval this price refers to: "month" or "year".
planCodeNoThe plan code after the change, when something changed.
priceCentsNoThe net price per interval in cents, so you can state it exactly instead of estimating.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."New value: +"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"rate_limited\" (too many plan changes in the last minute — wait a minute; nothing was charged), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."
  2. Changed1 schema field changed
    • changedOutput schema / properties / status / description
      Previous value: -"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"owner_required\" (only the account owner may do this), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."New value: +"Outcome. One of: \"changed\" (the plan is now different), \"confirmation_required\" (read the note to the user and call again with confirm = true if they agree), \"checkout_required\" (give them the url; only they can enter payment details), \"not_allowed\" (outside the mandate — the note says which limit), \"not_connected\", \"error\". Authorisation can also refuse before the tool runs: \"plan_required\" (the account's plan does not include agent access), \"not_enabled\" (the account owner has not switched agent access on), \"permission_denied\" (the connected user's role lacks the permission; the note names it), \"mandate_required\" (the owner has not granted a mandate for this). The note then says what the user has to do."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by naming the required "billing:write" scope and by spelling out the side-effect boundary: nothing is purchased, card data never reaches asksteps, and the statutory acknowledgement must be made by the person. That is exactly the context an agent needs before telling a user to follow the link, and it is consistent with readOnlyHint=true and idempotentHint=true (the write scope is an authorization nuance, not a mutation claim).

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-loads the return value first, then the purchase/consent constraint, then the routing rule. The long middle sentence is dense with non-redundant constraints rather than filler, and no sentence restates 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?

An output schema exists, so return-shape detail is unnecessary; the description covers the remaining gaps for a two-parameter tool: authorization scope, no-side-effect guarantee, and the first-purchase vs plan-change fork. Nothing an agent needs before invoking it is missing.

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

Parameters3/5

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

Schema coverage is 100%, so plan_code and interval are already documented in the schema, including the catalogue pointer to asksteps_get_capabilities. The description adds only the useful implication that the chosen plan_code drives preselection and pricing; it says nothing extra about the interval parameter. Baseline 3 applies when the schema carries the parameter burden.

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 concrete verb and resource ("Returns the link where the user books a plan") plus the two facts the agent needs to relay: the plan is preselected and the net price is exact. It is clearly distinguishable from asksteps_change_plan and the read-only catalogue tools in the sibling list.

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?

Gives an explicit when-to-use ("Use this for a FIRST purchase") and an explicit when-not with a named alternative ("To move an existing paid account between plans, use asksteps_change_plan instead"). The routing decision is fully resolved in the description.

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