---
name: ourfamilybrain
description: Work with the Our Family Brain MCP server — a shared family workspace (boards, lists, notes, calendars, messages, smart home). Use when the user wants to organize, remember, schedule, or automate anything family-related through the family brain.
---

# Our Family Brain

Our Family Brain is a shared family workspace. Each family member's personal AI assistant joins the family and works with boards (kanban), lists, a knowledge base, calendars and events, messages, files, and smart-home devices — all permission-checked per agent.

## Connecting

The MCP server lives at `https://ourfamilybrain.com/mcp` (Streamable HTTP, JSON-RPC 2.0). Authenticate with `Authorization: Bearer <agent_token>` or OAuth 2.1. Full setup instructions: `https://ourfamilybrain.com/connect-agent.md`.

## The catalog: two tools

`tools/list` returns exactly two tools. This is the whole interface:

- **search_tools** — search the full catalog (286 tools) by task keywords. Returns the top matches with their full input schemas inline, each with a relevance `score` (higher = stronger match) and the `scopes` it requires. An empty result list means no tool plausibly fits — don't guess at a weak match. The response also carries `match_confidence`: when it reads `low` (with `no_confident_match: true`), even a non-empty result list is weak guesses — don't act on it; rephrase or tell your person no tool fits. And when `tools_outside_your_scopes` names tools, those matched but need scopes your credential lacks — each entry names the scope it requires, and `tools_outside_your_scopes_total` counts every match when only some are shown; say that (and name the scope, which a family admin can grant in the console under My Agents), rather than reporting the capability doesn't exist. One exception: an entry with `blocked_by: "personal_access"` is NOT missing its named scope — you already hold it; the real gate is your owner's personal-access toggle, which is off (the entry's `blocked_reason` says so). Ask your owner to enable personal access for you in the console under My Agents; do not ask for a scope grant you already have. No auth required. Use it first whenever you are unsure which tool fits. When you search while connected with a credential, results are filtered to the tools that credential can actually run — its scopes, your family's enabled features, and its bindings — so connect first, then search, for the truest picture; the response's `visible_tools` says how many of the catalog you can use.
- **execute** — run JavaScript against the family workspace. This is the primary way to get work done.

`tools/call` also accepts any underlying tool name directly, but prefer `execute` — one snippet replaces many round trips.

## The fb SDK

Inside an `execute` snippet, `fb` exposes one async method per family tool, named exactly like the tool (`fb.board_list`, `fb.event_create`, `fb.message_send`, ...). `family_id` is optional on every tool — omit it and your default family is used. Most people have one family. If yours has several, `family_list` shows them; pass `family_id` only when your person asks about a different family.

```js
// List boards, then create a card on the first one — one round trip.
const boards = await fb.board_list({});
const card = await fb.card_create({ board_id: boards.boards[0].id, title: "Buy milk" });
return { boards: boards.boards.length, card: card.card_id };
```

- Each `fb` method returns the parsed JSON result, or throws an `Error` you can catch and handle. The thrown error carries a `code` (the API's error code — `forbidden`, `not_found`, `invalid_arguments`, ...) and a human-readable `message`.
- Top-level `await` is allowed. `console.log` output is captured and returned.
- The result shape is `{ ok, value, logs, toolCalls }` on success. On failure it is `{ ok: false, error: { code, message }, logs, toolCalls }` — `error` is always an object, never a bare string.
- **Safe retries:** the create tools accept an `idempotency_key` — `item_create`, `message_send`, `event_create`, `card_create`, `kb_create`, `chore_list_create`, `chore_item_create`, `chore_item_complete`, `chore_list_update`, `chore_list_delete`, `chore_item_update`, `chore_item_delete`, `chore_item_uncomplete`, `chore_item_claim`, `chore_excused_create`, `chore_excused_delete`, `chore_away_create`, `chore_away_delete`, `chore_swap_create`, `chore_swap_respond`, `chore_list_restore`, `chore_item_restore`, `recipe_create`, `recipe_import_url`, `recipe_import_paste`, `recipe_add_to_list`, `meal_idea_create`, `meal_idea_promote`, `meal_plan_create`, `meal_plan_add_item`, `meal_plan_add_to_list`, `board_create`, `comment_create`, `board_list_create`, `board_label_create`, `checklist_create`, `checklist_item_add`, `list_create`, `import_list`, `kb_import`, `section_create`, `calendar_create`, `subscription_create`, `event_duplicate`, `event_reminder_add`, `event_attendee_add`, `kb_comment_add`, `kb_folder_create`, `kb_template_create`, `file_upload`, `file_folder_create`, `secret_create`, `thread_create`, `invite_create`, `invite_email`, `audience_group_create`, `connector_create`, `webhook_create`, `feedback_submit`, `personal_create`, `personal_share_draft_create`, `personal_calendar_feed_create`, `personal_list_create`, `personal_list_item_create`, `smart_home_create_automation` (a covered tool's schema shows the argument). If a call times out and you retry the identical call with the same key, the original result is returned instead of writing a second time. Reusing a key with a *different* payload is rejected with `idempotency_conflict` — use a fresh key for a genuinely new write.
- **Rate limits:** `execute` allows 600 calls per agent per minute — far above normal chained work. A 429 (`rate_limited`) comes with `Retry-After`; limited REST routes also send `RateLimit-Limit` / `RateLimit-Remaining` / `RateLimit-Reset` headers so you can budget before you hit a cap.

## Connections: the family's shared external tools

A family can connect external MCP servers as **connections** — weather, home systems, work tools — configured once on the family brain. Agents never wire up their own MCP endpoints or credentials for these: you call the connection's tools *through* the hub, and the hub injects the stored credential. You never see the credential itself (reveal is human-only, in the console).

- **Discover by task.** `search_tools` indexes the tools of every connection you're granted alongside the built-in tools — ask for the task ("check the weather"), not the plumbing. A proxied hit is marked `proxied: true` and names its `connector_id`. `connector_list` shows the family's connections and your `granted` flag; `connector_tools` lists one connection's tools with their full argument schemas.
- **Call through the hub.** `connector_call({ connector_id, tool, arguments })` — arguments are validated against the tool's schema before anything is forwarded, so read the schema from `connector_tools` or the search result instead of guessing argument names.
- **Access is granted per agent, sometimes per tool.** New connections start with no grants at all. If a call or tool list refuses you, `connector_request_access({ connector_id })` asks the family's admins — they're notified, and asking again within 24 hours won't re-notify them. A grant can also be narrowed to named tools, and grants change over time: treat a 403 as "ask", not "retry".

## Workflow that works

1. **Search first.** `search_tools({ query: "calendar event" })` → `event_create` with its schema inline.
2. **Batch in one snippet.** Chain calls, branch on results, filter and transform in code. Read everything you need, then write — a plan-then-act snippet beats five chatty calls.
3. **Search before you create** (`search`, `kb_search`) to avoid duplicates. Prefer edits over duplicates.
4. **Handle failures in code.** A missing board, a permission error — catch it, fall back, and report what happened instead of dying silently.
5. **File feedback when something is broken or missing.** `feedback_submit` sends bugs, feature requests, praise, or questions to the app owner's inbox — prefer filing over staying silent.
6. **Catch up through the inbox.** Everything addressed to your person is recorded in their event inbox whether or not any notification fired: assignments and chore assignments, mentions, direct and group messages, reminders, calendar invites/changes/cancellations, meal assignments, note shares/comments/changes, access requests and their outcomes, and connection events — each kind gated on the scope of the surface it belongs to (the `events_list` description lists them all). Poll `events_list` (cursor: pass the previous `next_since_id` as `since_id`), then `events_mark_read`. Read state is per-person, shared across all of their agents — another agent marking read lowers your unread count too. If `person_linked` comes back false, your agent isn't linked to a person and has no inbox at all (that's not the same as an empty inbox). MCP's server-push notifications exist in the spec, but today's clients don't act on them — polling this inbox is the supported pattern for learning what happened while you were away.
7. **Message people in threads.** Conversations with people — DMs and groups — are threads: `thread_list` to find one, `thread_create` to start one (one participant = a DM), `thread_messages` to read its history, `message_send` with `thread_id` to post into it, `thread_mark_read` to clear its unread state. `message_send` without a `thread_id` is a legacy family broadcast (or a direct note to one *agent* via `to_agent_id`, which addresses agents, not people).

```js
// Friday-night pattern: find-or-create, then act.
// fb.search answers per-type buckets — the kb hits live under
// found.kb (there is no flat `results` list).
const found = await fb.search({ q: "pizza night", types: ["kb"] });
let note = found.kb?.[0];
if (!note) {
  note = await fb.kb_create({
    title: "Pizza night ideas",
    body: "Pizza night ideas for the family.",
  });
}
return note;
```

## Chores

Chores are recurring checklists ("routines"): a chore list holds items, each item is a chore somebody is responsible for on a schedule. The vocabulary matters — the list is a **routine**, the daily view is **Today's checklist**, and completion **credit** belongs to the person credited, which is not always the person (or agent) who tapped it.

- **See today:** `chore_today` returns the plate for the person you act for (their chores with due states — today, overdue, due-by times — plus whether they're away). Per routine, `chore_list_get` returns the items with today's completions, each item's effective assignee for today, and its last-done.
- **Complete honestly:** `chore_item_complete` credits `person_id` when passed, else the item's effective assignee for that date, else your person — an agent is never credited itself. Dates: today/yesterday normally, an admin's agent may backfill 14 days (stamped `late`), and the next scheduled day is allowed to do a chore ahead. Pass `amount` toward an amount chore's target, `photo_file_id` (a family file) as proof. A repeat call for the same day says `already_completed` instead of double-counting. `chore_item_uncomplete` removes credit — only the credited person, the recorder, the assignee, or an admin can.
- **Assign and rotate:** an item has a stored assignee (`assignee_person_id`), or a `rotation` — an array of member user ids whose turns advance per scheduled occurrence. The **effective assignee** for a date resolves in one order: an accepted swap for that date, then the rotation turn, then the stored assignee. `chore_item_claim` takes an unassigned chore for your person. `chore_swap_create` offers one date's turn to another member; they `chore_swap_respond` (accept/decline; the offerer can cancel). Deletes are soft: `chore_list_delete` / `chore_item_delete` move a routine or chore to the trash (history kept; `purge: true` deletes permanently), `chore_list_restore` / `chore_item_restore` bring them back, and `chore_trash_list` shows the trash. A routine can carry an `audience` (same shape as notes and lists) — outside its audience the routine does not exist.
- **Schedules:** `schedule_kind` is `weekdays` (with `days_of_week`), `interval` (`interval_days` from `anchor_date`), `monthly` (`monthly_day`, clamped to month end), or `once` (`due_date` — a one-off that retires when done). `due_time` is a same-day due-by. `points` weight the tallies; `target_amount` + `unit` make an amount chore (a streak day counts when the household total reaches the target and the person contributed). Pause without deleting via `archived` on items and lists.
- **Fairness reads:** `chore_history` is the completion ledger (who was credited, who recorded it, late stamps, amounts). `chore_status` gives a window of day states per item (done/missed/pending/upcoming/excused) plus per-person tallies. `chore_streaks` gives current + best streaks — a cover keeps the assignee's streak, and excused or away days bridge a streak instead of breaking it.
- **Excused and away:** `chore_excused_create` excuses a day (kind `skip` for your person's future day, `freeze` when an admin repairs a past day, `house` when an admin gives the whole household the day). `chore_away_create` declares an away period — away members are excused and rotations skip them.
- **Starting a routine:** `chore_proposals` returns starter packs; apply one with `chore_list_create` and its `items` (validated as a batch — one bad item refuses the whole create). `chore_item_create` / `chore_item_update` take the full field set above; unknown arguments are rejected by name, never silently dropped.

## Audiences

Most shared content — notes, lists, boards, calendars, events, files, and routines — can carry an **audience**: who in the family can see it. Outside its audience, an object does not exist (reads and writes alike return not-found; there is no existence leak).

- **Shape:** omit the audience (or pass `"everyone"`) for the whole family, including people who join later. A restricted audience is `{user_ids: [...], group_ids: [...]}` — user ids from `audience_people_list`, group ids from `audience_group_list`. (A calendar-style `{mode: "selected", user_ids, group_ids}` also parses; the canonical shape is the one above.) Read-backs resolve the audience to people and groups **by name** and carry a `sharing` summary (`{state: "family" | "shared" | "only_you", people: n}`) — quote that, not raw policy ids, when your human asks who can see something.
- **Owner gate:** only the person who created an object (or the audience policy's owner, or an admin who can currently see it) may change its audience. Anyone else gets `audience_owner_required` — being *in* the audience is not enough.
- **Creator lockout:** an audience may exclude its own creator. Create/update responses warn when that happens; the creator can still repair the audience afterward (the repair path is deliberate), but until they do, the object is invisible to them too.
- **Groups:** named groups (`audience_group_create`, `audience_group_set_members`, `audience_group_delete`) are family-admin surface — those writes need the `admin` scope. Group membership is live: adding a person to a group immediately grants them everything that group can see.
- **Drafts vs publish:** personal share drafts are review artifacts — an agent drafts, and only a human publishes. Never present a draft as shared.
- **Personal space:** personal tools are gated by the person's `personal_access` setting, which is separate from your scopes — a scope error naming `personal_access` means the person hasn't enabled agent access to their personal space, not that your scopes are wrong.
- **Requesting access:** when your person knows an object exists but can't see it (someone named it to them), ask its owner with the surface's request tool — `list_request_access`, `board_request_access`, `chore_list_request_access`, `file_request_access`, `calendar_request_access`, `kb_request_access`. The owner is notified (repeats within 24 hours don't re-notify), and if they grant it, an `access_changed` event lands in your person's inbox naming the object. There is no deny action: no event means no answer yet — don't re-ask inside the 24-hour window.

## Sharing links

Create and get results for notes (`kb_create`, `kb_get`, `kb_update`), lists (`list_create`, `list_get`), boards (`board_create`, `board_get`), cards (`card_create`, `card_get`, `card_update`), and events (`event_create`, `event_get`, `event_duplicate`) include a **`url`** field: the canonical link to that resource in the family's console. When you create something for a person — a note they should review, a list they should see — offer them that link; don't make them go find the thing.

The best delivery is an **in-app message to that family member** with the link in it (`message_send`, or a thread via `thread_create`): they're already signed in there, and the link lands them on the resource. The links are family links — they require the recipient to sign in as a family member and respect the resource's audience, so never treat one as a public link or post it outside the family.

## Operator telemetry

If you are the app operator's agent (or the operator), `telemetry_query` runs named saved queries over the app's request/tool metrics — global aggregates only, never family content. The query names are failures (error table by surface), slowest_routes (latency percentiles), mcp_health (execute/search health), release_compare (before/after around a deploy timestamp — pass the at and window_hours arguments), route_detail (one named route's calls, errors, and p50/p95 bucketed per hour — pass the route argument, and optionally source), and client_health (browser probe health: completed-probe totals, error and timeout shares, slowest probes, and stuck-probe counts). All but release_compare take a trailing window via `hours` (1–2160, default 24). Use release_compare after a deploy to prove its effect instead of assuming it. Most agents can't see or call this tool at all; that's the access model working, not a bug.

## Sandbox rules

Each `execute` runs in a fresh isolate:

- No filesystem, no environment variables. `fetch` (network) is blocked — only `fb` methods can reach outside.
- Only the real family tools exist on `fb`. `execute` and `search_tools` are not available inside a snippet.
- Calls run with **your own permissions** — scoped exactly like your agent token. Writes are audited.
- Bounded execution (~20s CPU). Keep snippets focused; split long jobs across calls.

## Task cheat-sheet

| I want to...                     | Search for       | Typical tools                                            |
| -------------------------------- | ---------------- | -------------------------------------------------------- |
| Plan / kanban                    | "board"          | `board_list`, `board_create`, `card_create`, `card_update` |
| Shopping / todo lists            | "shopping list"  | `list_create`, `item_create`, `list_get`                 |
| Remember things                  | "note"           | `kb_create`, `kb_search`, `kb_update`                    |
| Schedule                         | "calendar event" | `calendar_list`, `event_create`, `event_list`            |
| Cook / plan meals                | "recipe"         | `recipe_list`, `recipe_create`, `meal_plan_get`, `meal_plan_add_to_list` |
| Chores / routines                | "chore"          | `chore_today`, `chore_list_get`, `chore_item_complete`, `chore_streaks`, `chore_history` |
| Message the family               | "message"        | `message_send`, `message_poll`                           |
| Smart home                       | "smart home"     | `smart_home_list_devices`, `smart_home_control`          |
| Invite someone                   | "invite agent"   | `invite_create`                                          |
| Search everything                | "search"         | `search` (unified, cross-workspace)                      |
| Report a bug / ask for a feature | "feedback"       | `feedback_submit`, `feedback_list`                       |

Three everyday aliases also work in `execute` and `tools/call` — `list_items` (for `list_get`), `list_item_create` (for `item_create`), and `message_list` (for `message_poll`) — but prefer the canonical names above; search and the catalog only ever show those. One deprecated alias also resolves: `board_list_list`, the former name of `board_column_list` (list a board's columns) — saved calls keep working, but new code should use `board_column_list`.

## Skill discovery

This skill is also served over MCP resources at `skill://ourfamilybrain/SKILL.md` (`resources/list` + `resources/read`) for clients that pull skills from the server.
