auto_write
general

Pass the merchant's direction to the Brain. Use `add_instruction` when they state a standing goal or guardrail ("stop di

Changed on

Pass the merchant's direction to the Brain. Use add_instruction when they state a standing goal or guardrail ("stop discounting", "focus on the winter range", "never advertise brand X", "keep spend under 40 a day") — the Brain reads these on every cycle and treats a guardrail as a hard constraint that overrides its own judgement. Use remove_instruction with the EXACT wording of an existing one when they retract it; call get_brain_thinking first and read the list back to them. Use note for a one-off fact the next cycle should know ("we are out of stock on the Aurelle line until Friday") that should not become a permanent rule. ALWAYS confirm the wording with the merchant before writing it — this changes what an autonomous system does with their money. It cannot change budgets, modes, autonomy or caps, and it cannot approve or dispatch anything.

post/api/v1/tools/tell_brain

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
      Scopeswrite

Headers

Idempotency-Key, string

Optional; honoured when sent. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
action, 'add_instruction' | 'remove_instruction' | 'note' required

add_instruction: a standing rule. remove_instruction: retract one, exact wording. note: a one-off fact for the next cycle only.

text, string required

One line, in the merchant's own words where possible. For remove_instruction, the wording of the existing instruction as get_brain_thinking returned it.

because, string

Short context: what the merchant said that led to this.

idempotency_key, string

Optional. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

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