Manage the entire Butterbase substrate: the action ledger, the entity graph, source artifacts, institutional memory (decisions/commitments/learnings), outbox, attention rules, snapshots, and settings. Every substrate write goes through the action ledger via "propose". The ledger captures the proposer, the policy verdict, and the result; nothing is written to the substrate without an action_id you can trace. Actions, Writes (action ledger): - "propose": Propose a write. capability ∈ {upsert_entity, update_entity, patch_entity, record_decision, record_commitment, record_learning, upsert_source_artifact, merge_entities, delete_entity, bulk_revert_actions, record_principle, retire_principle, supersede_decision, send_email_draft, revert_action}. Body: { capability, payload, dangerously_skip_approval?, idempotency_key? }. A replay key binds the normalized capability, payload and trusted app/rule scope within the organization, without a TTL. Matched replays return the prior verdict, result and actual status with replay: true. Reusing the key for different work, or replaying an ambiguous historical key, returns 409 idempotency_intent_conflict; different work requires a fresh key and authorization. - "approve": Approve a previously-proposed action that is awaiting review. { action_id }. - "reject": Reject a previously-proposed action. { action_id, reason }. Actions, Ledger reads: - "list_actions": List action ledger rows. Optional: { status?, capability?, source_app_id?, source_rule_id?, limit?, before?, include_noops? }. Status: proposed, approved, rejected, executing, executed, failed, reverted; pending aliases proposed. status=approved means "a human approved this row" (approved_at is set), regardless of its current terminal state. Unsupported statuses are rejected. No-op rows (result.changed=false) are hidden unless include_noops is true. - "get_action": Get one ledger row by id. { action_id }. - "list_removals": List hard entity removals, newest first. Optional: { before?, limit? }. action_id is the ledger row for capability deletes and null for deletes outside the capability path. Actions, Entity graph: - "find_entities": List/fuzzy-search entities. Optional: { type?, q?, primary_email?, limit? (max 1000), cursor?, include_deleted? }. type ∈ person|company|fund|workspace|team|project|event|agent|self. Soft-deleted entities are excluded unless include_deleted is true. Returns { entities, next_cursor? }. - "get_entity": Get one entity by id. { entity_id }. - (writes use "propose" with capability=upsert_entity / update_entity / patch_entity / merge_entities / delete_entity) Actions, Source artifacts (meeting transcripts, email threads, call recordings, etc.): - "list_source_artifacts": List/search. Optional: { kind?, q?, limit?, count? }. q runs FTS over title+summary+content. - "get_source_artifact": Get one artifact by id (incl. full content). { artifact_id }. - (writes use "propose" with capability=upsert_source_artifact) Actions, Institutional memory: - "search_memory": FTS across decisions, commitments, learnings, and source_artifacts. { q?, kinds?, limit? }. q is optional, omit to list recent items. kinds = comma-separated subset of {decisions,commitments,learnings,source_artifacts}. - "list_memory": Browse memory chronologically (no FTS). Filter by source_artifact_id, kinds, superseded. { kinds?, source_artifact_id?, superseded?, before?, limit? }. - "list_agent_memories": Browse compact curated memory summaries. { cursor?, limit? }. - "search_agent_memories": Search only curated agent memories. { q, cursor?, limit? }. - "get_agent_memory": Read one complete curated memory and its evidence. { memory_id }. - Curated memory writes use "propose" with record_agent_memory, amend_agent_memory, or archive_agent_memory. Amend/archive require memory_id and expected_revision in payload. These records never change policy. - (writes use "propose" with capability=record_decision / record_commitment / record_learning / record_principle / supersede_decision / retire_principle) - record_decision with kind="policy_decision" and applies_to {"operator_sweep":"archive"} stops timer sweeps; event wakes and user turns still run. Supersede the decision to resume. Actions, Outbox (side-effect dispatch queue): - "list_outbox": List rows. Optional: { status?, limit? }. status ∈ pending|in_flight|succeeded|failed|dead_letter|cancelled. - "retry_outbox": Manually re-queue a failed/dead-letter row. { outbox_id }. - "cancel_outbox": Mark a not-yet-completed row as cancelled. { outbox_id }. Actions, Attention rules (cron-triggered automation): - "list_rules": List all attention rules. Optional: { enabled? }. - "get_rule": Get one rule by id. { rule_id }. - "create_rule": Create a new rule. { rule: {name, description?, trigger_cron, condition_mode, condition, action_capability, action_payload_template, enabled?, max_fires_per_day?} }. - "update_rule": Full replace by id. { rule_id, rule }. - "delete_rule": Delete by id. { rule_id }. - "enable_rule": Set enabled=true. { rule_id }. - "disable_rule": Set enabled=false. { rule_id }. - "list_rule_firings": History for one rule. { rule_id, status?, limit?, before? }. Actions, Snapshots & settings: - "snapshots": Daily aggregate snapshots. Optional: { days? }. - "get_settings": Show substrate settings (e.g. yolo_mode). - "set_yolo": Toggle YOLO mode. { yolo_mode: boolean }. Actions, Policy (read the rules that govern you BEFORE proposing): - "list_capabilities": The guardrail matrix, every capability's default_policy, yolo_eligible, reversible. Read this to know what will gate. - "list_principles": Active principles with their applies_to scope and constraint_spec. Optional: { status?: 'active'|'expired'|'all', limit?, before? }. Defaults to active. - "get_principle": One principle + how many conflicts it has caused. { principle_id }. - "list_policy_conflicts": Conflicts your proposals hit. Optional: { resolved?: 'true'|'false', principle_id?, limit?, before? }. - "get_policy_conflict": One conflict with the principle and blocked action inlined. { conflict_id }. - "resolve_policy_conflict": Record how a human disposed of a conflict. { conflict_id, resolution, reason? } where resolution is one of overridden | amended_principle | retired_principle | confirmed_principle | cancelled_action. NOTE: 'cancelled_action' also rejects the blocked action. 'overridden' does NOT approve it, call approve explicitly. Capability default policies (what happens when you "propose" each capability): record_decision → auto (reversible) record_commitment → auto (reversible) record_learning → auto (reversible) upsert_entity → auto (reversible) update_entity → auto (reversible) patch_entity → auto (reversible) upsert_source_artifact → auto (reversible) revert_action → auto (not reversible) record_principle → approval_required (not reversible) ← mutates policy layer amend_principle → approval_required (not reversible) ← mutates policy layer supersede_decision → approval_required (not reversible) ← mutates policy layer retire_principle → approval_required (not reversible) ← mutates policy layer delete_entity → approval_required (not reversible) merge_entities → approval_required (not reversible) bulk_revert_actions → approval_required (not reversible) send_email_draft → approval_required (not reversible; yolo_eligible but agent proposals always gate) Note: record_decision auto-approves, but record_principle / amend_principle / supersede_decision / retire_principle always require human approval, they mutate the policy-enforcement layer of the substrate. They are also yolo_eligible=false, so neither yolo_mode nor dangerously_skip_approval can auto-approve them. You cannot rewrite the rules that gate you. To CHANGE a principle, propose one of: record_principle { title, applies_to, constraint_spec, rationale?, salience? } , create amend_principle { principle_id, reason, title?/rationale?/applies_to?/constraint_spec?/salience? }, edit in place, keeps the id stable so existing conflict rows still resolve retire_principle { principle_id, reason } , set status=expired (not a delete) Use "list_principles" to read constraints BEFORE proposing, rather than discovering them by being blocked. Common returns: the raw substrate API JSON response. The agent has full CRUD over the substrate via this single tool, there is no other substrate tool to call.
Parameters
The substrate operation to perform. One of: `provision`, `propose`, `approve`, `reject`, `list_actions`, `get_action`, `list_removals`, `find_entities`, `get_entity`, `list_source_artifacts`, `get_source_artifact`, `search_memory`, `list_memory`, `list_agent_memories`, `search_agent_memories`, `get_agent_memory`, `list_outbox`, `retry_outbox`, `cancel_outbox`, `list_rules`, `get_rule`, `create_rule`, `update_rule`, `delete_rule`, `enable_rule`, `disable_rule`, `list_rule_firings`, `snapshots`, `get_settings`, `set_yolo`, `list_capabilities`, `list_principles`, `get_principle`, `list_policy_conflicts`, `get_policy_conflict`, `resolve_policy_conflict`.
Ledger action id (act_…), for approve/reject/get_action.
Source artifact id (art_…), for get_source_artifact.
ISO-8601 timestamp cursor, list_actions/list_rule_firings/list_memory.
Capability name, required for "propose".
Policy conflict id (pcf_…), for get_policy_conflict/resolve_policy_conflict.
Include precise total, list_source_artifacts.
Opaque cursor from a previous find_entities response.next_cursor.
dangerously_skip_approval
Owner-only YOLO override for propose. Principle conflicts still block.
Number of days, snapshots.
Required for "provision", display name for the substrate self-entity.
Filter rules by enabled, list_rules.
Entity id (ent_…), for get_entity.
Optional client key to dedupe retries on propose.
Include soft-deleted entities, find_entities. Default false.
Include ledger rows whose result.changed is false, list_actions. Default false.
Kind filter, list_source_artifacts.
Comma-separated memory kinds, search_memory/list_memory.
Max rows (up to 1000 for find_entities).
Tsquery mode: 'and' (default, every word required), 'or' (any word), 'phrase' (adjacent). One of: `and`, `or`, `phrase`.
Curated agent memory id, for get_agent_memory.
Optional target organization id (UUID). Sent as `x-organization-id` header. Use to operate on a shared org's substrate. Requires the caller's API key to be bound to the same org (mint one via manage_auth_config generate_service_key + organization_id). For JWT auth (dashboard), the auth layer validates membership against organization_members.
Outbox row id (obx_…), for retry_outbox/cancel_outbox.
Capability payload, required for "propose".
Exact email filter (case-insensitive), find_entities.
Principle id (dec_…), for get_principle / list_policy_conflicts filter.
Search query, find_entities (fuzzy), list_source_artifacts (FTS), search_memory.
Required reason for "reject". Appended to the audit trail.
Required for "resolve_policy_conflict". How the human disposed of the conflict. One of: `overridden`, `amended_principle`, `retired_principle`, `confirmed_principle`, `cancelled_action`.
Filter conflicts by resolved state, list_policy_conflicts. One of: `true`, `false`.
Rule body, create_rule/update_rule.
Attention rule id (rule_…), for *_rule actions.
Filter ledger by source app, list_actions.
Restrict memory rows / artifacts to those linked to this source_artifact_id, list_memory.
Filter ledger by source rule, list_actions.
Status filter: list_actions accepts proposed, approved, rejected, executing, executed, failed, reverted; pending aliases proposed. Other actions use their own states (outbox pending is unchanged).
list_memory only: include superseded rows (default: include all). One of: `true`, `false`.
Entity type filter, find_entities.