Skip to main content
Glama

Checkbox: subscription auto-renewal law checks

Store the Stripe TEST restricted key (rk_test_)

store_stripe_test_key
Idempotent

Stores the site's ONE Stripe key in TEST mode: a restricted key (rk_test_…) from the project's env. Checked with Stripe; on a test-mode site not connected with “Connect with Stripe” it also connects Stripe (checks, fixes after the human approves, test runs); if connected, it only runs test runs. The human can revoke it on the dashboard. Live and sk_test_ keys are refused (the error says what to do). Never ask the human to paste a key into the chat.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "store_stripe_test_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite id (site_…). Optional when the account has exactly one site in this mode; list_sites shows them.
typeNoOptional: "stripe_test" (the REST body's type; "stripe" is accepted too). Always stored as a Stripe TEST key.
verboseNo
secret_keyNork_test_… key (required). Stored encrypted; never returned.
confirm_account_mismatchNoHuman said yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / additionalProperties
      Previous value: -falseNew value: +true
    • changedInput schema / properties / secret_key / description
      Previous value: -"rk_test_… key. Stored encrypted; never returned."New value: +"rk_test_… key (required). Stored encrypted; never returned."
    • removedInput schema / required
      Removed value: -[
      -  "secret_key"
      -]
  2. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / confirm_account_mismatch
      Added value: +{
      +  "description": "Human said yes",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Optional: \"stripe_test\" (the REST body's type; \"stripe\" is accepted too). Always stored as a Stripe TEST key.",
      +  "enum": [
      +    "stripe_test",
      +    "stripe"
      +  ],
      +  "type": "string"
      +}
  4. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (openWorld, idempotent, non-destructive) by disclosing the external Stripe check, the Connect-with-Stripe side effect conditioned on site state, that fixes occur only after human approval, that the key is human-revocable on the dashboard, and that live/sk_test_ keys are rejected with a corrective error.

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?

Front-loads the core action and constraint (ONE TEST-mode restricted key) in the first clause, then layers conditionals. It is dense with parentheticals and reads as one long run-on, but nearly every sentence carries a distinct constraint.

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 mutation tool with an external API call and no output schema, it covers the risky behavior an agent needs: validation, connection side effect, human approval gate, and revocation. It does not describe the return payload or success/error shape, which is a minor gap given no output schema exists.

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 coverage is 80% so the baseline is 3, but the description adds genuine semantics: secret_key must be rk_test_ sourced from env, and 'fixes after the human approves' ties directly to the confirm_account_mismatch flag. Site and verbose parameters are left to the schema.

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?

States a specific verb+resource+scope: stores the site's single Stripe key in TEST mode, restricted rk_test_ keys only, sourced from the project's env. No sibling tool stores keys, and the description makes the write target unmistakable.

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?

Gives clear use context: it validates with Stripe, connects Stripe on an unconnected test-mode site (with human approval and test runs), and only runs test runs on an already-connected site. It also states when NOT to use it by refusing live and sk_test_ keys and forbids asking the human to paste a key in chat. It stops short of naming a preferred alternative workflow.

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.