Skip to content

The server ships three prompts you pick in the client (the model cannot call them on its own). The text below is exactly what the server returns in ordainer-mcp 0.1.1. After you run one, the usual confirm flow still applies: every write shows you a preview and waits for your accept. The three walkthroughs below were captured with Claude Code against the live admin API on 24 Nov 2026, with the same server code as 0.1.1 (the only difference is one Python hint line in create_key results). Identifiers are redacted.

Replace the placeholders before you send a freeform prompt. Do not put real customer, tester, or company names in examples you paste into docs.

None of these prompts should ask the agent to read, print, or commit an env file.

Set up a customer, a shadow plan and a test key for one integration, with a preview and accept at each step.

Arguments: integration (required, what the integration is called), monthly_cap (optional, allowed calls per month).

The server fills this user message (shown here with integration = email sending and monthly_cap = 1000, the examples from the tool’s own descriptions):

Set up Ordainer for my integration "email sending" in shadow mode at 1000 allowed calls a month.
1. Read list_customers and list_plans first so nothing is duplicated.
2. Use create_customer, then create_plan (shadow), then create_key. Each shows me a preview; I accept each one myself.
3. The key goes to a local env file and is never shown to you. Do not read the file. Tell me where it is and whether .gitignore covers it.
4. Finish by telling me the one next step: run the integration with that file loaded.

A real run of this prompt with Claude Code against the live admin API, on 24 Nov 2026, with the same server code as 0.1.1:

Read first, then write. The agent called list_customers and list_plans first, found no existing customer or plan named “email sending”, and only then called create_customer.

A least-privilege admin key is not enough for the writes. On a first run, the admin key had only usage:read and keys:write. create_customer returned missing_scope:

missing_scope: This admin key lacks customers:write. Fix: Ask the account owner for an admin key that includes customers:write, or keep this agent read-only. Nothing was changed, and reads still work.

There was no preview, nothing was created, and no env file was written. The reads still worked. That matches the tools table: create_customer needs customers:write, create_plan needs plans:write, and create_key needs keys:write. The server checks those scopes before it shows a preview.

With a write-scoped admin key, the three writes were accepted. A later interactive Claude Code session used an admin key with customers:write, plans:write, keys:write, and usage:read (it also had keys:revoke, which this prompt does not need). After the same read-first check, you accepted three previews, in this order:

  1. create_customer with name email sending. The result was done: true, with a summary that the customer was created.
  2. create_plan for that customer: name email sending, mode shadow, max_allows 1000, period month, tool *. The result was done: true, 1000 allowed calls per month, mode shadow.
  3. create_key with label email-sending. The result was done: true. The secret was not in the tool output. The result’s env_file was .env (the default), env_var was ORDAINER_KEY, and masked_key was shaped ord_test_… plus the last four characters (those four are redacted here). gitignore_covered was null, with the warning: Could not check whether this env file is covered by .gitignore (not a git folder, or git is not available). Make sure it is never committed. The agent reported that .env is relative to the folder the server runs in, and that it had not opened the file or seen the key. The one next step it gave was to run the integration with that file loaded, so the SDKs can read ORDAINER_KEY.

plans:mode is not required for this prompt (set_mode is not in it).

Read the would-denies for a plan and say whether switching to enforce is safe, before changing anything.

Argument: plan (the plan name or id).

Is it safe to switch plan "<plan>" from shadow to enforce?
1. Find the plan with list_plans. Use list_decisions for that plan with the default (would-denies only) and summarise who would have been denied, for which tool, and how often.
2. Check get_key_usage for the keys on the plan if any are near the cap.
3. Give me a plain recommendation. Only if I ask, call set_mode; I will see a preview and accept it myself.

A real run of this prompt with Claude Code against the live admin API, on 24 Nov 2026, with the same server code as 0.1.1. Account identifiers are redacted. set_mode was not called.

The agent found the plan with list_plans (shadow, 100 allowed calls a month, tool *). The default list_decisions (would-denies only) returned one row: reason quota_exceeded, from when that plan’s cap was 1 (the cap at the time of the run was 100). get_key_usage for the plan showed no active keys. list_keys with include_revoked found only revoked keys; one had used 1 of 100 this period (1%). None were near the cap.

The recommendation was that switching to enforce would not block anything today, because the plan has no active keys, not because live traffic was shown to fit under the current cap. The one would-deny happened under the older cap of 1. If real traffic will be added later, keep the plan in shadow until there is would-deny data from that traffic. The agent offered to call set_mode only if asked, and did not call it.

Explain why one call was denied, from its request_id.

Argument: request_id (from an Ordainer response, a log line, or a report).

Why was request <req_…> denied?
1. Call list_decisions with that request_id (it ignores the would-deny filter).
2. Say in plain words what the reason means, whether it was enforced or only a shadow would-deny, and how far the key was from its cap.
3. Call list_changes for that plan around the same time and mention any cap or mode change that explains it. Change nothing.

A real run of this prompt with Claude Code against the live admin API, on 24 Nov 2026, with the same server code as 0.1.1, using a real request id (redacted here as req_…). Nothing was changed.

list_decisions with that request_id returned one row: decision deny, reason quota_exceeded, mode shadow, would_deny true, remaining 0 of a cap of 5, resets_at 2026-12-01 00:00 UTC. The agent said the call still ran (a shadow would-deny, not an enforced deny), and that the key was already at its cap.

list_changes with the same request_id returned no rows (a decide call is not a change-log row). The agent then paged the change log around that time and found no cap or mode change before the deny that would explain it. It made no changes.

You can type these yourself. They follow the same habits as the built-in prompts: read first, write only with a preview you accept, never read the env file.

See where things stand

Read the Ordainer organization summary and list my customers, plans, and test keys. Then show key usage for this period. Change nothing.

Set up one integration (if you would rather type it than use onboard_integration)

Set up Ordainer in shadow mode for an integration called "email sending" at 1000 allowed calls a month.
List customers and plans first so nothing is duplicated. Then create a customer, a shadow plan, and a test key.
Show me a preview at each step; I will accept each one myself.
Write the key to .env.email-send. Do not read that file, print it, or commit it. Tell me the path, whether .gitignore covers it, and the one next step to run the integration with that file loaded.

How close are we to the cap?

Which test keys are at or above 80 percent of their cap this period? If any are, show the plan and the remaining calls. Recommend whether to raise the cap, but do not call set_cap unless I ask.

Is enforce safe?

For plan <plan-name-or-id>, show this period's would-denies (the default list_decisions) and key usage. Is it safe to switch that plan from shadow to enforce? Give a recommendation only; do not call set_mode unless I ask.

What just happened?

A decide call came back denied with request_id <req_…>. Explain it. Use list_decisions with that request_id, and list_changes around the same time. Change nothing.

Watch only

You can read customers, plans, keys, usage, decisions, and the change log. Do not create or change anything, even if I later sound like I want a change — ask me first and wait.

That last one is a habit, not a guarantee. For a hard stop, start the server with ORDAINER_MCP_READ_ONLY=true and use an admin key that has only usage:read. See Confirm and security.

  • “Print the key”, “read .env”, or “paste ORDAINER_KEY here.” The server is built so the model never receives the secret; do not work around that.
  • “Create a live key.” This server will not do it.
  • “Delete this customer” or “revoke that key.” There is no delete tool. Revoke an admin key, or a test key you are not rotating, in the console.
  • “Skip the preview” or “confirm it for me.” There is no way to do that.