AI and assistant access

BSimple MCP — Inventory Data for AI Assistants

Connect ChatGPT or any MCP-compatible AI assistant to approved BSimple inventory, order and operations data — via OAuth sign-in or a scoped API key.

requestv1
$ POST /mcp
● scoped access · JSON response

BSimple MCP for AI Assistants

BSimple MCP is a controlled Model Context Protocol adapter for AI assistants. It lets an authorised assistant answer questions about selected BSimple customers, contracts, repeat invoices, inventory, suppliers, locations, reorder data, stocktakes, purchase orders, transfers, invoices, debtors and leads using the same account-scoped permissions as the BSimple API — and, with explicit permission, act on them.

The server exposes exactly two tools: search and execute. Instead of publishing a long, ever-growing catalogue of operations for every client to load upfront, the assistant discovers what it needs through search and runs it through execute. All BSimple capabilities live behind these two tools, so new functionality becomes available automatically — no connector refresh, no re-authorisation, no change to the tool catalogue.

Two ways to connect:

  1. OAuth connectors — ChatGPT (web and mobile), and any MCP client that supports OAuth sign-in. No key to create or paste: you sign in to BSimple and choose what the connector may access on a consent screen.
  2. A scoped API/MCP key — for CLI assistants and development tools (Claude Code, Cursor, VS Code and similar) that send a bearer key with each request.

Use MCP when a person wants to explore operational data conversationally. Use the BSimple Public API when a developer needs deterministic application behaviour, scheduled synchronisation or a customer-facing workflow.

How search and execute work

search finds capabilities. Give it a business phrase, an exact capability id, or a category:

{ "query": "stock running low", "limit": 5 }

The response lists the matching capabilities with everything needed to run them: the capability id, a description, the complete input schema, read/write access, the required scope, idempotency, a destructive flag where applicable, and any external side effects (such as emailing a supplier). Searching for "stock running low", for example, surfaces reorder_list (reorder recommendations) together with related PAR and supplier-level capabilities. An empty query returns a compact category index. search never reads business records — it describes operations only, and it is annotated read-only.

execute runs a capability. Pass the exact id and arguments matching its schema:

{ "tool": "reorder_list", "arguments": { "supplier_id": 4, "per_page": 25 } }

execute validates the capability id and every argument against the registered schema before anything happens, enforces the connected key's scopes independently of search, then returns the structured result — or a structured error. Because both read and write operations go through execute, it is deliberately annotated as able to write and capable of destructive operations; the per-operation classification comes from search, and the safeguards below are enforced by the server, not by instructions alone.

Agents that already know a capability id and its schema can call execute directly; previously discovered capabilities stay usable for the whole session without repeating search.

What an assistant can do

What the assistant can do follows the granted scopes — chosen on the consent screen (OAuth) or on the key (API-key path). Search only ever offers capabilities the connection is allowed to use, so discovery is permission-aware: a read-only connection never sees write capabilities, and an administrative connection sees administrative capabilities that a customer connection does not.

With read scopes it can: find stock and products (inventory_list, inventory_get), understand operations (locations_list, par_list, reorder_list, stocktakes_*, purchase_orders_list, transfers_list, saleable_list), and review customers and records (customers_list, customers_get, leads_list, contracts_list, contracts_coverage, repeat_invoices_list, debtors_outstanding, debtors_customer, invoices_list, invoices_get).

With a write permission explicitly granted, the assistant can also do day-to-day work: raise a purchase order (purchase_orders_add, or purchase_orders_auto_build from purchase history with a dry-run preview), send it to the supplier (purchase_orders_send), adjust stock (inventory_adjust, reason required), edit regular inventory fields (inventory_update), hide or show items (inventory_set_hidden), discontinue an item onto a replacement code (inventory_discontinue), add product images or categories (inventory_image_upload, inventory_image_set_url, inventory_category_apply), update supplier reorder levels (par_supplier_update), tag leads and customers (leads_tags_add, customers_tags_add and their remove counterparts), and manage custom contract products (contracts_archive, contracts_update, contracts_create and related).

Even with every write permission, MCP cannot receive purchase orders, count stocktakes, move stock between locations, create or send invoices, approve or pay records, hard-delete inventory, run SQL, browse arbitrary URLs, proxy arbitrary REST routes, accept arbitrary headers, select another account or accept a key or password as an argument. Every write is scope-checked, account-scoped and audit-logged, and repeating a write safely cannot duplicate it (idempotency keys are handled automatically).

Safety: confirmations and the write pace limit

Two protections are enforced on the server:

  • Destructive operations require a confirmed token. The destructive capabilities (inventory_discontinue, and backups_restore under its dedicated restore permission) do not run on the first call. The server returns confirmation_required with a short-lived token; the assistant must repeat the identical call with that token for the operation to execute. Nothing happens until then, no matter what the assistant says about having asked the user.
  • A write pace limit with a human in the loop. If an assistant makes more than five record changes within ten minutes, further changes pause with a clear message: the assistant must stop, summarise what it has already changed, and check with the person driving it. On the human's confirmation (writes_confirm) the limit is lifted for that connection, and the assistant is advised to take a point-in-time backup (backups_create, which never counts against the limit) before continuing.

External communications — emailing a supplier a purchase order, sending a reminder or template to a customer or lead, starting a contract renewal that emails the signer — are marked as side effects in search results so the assistant can surface them to you before running them.

Errors are structured

Failed calls return machine-readable errors such as unknown_capability (with suggestions), invalid_arguments (with per-field issues), insufficient_scope, confirmation_invalid, write_limit_reached and request_failed. Errors from the BSimple API itself pass through unchanged, so an assistant can distinguish "the item code does not exist" from "this key lacks the permission".

Practical examples

Real capability ids and arguments, exactly as an assistant would use them:

# Find a customer by email
execute { "tool": "customers_get_by_email", "arguments": { "email": "nina@example.com.au" } }

# Check inventory availability for a code
execute { "tool": "inventory_get", "arguments": { "id": "BR-SANTOS" } }

# Which products need reordering?
execute { "tool": "reorder_list", "arguments": { "supplier_id": 4, "per_page": 50 } }

# Review outstanding debtors
execute { "tool": "debtors_outstanding", "arguments": { "blocker": "warn_overdue", "min_owing": 100 } }

# Retrieve an invoice with its lines
execute { "tool": "invoices_get", "arguments": { "id": 5521 } }

# Update an inventory item's sales price
execute { "tool": "inventory_update", "arguments": { "code": "BR-SANTOS", "sales_price": 36.0 } }
# (retries are safe: an Idempotency-Key is sent automatically when idempotency_key is omitted)

# A multi-step workflow: debtor follow-up
search  { "query": "who owes money" }                    → discovers debtors_outstanding
execute { "tool": "debtors_outstanding", "arguments": { "min_owing": 500 } }
execute { "tool": "debtors_customer",   "arguments": { "id": 10037 } }
execute { "tool": "debtors_add_note",   "arguments": { "id": 10037, "note": "Payment promised Friday 4pm" } }

Instructions for AI agents

When connected to BSimple MCP, follow these rules:

  1. BSimple exposes two MCP tools: search and execute.
  2. Use search to discover relevant capabilities when their identifiers or schemas are unknown.
  3. Search describes available operations; it does not retrieve business records.
  4. Use execute to retrieve records or perform the discovered operation.
  5. Previously discovered capabilities can be reused without repeating search unnecessarily.
  6. Use exact capability identifiers and validated arguments.
  7. Never invent capability identifiers, arguments or business record IDs.
  8. Respect operation-specific permissions, side effects and confirmation requirements.
  9. Retrieve only the records and information necessary to complete the task.
  10. Use pagination and available filters rather than requesting excessive datasets.
  11. Do not retry destructive or write operations blindly.
  12. Handle structured errors and request clarification when necessary.
  13. Do not assume every account has access to every BSimple capability.

A copyable instruction block for agent configurations, and a machine-readable copy of these instructions, are available at /agents/bsimple-mcp.md.

Connect ChatGPT (OAuth sign-in)

ChatGPT custom connectors — and any MCP client that speaks OAuth — connect without a key:

  1. In ChatGPT, open Settings → Connectors, choose to add a custom connector and paste the server URL https://mcp.bsimple.com.au/mcp.
  2. ChatGPT discovers that the connector uses BSimple for sign-in and opens a BSimple login in a browser window. Sign in with your normal BSimple account (on mobile this happens in the ChatGPT in-app browser).
  3. The consent screen shows the connector's name and the permissions it is asking for. Read permissions are pre-ticked; write permissions are opt-in — tick only what you want the assistant to be able to do. Choose Approve.
  4. You're connected. Tokens are refreshed automatically and are never shown to you or stored by ChatGPT as a reusable secret.

Your choices are remembered, so reconnecting later skips the consent screen. To change or end access, open BSimple → Settings → API & MCP Access → Connected apps and revoke the app: the connector loses access immediately and is asked to consent again next time.

The consent screen — not a key — is the only way a ChatGPT connector receives write permissions, and administrative scopes are never offered.

Connect a CLI client with an API key

For assistants that take a bearer key (Claude Code, Cursor, VS Code and similar), create a key in BSimple → Settings → API & MCP Access and connect to the Streamable HTTP endpoint:

https://mcp.bsimple.com.au/mcp

A provider-neutral configuration shape is:

{
  "mcpServers": {
    "bsimple": {
      "url": "https://mcp.bsimple.com.au/mcp",
      "headers": {
        "Authorization": "Bearer <BSIMPLE_API_MCP_KEY>",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

This is an example shape, not a claim that every client uses the same file. Follow the selected client's current remote MCP configuration instructions and store the secret in its approved secret store. Never paste a real key into chat, a prompt, a screenshot, source control or a shared configuration file.

Name the key after its purpose, grant the smallest useful scopes and keep a separate key for each assistant. The secret is shown once and stored by BSimple as a hash; a useful inventory assistant may need inventory:read, locations:read and reorder:read. The public HTTP service has no shared service-wide MCP token.

Agent conduct expectations

When consuming BSimple through MCP, an assistant should:

  1. Treat the returned BSimple data as the source of truth for the connected account and the time of the response.
  2. State when a result is empty, filtered, paginated or unavailable instead of filling the gap with an assumption.
  3. Preserve the user's account, location, date and status constraints; ask a clarifying question when they are ambiguous.
  4. Follow pagination metadata and avoid presenting a first page as a complete total.
  5. Distinguish current stock, PAR targets, reorder recommendations, stocktake progress, purchase orders and transfers; they are not interchangeable facts.
  6. Explain what the connected scopes allow, and ask for confirmation before any write that costs money or is hard to reverse — raising or sending a purchase order, adjusting stock, or discontinuing an item onto a replacement.
  7. Minimise sensitive detail in the answer and never reveal, repeat or transform any credential.

A conversational answer is not a substitute for an authorised business decision. Confirm important quantities, customer identity and invoice status in BSimple before acting on them.

Check readiness and troubleshoot

GET https://mcp.bsimple.com.au/healthz is an unauthenticated liveness check. A healthy response does not prove that credentials or MCP compatibility are ready.

Authenticated readiness requires, in order:

  1. A signed-in, approved OAuth connection — or a matching production key.
  2. A successful MCP initialize request.
  3. A successful tools/list request — it always returns exactly search and execute, whatever scopes are granted.
  4. A successful search call showing the capabilities this connection may use.
  5. A successful execute call allowed by the granted scopes.

A 401 normally means the bearer credential is missing, invalid or revoked — for OAuth connections, check whether the app has been revoked under Connected apps in BSimple Settings, and reconnect to consent again. A 403 indicates a scope boundary: the granted permissions do not cover that capability — search will not offer it, and execute will refuse it. Check the endpoint, TLS and client transport support before changing permissions.

Existing connections made before 26 November 2026 need a one-time refresh (reconnect the connector, or reload the tool list in your client) to pick up the search/execute catalogue. After that one-time refresh, new BSimple capabilities appear automatically with no further action.

MCP, REST and a BSimple trial

MCP is for asking questions about — and, with permission, acting on — live BSimple operations. REST is for building software around those operations. Both depend on the same account-scoped permissions and the product features available to the account; see the developer documentation for the full endpoint and scope reference.

If you are evaluating BSimple rather than building an integration, start a free trial and manage your inventory, customers, orders and invoices in a real account. You can then decide whether you need an AI assistant, a custom API connection, a native integration, or simply a clearer operational system.

For native and custom connection choices, see BSimple Integrations.

Changelog

2026-11-26 — v0.5.0: progressive capability discovery (search + execute)

  • The MCP now exposes exactly two tools, search and execute, instead of publishing every operation individually. Assistants discover capabilities by business phrase ("stock running low", "who owes money") and run them by id. All previous operations remain available as capabilities under the same identifiers as before (for example customers_get_by_email, reorder_list, inventory_update).
  • New capabilities roll out to connected assistants automatically, with no connector refresh and no re-authorisation.
  • Server-enforced confirmation for destructive operations: inventory_discontinue and account restore now require a confirmation token returned by the server before anything happens.
  • Existing connections need a one-time tool refresh to pick up the new catalogue.

2026-10-23 — v0.3.0: safety nets for AI-assisted work

  • Point-in-time backups. Any connected assistant can now snapshot your account's records (compressed, stored on BSimple's infrastructure; the newest 10 assistant-driven backups per account are kept). Restoring a backup replaces the account's records with that point-in-time snapshot. Restore is a dedicated permission granted deliberately: it always takes an automatic safety backup of the current state first, so a restore can itself be undone. Uploaded files are not part of backups.
  • Nightly backups. Every active BSimple account now also gets an automated nightly backup, kept for 14 days — no setup, no extra step.
  • A write pace limit with a human in the loop. If an assistant makes more than five record changes within ten minutes, further changes pause with a clear message: the assistant must stop, summarise what it has already changed, and check with the person driving it. On the human's confirmation the limit is lifted for that connection, and the assistant is advised to take a backup before continuing.

Ready when you are

Build it against
a real account.

Build with the API