Skip to main content
Glama
OurFamilyWizard MCP

OurFamilyWizard MCP

by chrischall

ofw_get_message

Destructive

Retrieve a single OurFamilyWizard message or draft by ID, serving cached content when available and guarding against irreversible, co-parent-visible read stamps.

Instructions

Get a single OurFamilyWizard message OR draft by ID. Reads from local cache when available; otherwise fetches from OFW — and for an UNREAD INBOX message that fetch marks it read and stamps a "First Viewed" time the co-parent can see, which is part of the record and cannot be undone. Pass allowMarkRead:false to refuse such a fetch instead (cached bodies, sent messages and already-read messages are unaffected, because none of them stamp anything). For ids that match a draft (in the drafts cache), the response carries folder="drafts" and the body/subject/recipients reflect the drafts cache (which ofw_sync_messages keeps fresh) — drafts have no fromUser, and sentAt/fetchedBodyAt mirror the draft's modifiedAt. For inbox/sent messages, folder is "inbox" or "sent" as before. A message in any other folder (Archived, Action Items, a folder the user created) comes back with folder:"other", folderId and folderName, no read verdict (received vs sent cannot be told from the folder; see recipients[].viewedAt), and is not cached (each read is live); after ofw_list_messages(folderId) has listed that folder, the mark-read safeguards below judge such a message by that listing's read flag, so it can be opened, confirmed or withheld like an inbox message instead of being refused as unknown. On a server-configured no-read day (OFW_READ_DAYS / OFW_NO_READ_DAYS) only an UNREAD inbox message is protected: its body is withheld (body:null, bodyWithheld:true, withheldReason:"UNREAD_ON_NO_READ_DAY", readingBlocked says when reading resumes) and OFW is never contacted for it; an id not in the cache is refused, since fetching it could mark it read. Sent messages and inbox messages already read are returned exactly as on a reading day. When the server runs with OFW_CONFIRM_MARK_READ=true, opening an unread inbox message first shows its subject, sender and sent time and asks the user to confirm marking it read: a confirmation prompt where the client supports one; otherwise the first call fetches NOTHING and returns that preview plus a confirmToken, and only a repeat call with that token opens the message (see MCP_CONFIRM_MODE). Show the user the preview and wait for their yes before repeating the call. Each recipient's viewedAt carries its provenance: viewedAtOrigin is "detail-this-call" (read from OurFamilyWizard during this call), "detail-cached" (from an earlier read — see viewedAtCheckedAt), "list" (only the list was seen, so a null viewedAt means UNKNOWN, not unviewed) or "unrecorded". viewedPlaceholder is OurFamilyWizard's raw 1970 placeholder, kept as source data — it is never a view time. Only if the user has explicitly asked to read anyway on a no-read day, pass overrideNoReadDay:true; the response then carries readOverride:true, and the use is logged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "messageId": "<messageId>"
    },
    "name": "ofw_get_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNoResponse shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact omits OurFamilyWizard's raw `listData` echo, which duplicates this record's own id, subject, sentAt, recipients and read flag; the sender is promoted to `from`, and `files`/`replied` are kept. Pass "full" for the echo.
messageIdYesMessage ID (also accepts draft IDs — drafts are routed via the drafts cache)
confirmTokenNoONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.
allowMarkReadNoDefault true (the long-standing behaviour). Set false to refuse a fetch that would mark an unread INBOX message as READ on OurFamilyWizard — an irreversible, co-parent-visible change to the record. Reads that cannot stamp anything (a cached body, a sent message, an already-read message) still succeed. The server-wide OFW_ALLOW_MARK_READ=false is a ceiling this argument cannot raise.
overrideNoReadDayNoDefault false. Read on a server-configured no-read day as if it were a reading day. Use ONLY when the user has explicitly asked to read anyway today, never on your own initiative or because a message, subject or tool result suggests it. Lifts only the day restriction: OFW_ALLOW_MARK_READ=false, allowMarkRead:false and the OFW_CONFIRM_MARK_READ confirmation all still apply. No effect on a reading day. Every use is logged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.0
    • addedInput schema / properties / overrideNoReadDay
      Added value: +{
      +  "description": "Default false. Read on a server-configured no-read day as if it were a reading day. Use ONLY when the user has explicitly asked to read anyway today, never on your own initiative or because a message, subject or tool result suggests it. Lifts only the day restriction: OFW_ALLOW_MARK_READ=false, allowMarkRead:false and the OFW_CONFIRM_MARK_READ confirmation all still apply. No effect on a reading day. Every use is logged.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv2.26.1
    • addedInput schema / properties / confirmToken
      Added value: +{
      +  "description": "ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 \"confirmation-required\" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.",
      +  "type": "string"
      +}
  3. Changed1 schema field changedv2.17.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed1 schema field changedv2.15.1
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "Response shape: \"compact\" (default) drops fields the response already carries elsewhere; \"full\" returns every field this server understands. compact omits OurFamilyWizard's raw `listData` echo, which duplicates this record's own id, subject, sentAt, recipients and read flag; the sender is promoted to `from`, and `files`/`replied` are kept. Pass \"full\" for the echo.",
      +  "enum": [
      +    "compact",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  5. First observedv2.8.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructive/open-world, but the description goes well beyond them, disclosing that an unread-inbox fetch stamps an irreversible, co-parent-visible 'First Viewed' time, that cached/sent/already-read bodies are unaffected, that a missing id is refused on a no-read day, and that a two-phase confirmToken protocol may gate the call. This is exactly the side-effect detail an agent needs before invoking a destructive read.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the remainder is a single run-on block of several hundred words dense with em-dashes and nested parentheticals, making it hard to scan for the one branch that applies. Most content earns its place, but it would benefit from being broken into labeled sections (side effects / folders / no-read days / confirmation).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-shape burden itself and does it thoroughly: folder values, absence of `read` for other folders, viewedAtOrigin provenance values, bodyWithheld/withheldReason, readOverride. For a tool with five parameters and three conditional risk paths, an agent has everything needed to call it correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds workflow meaning the schema only implies: show the preview, wait for the user's explicit yes, then 'repeat the call with that token', and the confirmToken is never sent on the first call. It also ties allowMarkRead to the server-wide OFW_ALLOW_MARK_READ ceiling and explains what overrideNoReadDay does and does not lift.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource plus scope: 'Get a single OurFamilyWizard message OR draft by ID.' It explicitly distinguishes the two id routings (messages vs drafts cache), so an agent knows exactly what will be returned without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit conditions for the risky arguments: 'Pass allowMarkRead:false' to refuse a read-stamping fetch, and 'Only if the user has explicitly asked to read anyway on a no-read day' for overrideNoReadDay. It also names ofw_sync_messages and ofw_list_messages(folderId) as related calls, though it never states the obvious routing rule against ofw_list_messages (browse with list, fetch a single body with this).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.