Skip to main content
Glama

workspaces_domain_purchases_retry_payment_create

Reset a FAILED purchase back to PENDING_PAYMENT with a new PayPal order.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/retry-payment/

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": {
      "sqid": "<sqid>"
    },
    "name": "workspaces_domain_purchases_retry_payment_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

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?

With no annotations, the description carries the full burden, and it does disclose the key side effect: a new PayPal order is created and the purchase state is mutated from FAILED to PENDING_PAYMENT. It omits important behavioral details such as whether the previous order is invalidated, whether the call is idempotent, required permissions, and error behavior when the purchase is not in FAILED state.

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?

The behavioral statement is front-loaded in a single efficient sentence. The trailing 'Method: POST ...' line is mildly redundant REST metadata but is short and does reinforce the workspace/purchase scoping.

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?

For a one-parameter mutation with no annotations and no output schema, the description covers the state transition and external side effect reasonably well. It leaves an agent guessing about the response (e.g., whether a PayPal approval URL or new order ID is returned) and about failure conditions, which matter for a payment retry.

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?

The schema has one parameter at 0% description coverage, so the description must compensate, and it partially does by showing the path template where {sqid} identifies the domain purchase and {workspace_sqid} the workspace. However, workspace_sqid appears in the path but not in the input schema, and neither parameter's format or expected value is explained beyond its position.

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?

The description names a specific verb and resource ('Reset a FAILED purchase') and states the resulting state (PENDING_PAYMENT) plus the mechanism (a new PayPal order), which distinguishes it from sibling flows like cancel or execute. It stops short of explicitly contrasting with workspaces_domain_purchases_execute_create, but the state transition is concrete enough to identify the operation.

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?

Usage is implied through the precondition 'FAILED purchase', which tells the agent this is only for purchases in a failed state. There is no explicit statement of when not to use it (e.g., what happens on a PENDING or COMPLETED purchase) and no named alternative for those cases.

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.