Skip to main content
Glama

Complete a purchase

debitmydata_complete_purchase

Once the add-on's payment is settled: the receipt signed by DebitMyData, and the add-on's entitlement on your DID-LLM until covers_until. Safe to call again: a completed purchase is returned as it is. Before settlement it fails with next_action.

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": {
      "purchase_id": "<purchase_id>"
    },
    "name": "debitmydata_complete_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
purchase_idYespurchase_id from debitmydata_purchase (an add-on such as a BottyBotty tier)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

With annotations declaring readOnlyHint=false and destructiveHint=false, the description usefully adds idempotency ('Safe to call again: a completed purchase is returned as it is') and a failure mode ('fails with next_action'), which goes beyond the structured fields. However, it says nothing about what next_action contains, what state changes on first call, or any auth/ownership requirement for the purchase_id, so the mutation profile is only partially disclosed.

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 with the precondition front-loaded and no filler; the idempotency and failure notes each earn their place. The opening is an elliptical fragment ('Once the payment is settled: the receipt ... and the entitlement ...') that reads awkwardly and slightly blurs whether the tool returns these or merely does this once settled.

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?

An output schema exists, so return values need not be enumerated, and annotations carry the safety profile; the description fills in the precondition, retry safety, and failure behavior. Missing is any hint about covers_until or the next_action payload shape, which would matter when the call fails, but overall it is sufficient to invoke correctly.

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% and the single parameter already documents its format, pattern, and origin ('purchase_id from debitmydata_purchase'). The description adds no further meaning about the parameter, 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?

The description states the resource and the outcome precisely — the settled add-on purchase yields a DebitMyData-signed receipt and an entitlement on the agent's DID-LLM through covers_until. It stops short of an explicit verb phrase like 'finalize the purchase' and never contrasts itself with siblings such as debitmydata_purchase or debitmydata_get_payment_status, so the agent must infer the sequencing.

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?

It gives a concrete precondition ('Once the add-on's payment is settled') and an explicit negative case ('Before settlement it fails with next_action'), which tells the agent when not to call and what a premature call looks like. It doesn't name which sibling to poll instead while waiting for settlement, leaving that inference to the agent.

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.