← Back to blog · MCP & Security · December 2026 · 6 min read

Why business rules belong in the software, not in the prompt

Prompt instructions drift under edge cases. Here is how per-agent MCP addresses, preview/confirm splits and hard caps keep agents inside the rules.

Secure MCP layer architecture with preview and human approval gateFlow from AI assistant through per-agent scoped MCP URL, mandatory preview, deterministic rule engine, human STOP/GO gate, and auditable records plus learning.AI assistantClaude or anyMCP clientMCPPer-agent MCP/mcp/agent/{key}OAuth 2.1 · RFC 8707Rule enginepreview_* requiredHard caps & checksSTOPHuman gateSTOP / GOApprove or send backBooks + LearnAudit trail & why-it-works briefing!If a call breaks a software rule (locked period, unbalanced statement, missing setting): refused before confirm.

Prompts are advice; code is enforcement

Ask an AI assistant in plain English never to post to a closed accounting period or skip a verification step, and it will obey most of the time. In accounting, payroll and compliance, 'most of the time' is a defect.

That is why our architecture enforces invariants inside the backend API and MCP layer. If a period is locked, the server returns a structured refusal. If a bank statement's opening balance plus transactions does not equal its closing balance, the import is rejected before a single row lands.

Per-agent MCP identity and OAuth 2.1

Following the MCP Authorization specification, RFC 8707 (Resource Indicators) and RFC 9728 (Protected Resource Metadata), each unattended agent connects at its own path-scoped endpoint—such as /mcp/agent/{connector_key}—with audience-restricted tokens bound to the companies you assign.

If you pause or revoke an agent, its access stops immediately without disturbing human logins or other agents.

The preview-then-confirm contract

Every state-changing capability is split into two distinct tools: preview_* calculates the exact diff, warnings and accounting impact without changing stored data; confirm_* commits only that specific preview—or holds it in a human approval inbox when policy or a hard cap requires sign-off.

Want to inspect these rules hands-on?Try the interactive rule inspector, short walkthrough video and 3-question check.
Open Learn lab

Put your agent to work, without losing control.

Ask about FinSnap Canada early access or Goalden Egg. Tell us what you'd like your agent to take off your hands.

Prefer email? Write to contact@octotechlabs.com