read
automation

Dry-run one action through this store’s own gates against its real state, and keep nothing. Answers what each gate would

Changed on

Dry-run one action through this store’s own gates against its real state, and keep nothing. Answers what each gate would decide — store_rail (the merchant’s rules), policy (kill switch, dry-run, automation, rate limits, credit budget), ownership (who holds field) and the ad-spend and money-out ceilings (via spend or money_out) — as allow, clamp, review, deny, not_evaluated or unavailable, with the refusals and clamps collected; would_run is the field to branch on. mode and autonomy default to the store’s Brain plan and may be set to ask a what-if. Nothing is executed, queued or recorded: the run is one database transaction that is always rolled back, and a run that cannot prove it kept nothing answers simulation_unverified instead of a verdict. field, spend and money_out are asked for the connected app, so a call without one is refused app_required.

post/api/v1/tools/brain_gate_check

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesautomation:read

Request body

object required
domain, string required

e.g. ads_google, pricing, feed.

action, string required

The verb, e.g. adjust_budget.

facts, object

What the store's rules match on (e.g. discount_pct, budget_change_pct).

confidence, number
reversibility_class, 'reversible' | 'compensatable' | 'irreversible'
mode, 'off' | 'dry_run' | 'approval_only' | 'autopilot'
autonomy, 'conservative' | 'moderate' | 'aggressive'
rate_action, string
automation_feature, string
kill_scope, string
estimated_llm_cost_usd, number
field, object

The field this action writes. Ownership is asked for the calling app.

spend, object

A store-wide daily ad spend to check against the ad-spend ceilings.

money_out, object

Money leaving the store (a refund, a credit) to check against the refund ceilings.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision