Skip to main content
← All documentationContents ↓

MCP Server: Record Operations and Security

Use MCP for file uploads, multiple Teams, record writes, compatibility, and security.

Return to MCP Server for the beginning of this article.

File Upload Without an App Handoff

upload_file accepts canonical base64 file bytes up to 4 MiB and runs the normal checksum, private quarantine, malware scan, SVG sanitization, storage-limit, and promotion pipeline. It returns a public upload handle that can be polled with get_file_upload and finalized with complete_file_upload. In practice this only fits small or text-like payloads — a model cannot usefully emit hundreds of KB of base64 for a real photo.

For any real file, create_file_upload returns a durable, exact-size and checksum-bound upload intent plus a ready-to-run upload.curl command. It always requests the PUT transport: upload.urlEndpoint is a short first-party GET that resolves — with no Simply360 credential — to a one-time presigned S3 PutObject URL as text/plain, and upload.headers lists the exact headers (Content-Type, x-amz-checksum-sha256, and x-amz-storage-class: STANDARD) the PUT must send verbatim — x-amz-storage-class is signed so a client cannot select any other class. This keeps the tool result small: the old default (a presigned-POST policy document whose STS session token is embedded a second time in base64) ran ~6 KB per file; the PUT-transport result stays under 1 KB and never carries the raw presigned URL or an X-Amz-Security-Token. Run the curl command, then call complete_file_upload until it reaches a terminal status. Storage keys and quarantine internals are never public. The deprecated request_file_upload alias now accepts the same full declaration and behaves identically. (The Public API and SDK default POST /v1/file-uploads to the classic signed-POST form for backward compatibility; pass transport: 'PUT' to opt in there too.)

If your client runs in a sandbox that can reach Amazon S3 but not the Simply360 API host, the default curl fails at its first step, which fetches the storage URL from Simply360. Call create_file_upload again with the same declaration and uploadRequestKey plus directUploadUrl: true: the result then carries upload.url, the one-time storage URL itself (about 2 KB), and a curl that uploads straight to it. The URL allows nothing the exchange token did not already allow. For a document such as a PDF, omit purpose; WEBSITE_MEDIA accepts only images, video, and audio.

These upload and image-generation tools require the files:write OAuth scope shown in the connector scope list above. A call missing it fails with OAuth scope required: files:write and instructions to reconnect the connector and approve the requested scopes. list_media_files and get_media_file instead require files:read, which is part of the same connector scope list and requestable the same way. A connection created before files:read joined that list simply does not hold it yet — reconnect the connector and approve the requested scopes (including files:read) to pick it up; existing grants are not migrated automatically. A call missing it fails with OAuth scope required: files:read and the same reconnect instructions. A caller not restricted by OAuth scope at all — a scoped Simply360 API key sent as Authorization: Bearer s360_live_... (see above), or a first-party surface (webapp, Ask Simply) whose session already carries the needed authority — can call both tools without any scope grant.

files:read is not narrowed to these two tools' metadata responses: like every hosted MCP OAuth scope, it authorizes the connected client to act as the consenting user, so it also lets that connection read and download — through the Public API, with the same presigned URLs a signed-in browser session would get — any File the user can already access, not only what list_media_files/get_media_file themselves return. Request only the scopes a connector genuinely needs.

Working Across Multiple Teams

list_my_teams distinguishes a single-Team connection from a consent-authorized Team set. On a multi-Team connection, pass one returned teamSimplyId to every Team-scoped tool. Membership is revalidated on every call; leaving a Team revokes access immediately.

OAuth cannot silently add a Team that was not part of the original consent. A newly joined or previously unselected Team requires reauthorization. Already authorized live memberships and permissions refresh without reconnecting.

Alternative: One Connector Per Team

Clients that de-duplicate connectors by exact URL can also add one connector per Team by qualifying the same endpoint:

https://api.simply360.app/v1/mcp?teamSimplyId=TEAM_A
https://api.simply360.app/v1/mcp?teamSimplyId=TEAM_B

Authorize each connector for only its matching Team. That connector then needs no teamSimplyId tool argument. Use this shape when the client should show hard-separated Team connectors; one multi-Team connection is the recommended default.

Record Value Contracts and Dry Runs

Use public Field Simply IDs as keys. validate_data_record_write validates create or update arguments without mutation and returns the reviewed public Field changes. It checks current actor, installation, managed-policy, Collection, record, Field, linked-target, and SecurityScope authority plus each public transport envelope, then runs the whole write through the canonical writer in a transaction that is always rolled back: required fields and defaults, unique values, availability policies, the record limit, and Collection validation and lock rules. A refused write returns valid: false with refusal and collectionRuleViolations, which name only fields and records the caller can read; nothing is written and no notification or automation runs, and each dry run is logged. A CREATE reserves one unused Simply ID, as any create attempt does. Record reads can set includeFieldDescriptors: true to receive an ordered label/type/value list beside the compact Field-ID map. Linked Fields include permission-safe target Collection Simply IDs.

  • PLAIN_TEXT and FORMATTED_TEXT accept a string or BCP 47-keyed localized-text object when data languages are enabled. Email, phone, code, icon, time, color, status, and enum Fields use scalar strings.
  • Number, decimal, and percentage Fields accept finite numbers; booleans accept true, false, or null.
  • Date and date-time Fields use ISO strings, with an explicit offset for date-times; range Fields use explicit start/end objects.
  • Money accepts an amount or canonical amount/currency object and enforces the Field's configured currency.
  • Single linked record, selection, entity, image, and file Fields accept one public Simply ID; multi-value variants accept arrays of public Simply IDs. Entity Fields use their configured linked-record authority. Data Collection link Fields accept readable same-Team Collection Simply IDs.
  • URL accepts a string or { value, title, openInNewWindow }; video accepts a string or { value, videoType }; other structured Fields use their declared contract.
  • Use null to clear a scalar or range value and [] to clear a multi-value Field. Unknown Fields, malformed envelopes, duplicates, unreadable linked targets, and authority-ceiling violations fail explicitly before mutation.

Collection Rules

list_collection_rules and get_collection_rule read a Collection's validation and lock rules (definition, summary, and the fields each reads) for Team Admins with Collection schema access and schema:read. There is no direct rule-writing tool: plan a DATA_COLLECTION UPDATE with CREATE_COLLECTION_RULE, UPDATE_COLLECTION_RULE, DEACTIVATE_COLLECTION_RULE, or DELETE_COLLECTION_RULE through plan_team_configuration_change. Both tools and every rule change are Team Admin only, because a lock rule binds Team Admins too, and on a production-managed Team the planned change is reviewed and published through its environments, one rule at a time. See API Reference: Collection Rules.

Bulk Record Writes

Use bulk tools when working with several records. MCP invokes the Public API's shared operations: contracts, permissions, lifecycle checks, side effects, limits, and partial results are owned by the API. A tool can package inputs conveniently, such as choosing archive or restore, without implementing a second business workflow.

  • describe_collection_for_write — readable field descriptors with isWritable, the exact valueContract, configured options, decimal places, currency, linked target Collections, the active Collection rules writes must satisfy (collectionRules), and permission- and SecurityScope-filtered existing values. Requires records:read. Sampling uses a bounded window and at most four concurrent database queries.
  • create_data_records — up to 100 independent root-level records in one Collection, through POST /v1/data-records/batch's shared operation. Each entry has its own field map and optional canonical lowercase UUIDv4 idempotencyKey. For a child under a specific parent record use create_batch_data_record.
  • create_record_with_children — one parent record and its linked child records (up to 100, in up to 8 child groups) in a single all-or-nothing transaction, through POST /v1/data-records/with-children's shared operation. Each child group names its Collection and linkDataFieldSimplyId, the child field that links to the parent and that the server sets. Optional relatedRecordUpdates (up to 8) update existing records in the same transaction, for example marking the bank transaction a new journal entry categorizes; a refused update, such as RECORD_LOCKED on an already posted transaction, writes nothing. Each update may carry the record's expectedUpdatedAt from your last read; a record changed since refuses the whole call with RECORD_CONFLICT. One required canonical lowercase UUIDv4 idempotencyKey covers the whole write; resending it returns the original Simply IDs.
  • update_data_records — up to 100 records, through PUT /v1/data-records/batch's shared operation. Entries support optional expectedUpdatedAt and idempotencyKey. Set a default dataCollectionSimplyId or specify one per item; an item can override the default for a mixed-Collection batch.
  • delete_data_records — up to 100 whole-record soft deletes, through DELETE /v1/data-records/batch's shared operation. This removes the record, rather than only archiving its membership in a Collection. It is a Level 2 change: destructiveHint: true, undone with restore_deleted_data_records.
  • restore_deleted_data_records — up to 100 soft-deleted records restored through POST /v1/data-records/batch-restore's shared operation, the undo of delete_data_records. It needs the same authority as the deletion (Team, record SecurityScope, and permission to delete records in the Collection), restores only records deleted within the last 24 hours (RESTORE_WINDOW_EXPIRED after that), and applies the same plan capacity and Collection rules as Undo Delete. Commits are per record, with partial results by input index.
  • archive_data_records and restore_data_records — up to 200 Collection memberships (restore_data_records restores archived memberships; use restore_deleted_data_records for deleted records) through POST /v1/data-records/bulk-archive's shared operation, with action archive or unarchive. Both enforce the API's current Team User, Collection, SecurityScope, and lifecycle rules.

These direct batch operations commit per record. A failed record does not roll back successful siblings. Keep the original input indexes and inspect every result and error. NOT_ATTEMPTED identifies an entry the request deadline prevented from starting, or an update that a concurrent write to the same records kept interrupting after the server's own retries; neither wrote anything, so resend it with its original key. For create/update, supply a distinct key per record and preserve its exact payload to replay a previously committed result; the mutation field distinguishes executed and replayed. Keys are optional, so do not assume unkeyed writes or deletes are safe to resend after an ambiguous timeout. A changed update should use a fresh key and current expectedUpdatedAt. Archive/restore report already-archived or already-active memberships without repeating the transition.

First-class bulk record operations use preview_bulk_record_operation plus the status, history, confirmation, cancellation, and archive-undo tools. The service resolves the exact public-ID selection and current permission intersection, reports selected/excluded/completed counts, and preserves unchanged retries as durable idempotent replays. Lifecycle observability is count-only operational evidence; it does not expose review authorities, idempotency keys, worker coordinates, internal IDs, or record field values.

Every record write also returns aggregatedFieldRecomputation: QUEUED when dependent parent rollups (AGGREGATED or SCORE fields such as a Fund's "Total Raised" over its Donations) were queued for asynchronous refresh, NOT_APPLICABLE when none depend on the written Collection, and UNAVAILABLE when the refresh could not be queued and parent totals may be stale. Rollups refresh within seconds of a QUEUED result; read the parent again rather than assuming the total moved synchronously.

A record's name is null when it has no name (its Collection has no record name formula, or the formula produced no text). Refer to such a record as "Untitled record" followed by its Simply ID.

Record listing defaults to every readable field of every record. Pass projection: "SUMMARY" (optionally with fields) for identity-only pages, or use aggregate_data_records for counts and sums. Wide exact decimals (DECIMAL, PERCENTAGE, AGGREGATED, and aggregate results) are returned trimmed to their configured scale without rounding, so an integer total reads back as "2074", not "2074.000000000000000000000000000000".

Narrow High-Security Exceptions

The following ceremonies intentionally use a dedicated secure identity, provider, or payment surface. Safe metadata, status, configuration drafts, and post-ceremony continuation remain available through MCP:

  • initial OAuth authentication/consent and adding a new Team to a consent grant;
  • entering, creating for reveal, revealing, exporting, or rotating bearer secrets, private keys, integration credentials, recovery codes, or raw API-key/token values;
  • changing SSO, MFA, account-recovery, or equivalent identity-security policy;
  • entering or revealing payment-instrument details and provider-mandated payment challenges; and
  • external-provider OAuth or consent ceremonies that require the provider's interactive authorization surface.

Normal file upload, website publishing, schema/Wizard authoring, record work, messaging, reports, dashboards, and other permission-allowed Team operations are not high-security exceptions.

Compatibility and Deprecation

Existing first-class MCP tool names remain available, and new response fields are additive unless the changelog identifies a security or standalone-interface correction. Older proposal-first tools now return durable proposal handles through the same lifecycle. Operation-specific tools that still carry a legacy arguments object remain compatible, but new client implementations should use get_capability plus invoke_capability for the strict canonical schema. Every website and Style Kit draft_* tool now publishes its exact arguments shape directly in tools/list (the same schema get_capability returns): the 6 draft_update_website*/draft_assign_style_kit tools and 44 more (up from the 5 covered as of 2026-09-18) — every page/block/design/content tool, every Style Kit lifecycle tool, publish/no-op tools such as draft_publish_website or draft_discard_style_kit_draft whose arguments is now a strict empty object, and the shared page-design-replacement tools (draft_insert_website_block, draft_update_website_block, draft_delete_website_block, draft_rewrite_website_selection, draft_redesign_website_page, draft_insert_data_view_block, draft_insert_data_wizard_block) — so arguments: {} is rejected with the missing field named instead of silently creating a proposal a human then has to cancel, and no proposal row is created for the rejected call. The website template (draft_release_website_template, draft_apply_website_template) and draft_create_website_backup tools now publish the same exact whole-input shape too (their arguments is a strict empty object, unread by every executor; every field the executor reads — teamWebsiteTemplateSimplyId, teamWebsiteTemplateVersionSimplyId, expectedTemplateVersionNumber, expectedTemplateSnapshotSha256, releaseNotes, applyAutoSites, managedPublish, websiteSimplyId, backupLabel, idempotencyKey — is typed at the top level). The 5 recovery tools (draft_restore_website_backup, draft_edit_website_recovery, draft_apply_website_recovery, draft_discard_website_recovery, draft_retry_website_recovery_refresh) remain unaffected by this change: they validate through their own dedicated typed schemas outside this shared registry, which merge a caller's top-level and nested fields themselves before picking only named fields and re-deriving every consequential value fresh from current database state. Some of the newly exact tools narrow what previously worked without changing the documented shape: draft_create_or_update_access_area now accepts protected area fields directly inside arguments only (an undocumented nested arguments.accessArea wrapper is no longer accepted); the page-design-replacement tools above now require arguments.designJson (a dataViewSimplyId/dataWizardSimplyId value previously accepted inside arguments as an alternative to the top-level field is no longer accepted there — send it at the top level, as the tool has always documented).

Changing a page's slug or parentPageSimplyId via draft_update_website_page_metadata can pass arguments.createRedirect: true to also write a permanent (301) redirect from the page's current public path to its new one, so the old URL does not 404 after approval. It has no effect without one of those two fields present (rejected at draft time), does nothing for a page that has never been published (noted in the result rather than erroring), and requires the same site-level SEO/settings permission draft_update_website requires to edit defaultSeoSettings directly. Approving a slug/parentPageSimplyId change takes effect on the live site immediately — there is no separate publish step — so the proposal a reviewer sees shows the actual computed old→new path(s) and redirect(s), not just the raw arguments.

request_file_upload is the one behavior migration in this release: the name remains as a deprecated alias, but the former no-input browser handoff is removed. It now requires the same declaration as create_file_upload. Migrate clients to upload_file or create_file_upload; alias removal will still receive the normal published deprecation notice.

Security correction (2026-09-19): whole-input validation for website/Style Kit draft_* tools. The exact arguments schemas above only ever validated the nested arguments object; a top-level sibling of the same call was never checked, and the server's internal merge (nested arguments flattened UNDER the top level, so a top-level value silently wins) meant a top-level field that happened to share a name with something declared inside arguments — or an undocumented top-level wrapper such as accessArea/styleKit — could bypass validation and reach the executor unchecked. Every website/Style Kit proposal tool that has a complete input schema (the 6 draft_update_website*/draft_assign_style_kit tools and the ~36 tools covered by the exact-arguments work above; draft_submit_page_for_review/draft_request_page_changes are additionally safe because their stored argument shape is always server-computed, never the raw caller object) now validates its ENTIRE input — every top-level field plus arguments — against one .strict() schema, at DRAFT time and again at APPROVAL preflight, on both hosted MCP and TeamAgent/Ask Simply (the two surfaces share the same draft/approval code). An unrecognized top-level key, or one that shadows a field declared inside arguments, is rejected with a 400 VALIDATION_ERROR naming the key and, when it belongs inside arguments, saying so — with no proposal row created at draft time, and no write or backup at approval time. The proposal's stored redactedArguments is now the PARSED, unknown-key-free input, not the raw caller object, so what a reviewer approves is exactly what is executed. Deploy note: a proposal drafted before this change deployed, whose stored shape is no longer valid under this stricter check, fails cleanly at its next approval attempt (a clean 400 VALIDATION_ERROR, nothing applied) and becomes terminal FAILED; re-draft it. draft_release_website_template, draft_apply_website_template, and draft_create_website_backup now also validate their whole input the same way (same deploy note applies to a pending proposal for one of these three). The 6 draft_update_website*/draft_assign_style_kit tools already enforced an equivalent whole-input rule on their own dedicated schema, which explicitly rejects the same field appearing at both the top level and inside arguments, independently re-checked at approval against the stored row before any other approval work runs. The 5 recovery tools (already safe via their own separate, dedicated validators, which merge and re-derive every value fresh from current database state) remain unaffected by this change and need no whole-input schema.

Security Recommendations

  • Prefer OAuth for assistants used by individual Team Admins and Team Users.
  • Request only required OAuth scopes and review proposed diffs before approval.
  • Treat API keys and OAuth client secrets as production secrets and never place them in prompts or source control.
  • Use read-only or narrowly scoped keys for developer tooling and restrict server-side API keys by source IP where practical.
### Staff Bookings and Calendar agent operations Hosted MCP and TeamAgent/Ask Simply expose the same API-owned staff operations: | Tools | Review | Authority | | -------------------------------------------------------------------------------------------------------- | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `get_booking_analytics_scorecard`, `get_booking_analytics_signals`, `get_booking_analytics_observations` | READ | `bookings:read`, BOOKINGS_ANALYZE and full Team data access | | `list_booking_transactions`, `get_booking_transaction` | READ | `bookings:read`, BOOKINGS_MANAGE; canonical safe diagnostics | | `draft_refund_booking_transaction` | Level 3, person confirms on the web | `bookings:manage`, Manage edit; refund state/version/allocation validation and lock run again before money moves | | `list_booking_availability_policies` | READ, complete list and pagination metadata | `bookings:read`, View or Manage Own or Manage; includes busySources and checkIn rules | | `draft_create_booking_availability_policy`, `draft_update_booking_availability_policy` | Reviewed proposal (Lane B) | Manage edit; added/changed busy source Collections, fields and SecurityScopes require read access again at approval | | `get_booking_billing_estimate` | READ | `bookings:read`, Manage; existing typed estimate | | `draft_check_in_booking` | Reviewed proposal (Lane B) | Canonical staff check-in authority, data-scoped BOOKINGS_CHECK_IN edit and update SecurityScope; already checked in returns replayed without another write | | `list_booking_check_in_point_event_types`, `get_booking_check_in_point_qr_code` | READ | Edit-level View or Manage, matching REST; printable SVG contains only the public check-in-point URL | | `draft_update_calendar_settings` | Reviewed proposal (Lane B) | Own person's preferences only, `calendar:write`; strong `ifMatch` revision from `get_calendar_settings`, validated `patch` references; author alone may approve | Transaction, availability-policy and check-in-point event-type lists query at most 25 rows per agent page. Their pagination metadata uses that same bound, so every row remains reachable after redaction. REST retains its existing list limits and response envelopes. Staff check-in follows the existing staff cancel/reschedule review convention and never uses generic record updates. Refund proposals cannot be approved by a connected MCP client. These tools return REST-safe projections without provider tokens, payment secrets or booking credentials. Hosted MCP invokes these operations in-process through TeamAgent under the tool’s OAuth scopes; direct analytics and transaction REST routes retain privileged admission. Connecting a Google or Microsoft account or adding a feed stays in the person’s own browser; hosted MCP’s calendar connection tools cover existing connections. Billing impact: no new billing model, bypass or usage producer; the canonical booking, refund, entitlement and index-reconciliation paths remain authoritative. Cost allocation: these tools add access through existing TeamAgent/MCP runtime and existing domain operations; no new provider or meter is introduced. MCP OAuth grants include `calendar:write` for reviewed changes to the caller’s own Calendar view preferences. The hosted calendar connection tools manage the caller’s own connected Google/Microsoft accounts and feeds once the person turns on AI access: every tool needs `calendar:read`; update and refresh also need `calendar:write`, and disconnect also needs `calendar:connections:write` plus approval on the Simply360 approval page. Connecting an account or adding a feed stays in the person’s own browser, and Ask Simply cannot use the connection tools yet. ### Generic booking configuration parity Hosted MCP and Ask Simply expose `list_booking_binding_configurations`, `get_booking_binding_configuration`, `list_booking_channel_configurations` and `get_booking_channel_configuration` as READ operations (`bookings:read`). Each configuration also has `draft_create_`, `draft_update_`, `draft_activate_` and `draft_retire_booking_binding_configuration` or `draft_retire_booking_channel_configuration` proposals (`bookings:manage`). All twelve require Bookings Manage for the exact selected Team; Manage Own and View do not suffice. Each of the eight mutations uses Lane B review because it changes scheduling configuration. Binding creation produces an ACTIVE binding; channel creation produces a DRAFT, updates require DRAFT, and channel activation requires ACTIVE bindings. Approval uses the same API-owned handlers, locks, ownership, definition, pricing and lifecycle checks as REST. The existing REST routes remain privileged; these tools add no direct third-party OAuth admission. SDK methods are available under `bookings.*BindingConfiguration(s)` and `bookings.*ChannelConfiguration(s)`. Configuration lists return at most 25 entries per agent page, with total, limit, offset and hasMore. Continue with the next offset. Credentials and pricing secrets must never appear in arguments, proposals or results. The existing MCP/OpenAPI drift check also checks staff Bookings and Calendar operations in reverse. Every operation needs runtime-enabled hosted MCP and TeamAgent coverage, or an exact operationId exception with a reason and existing evidence paths in `packages/mcp-core/src/staffOperationParity.ts`. Semantic coverage is recorded separately as an equivalence. Only registered public invitee/guest operations with matching HTTP coordinates are excluded. Privileged REST tier and absence of a web caller are never grounds for an automatic exception. The original seven exceptions were physical-resource discovery, schema mapping, public-run bound-record grants, and four person calendar connection operations pending Google Limited Use review (owner decision 2026-11-16). Ask Simply also exposes `draft_confirm_booking` through `invoke_capability`. It reviews the exact quote, slot and participants before the canonical staff confirmation command. This is Lane B; current BOOKINGS_BOOK, Collection, resource and SecurityScope authority is rechecked at approval. Existing hosted `confirm_booking` keeps its canonical command. Provider consent, callback and private feed enrollment remain explicit web-only exceptions, with reasons, evidence and exact HTTP coordinates in the typed registry. `list_bookings` reads the same permission-scoped history as REST, across all dates, with the same status, time, event-type and physical-resource filters. Manage Own follows event-type ownership and includes bookings assigned to another host on an owned event type. This READ tool requires `bookings:read` and the canonical Bookings history, Collection, mapped-field and SecurityScope authority. Agent pages are bounded to 25; Calendar items are not a history substitute. `list_booking_physical_resources` and `get_bookings_schema_mapping` give agents the two authoring-support reads the staff event type form and Calendar use. Both call the REST routes' shared operations (`bookingsAuthoringSupportReads.ts`). Physical-resource discovery keeps the REST authority: Team-wide Bookings Manage edit with `bookings:manage`, BOOKINGS_BOOK on the Collection, Collection read and SecurityScope filtering, in agent pages of at most 25. The schema mapping read needs `bookings:read` with Bookings View, Manage Own or Manage, returns public Simply IDs only, and refuses with `BOOKINGS_SCHEMA_UNAVAILABLE` exactly as REST. `draft_confirm_booking` stores the canonical resolved amount in minor units, currency, payment mode, slot and participant counts in its review diff, separate from the executable request. Provider and pricing secrets are never included. Public guest exclusions are now exact operationId entries with method/path, reason and evidence in the typed parity registry; no path prefix excludes future operations. The seven provider consent/credential-exchange operations and the two browser-session-only AI access consent routes (`GET`/`PUT /v1/calendar/ai-access`) join the one remaining original exception, the bound-record grant, with reasons, evidence and exact HTTP coordinates. The four person calendar connection operations are now covered by hosted MCP’s calendar connection tools; Ask Simply keeps those tools excluded under the Limited Use review. All ten exceptions and the public guest registry fail closed on stale IDs, missing evidence or conflicting dispositions.
↑