Skip to main content
Glama

Connect payment test keys

connect_test_payment_keys
Idempotent

Connect the store's Stripe, Yoco, Paystack or Tap account in TEST mode (no real money) from test keys the owner sent in chat. Pass the key as it appears in the conversation: our assistants see a placeholder like [[test-key:…]] instead of the key, and the server swaps it back. Only TEST keys: a live key is refused (live keys go in Settings → Payments, never in chat). Yoco, Paystack and Tap keep any live key already saved and switch Mode to Test; Stripe needs the test publishable key too and is refused when live Stripe keys are saved. Then run_test_order tries checkout.

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": {
      "site_id": "<site_id>",
      "provider": "<provider>",
      "secret_key": "<secret_key>"
    },
    "name": "connect_test_payment_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
providerYesThe payment provider the test keys are for
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
secret_keyYesThe TEST secret key exactly as it appears in the conversation: a placeholder like [[test-key:…]] (our assistants never see the key itself) or, from an external connector, the sk_test_ key
publishable_keyNoStripe only: the TEST publishable key (pk_test_…, or its placeholder)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / provider / enum
      Previous value: -[
      -  "stripe",
      -  "yoco",
      -  "paystack"
      -]New value: +[
      +  "stripe",
      +  "yoco",
      +  "paystack",
      +  "tap"
      +]
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say not-read-only, idempotent, non-destructive and open-world; the description adds real behavioral context beyond them: no real money moves, live keys are rejected, existing live keys are preserved for three providers while Mode flips to Test, and Stripe is refused when live Stripe keys are saved. It also explains the placeholder swap so the agent understands what it is actually passing.

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?

Purpose is front-loaded and each sentence carries operational content, but the 'in chat' / 'never in chat' warning is repeated and the placeholder explanation is slightly verbose. It is dense yet well ordered rather than wasteful.

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

Completeness5/5

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

For a mutation tool with no output schema, the definition covers safety (test only), provider-specific side effects, key-format handling, and the natural next call (run_test_order). Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the placeholder is transparently swapped server-side, and publishable_key is effectively required for Stripe even though the schema's required list omits it. The user_goal parameter is left unaddressed, keeping it from a 5.

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

Purpose5/5

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

The first sentence names a specific verb and resource ('Connect the store's Stripe, Yoco, Paystack or Tap account in TEST mode') and scopes it to keys the owner sent in chat, so it is unmistakable against siblings like run_test_order or connect_data_source.

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

Usage Guidelines5/5

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

It states when to use (owner supplied test keys in conversation), when not to use (live keys go in Settings → Payments, never in chat; live keys are refused), and names the follow-up tool (run_test_order tries checkout). Provider-specific conditions for Stripe vs Yoco/Paystack/Tap further sharpen the guidance.

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