Skip to main content
Glama

ELART parts

startPayment

Return a hosted payment_url on this shop for the human to pay (Stripe / agent pay page). Puts utm_source/utm_medium=agent on the order. Write tool.

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": {
      "cart_token": "<cart_token>"
    },
    "name": "startPayment"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_tokenYesCart token from createCart. Required on every later cart call.
agent_sourceNoOptional label stored with the order. Leave empty to keep the default.
utm_campaignNoOptional campaign tag stored on the order. Leave empty unless one was named.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. The HTTP status stays 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the write/non-idempotent nature is known; the description's 'Write tool' merely repeats that. It does add real behavioral value by disclosing a side effect (utm_source/utm_medium=agent stamped on the order) and the returned hosted URL, but it says nothing about what happens on repeated calls (duplicate payment sessions?), what state the cart must be in, or any auth/expiry constraints on the payment page.

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?

Three short sentences, front-loaded with the outcome and side effect. The trailing 'Write tool.' is mildly redundant with the readOnlyHint annotation and the schema's own duplicated description text, but nothing else is wasted.

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?

With only one required parameter and an output schema present, the definition covers the essentials for a non-idempotent mutation, and it does flag the utm side effect. However, for a payment-initiation step in a cart flow it omits sequencing/prerequisite context and re-invocation behavior, leaving a meaningful gap for an agent deciding whether it is safe to call now.

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 every parameter (cart_token, agent_source, utm_campaign) is documented in the schema itself, including the enum values and the 'leave empty' behavior. The description adds no parameter-level meaning beyond what the schema already provides, so the baseline 3 applies.

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?

States a specific verb and outcome — returns a hosted payment_url for the human to pay — and names the mechanism (Stripe / agent pay page). It is clearly a payment-initiation action rather than a payment-method listing or selection, but it never names the sibling tools (setPaymentMethod, listPaymentMethods) it is adjacent to, so differentiation is by inference.

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

Usage Guidelines3/5

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

The phrase 'for the human to pay' implies a handoff moment, hinting at when this is appropriate, but there is no explicit when-to-use/when-not guidance and no mention of prerequisites such as having a cart with items, an address, or a chosen shipping method set via setAddress / setShippingMethod first. No alternative (e.g., setPaymentMethod) is contrasted.

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