Skip to main content
Glama

start_payment

Destructive

Start payment for a stage. Needs credentials. Without sharedPaymentToken you receive the link to our payment page (form.redirect), which you may complete yourself with a card issued to you, or hand to the person you act for; on that page the card must be in the name on the invoice (for a company: its representative or the company name) and the cardholder address must be in the invoice country, and every order placed by an AI agent needs the cardholder to confirm with the bank (3-D Secure). With a delegated shared payment token the payment settles directly. The request must come from a verified robot: signed by its maker (Web Bot Auth) or from the published addresses of its maker. If the owner of the agent verified a DNS record with kya_challenge and kya_verify, the record is read again at payment and its limit applies; kya_status reads it. KYA does not grant buyer payment authority. On-chain payment is not accepted. Errors: OFFER_EXPIRED (409) for an advance after 30 days, FINAL_NOT_RELEASED (409) when the final payment is not open yet, OWNER_APPROVAL_REQUIRED (409) for a first order above EUR 1000 from a new e-mail or card until the merchant approves it, BUYER_BLOCKED (403), PAYMENTS_DISABLED (503).

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": {
      "order": "<order>",
      "accessToken": "<accessToken>"
    },
    "name": "start_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesThe order id returned by create_order.
stageNoadvance: the first payment, open after accept_offer. It is 50% of the total, or the whole total when the service is paid at once (paymentPlan single in the catalogue). final: the remaining 50%, open only after the advance is paid and the seller has released the work for final payment. Defaults to advance.
secretNoRequired unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The secret returned by register_agent.
clientIdNoRequired unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The clientId returned by register_agent.
accessTokenYesThe accessToken returned by create_order.
sharedPaymentTokenNoOnly for delegated payment without a hosted page: a Stripe shared payment token granted to the seller profile in manifest.payment.networkBusinessProfile. Leave it out to receive the link to our payment page instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / clientId / description
      Previous value: -"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The clientId returned by register_agent."New value: +"Required unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The clientId returned by register_agent."
    • changedInput schema / properties / secret / description
      Previous value: -"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The secret returned by register_agent."New value: +"Required unless you authenticate with the Authorization header (Bearer clientId:secret, or an OAuth access token issued for this server). The secret returned by register_agent."
  2. Changed1 schema field changed
    • changedInput schema / properties / sharedPaymentToken / description
      Previous value: -"Only for delegated payment without a hosted page: a Stripe shared payment token granted to the seller profile in manifest.payment.networkBusinessProfile. Leave it out to receive a hosted payment session instead."New value: +"Only for delegated payment without a hosted page: a Stripe shared payment token granted to the seller profile in manifest.payment.networkBusinessProfile. Leave it out to receive the link to our payment page instead."
  3. Changed6 schema fields changed
    • addedInput schema / properties / accessToken / description
      Added value: +"The accessToken returned by create_order."
    • changedInput schema / properties / clientId / description
      Previous value: -"Your client identifier, if not sent in the Authorization header."New value: +"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The clientId returned by register_agent."
    • addedInput schema / properties / order / description
      Added value: +"The order id returned by create_order."
    • changedInput schema / properties / secret / description
      Previous value: -"Your secret, if not sent in the Authorization header."New value: +"Required unless you authenticate with the Authorization header (Bearer <clientId>:<secret>, or an OAuth access token issued for this server). The secret returned by register_agent."
    • changedInput schema / properties / sharedPaymentToken / description
      Previous value: -"Optional. A Stripe shared payment token granted to the seller profile named in the manifest."New value: +"Only for delegated payment without a hosted page: a Stripe shared payment token granted to the seller profile in manifest.payment.networkBusinessProfile. Leave it out to receive a hosted payment session instead."
    • changedInput schema / properties / stage / description
      Previous value: -"Defaults to advance."New value: +"advance: the first payment, open after accept_offer. It is 50% of the total, or the whole total when the service is paid at once (paymentPlan single in the catalogue). final: the remaining 50%, open only after the advance is paid and the seller has released the work for final payment. Defaults to advance."
  4. First observed

TDQS

A4/5.0
Behavior5/5

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

Far beyond the annotations: discloses 3-D Secure cardholder confirmation, card-must-match-invoice-name and cardholder-address-in-invoice-country rules, the Web Bot Auth / published-address requirement for the requesting robot, KYA DNS record re-read with limit applied at payment, an explicit disclaimer that KYA grants no payment authority, and that on-chain payment is refused. It also enumerates concrete failure codes (OFFER_EXPIRED 409, FINAL_NOT_RELEASED 409, OWNER_APPROVAL_REQUIRED 409 above EUR 1000, BUYER_BLOCKED 403, PAYMENTS_DISABLED 503), which is exactly the behavioral disclosure a destructive, non-idempotent mutation needs.

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?

Substance density is high and the purpose is front-loaded, but the body is one sprawling multi-clause sentence chained with 'and ... and ...' that forces re-reading (the invoice-name/address/3-D Secure clause alone is ~70 words). Bullet points or short sentences for the card rules and the error list would preserve the content and cut parse cost.

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

Completeness4/5

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

Covers auth expectations, both execution paths, preconditions, policy gates, and a documented error taxonomy for a non-idempotent destructive call with no output schema. The one gap is that it never says what a successful delegated-token call returns (the hosted path at least names form.redirect), so the response shape for the settle-directly path is left implicit.

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 description coverage is 100% and the enum on stage, the credential fields, and the 'leave it out to get the payment page' behaviour are all already documented in the schema. The description adds real meaning only for the token path — that a delegated token makes the payment settle directly and that the hosted page imposes cardholder name/address constraints — which is modest added value over an already complete schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Start payment for a stage') that no sibling duplicates — none of kya_*, create_order, accept_offer or order_status initiate payment. The core purpose is unmistakable, though it immediately dissolves into a dense clause chain rather than stating scope in a clean lead.

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 flow selection: omit sharedPaymentToken to get a hosted-page link you complete yourself or hand off, or supply a delegated token to settle directly; and it names the prerequisite stages (open after accept_offer, final only after advance paid and work released). No explicit when-not-to-use or named alternative tool, but the branch conditions are actionable.

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