Skip to main content
Glama

delete_payment_session

Delete an existing payment session to invalidate its hosted payment URL and prevent retrieval of payment credentials. Use when a session should no longer be active.

Instructions

Deletes an existing payment session. Once deleted, the hosted payment URL stops working and payment credentials can no longer be retrieved for the session.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "delete_payment_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe sessionId returned by create_payment_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose concrete downstream consequences: the hosted payment URL stops working and credentials can no longer be retrieved. It stops short of stating whether the delete is idempotent, what error occurs when the session is already gone, or whether credentials are purged or merely inaccessible.

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?

Two sentences, zero filler, with the destructive consequence front-loaded right after the operation. Nothing could be removed without losing meaning.

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?

For a single-parameter destructive tool with no output schema, the description covers the essential outcome an agent needs before calling it. The remaining gap is operational edge cases such as behavior on an already-deleted session and error signalling.

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% for the single sessionId parameter, and the schema already ties it to create_payment_session. The description adds no format, sourcing, or validation detail beyond what the schema supplies, so the baseline of 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?

The description names a specific verb and resource ("Deletes an existing payment session"), so the agent immediately knows the operation. It does not differentiate from the sibling cancel_checkout, which likely overlaps in intent, leaving a small ambiguity about which tool to select.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no statement of when-not to use it. With cancel_checkout sitting among the siblings, the absence of any routing hint leaves the agent to infer the distinction from names alone.

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