Skip to main content
Glama

ofw_check_freshness

Read-only

Check cached OurFamilyWizard data against live server state by comparing folder counts and message lifecycle states, proving a draft remains unsent without a full sync.

Instructions

Cheaply confirm whether the local cache still matches OurFamilyWizard, WITHOUT running a full sync. Use this before asserting anything about current state — especially "draft X is still sitting unsent". Costs one OFW request for the folder check plus one per messageId. For each folder it returns the live server count next to the cached count. For each id it returns a LIVE lifecycle state — "draft" | "sent" | "received" | "deleted" | "unknown" — alongside folder, sentAt, existsOnServer and a content comparison. state is the field that answers "is this still a draft?": a draft that has been SENT still exists on the server, so existsOnServer:true never distinguished the two. A cached draft whose state is no longer "draft" reports inSync:false even when its text is byte-identical. Content is compared by revision hash, because OFW draft timestamps do NOT change when a draft is edited in the web app. Does not fetch bodies into the cache, does not touch attachments, and does not depend on sync state. For draftKeys, or a full live draft inventory, use ofw_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
foldersNoFolders to compare cached vs live counts for. Defaults to all three when messageIds is not given. Must be non-empty if given.
messageIdsNoSpecific ids to verify against OFW (max 25). Ids cached as drafts, as sent messages, or as already-read inbox messages are probed freely — none of those can stamp the record. Anything else is skipped — see allowMarkRead.
allowMarkReadNoDefault false. Probing an id whose cached state cannot rule out an unread INBOX message requires fetching its detail, which marks it READ on OurFamilyWizard and stamps a co-parent-visible "First Viewed" time — irreversible. Such ids are skipped (reason:"WOULD_MARK_READ") unless you set this to true. The server-wide OFW_ALLOW_MARK_READ=false is a ceiling this cannot raise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.19.4

TDQS

A4.1/5.0
Behavior1/5

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

The annotation declares readOnlyHint: true, implying no side effects. However, the description explicitly states that setting allowMarkRead: true 'marks it READ on OurFamilyWizard and stamps a co-parent-visible "First Viewed" time — irreversible.' This is a write operation that directly contradicts the readOnlyHint. The contradiction is serious and undermines trust in the tool's safety classification.

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

Conciseness4/5

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

The description is long but densely packed with necessary context: costs, use cases, state semantics, side effects, and alternatives. It's front-loaded with the core purpose and avoids fluff. It could be trimmed slightly, but every detail serves the agent's decision-making.

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?

Given there is no output schema, the description fully describes what is returned: live server counts per folder, and for each id: state, folder, sentAt, existsOnServer, and content comparison. It also explains the meaning of state and why existsOnServer is insufficient. Costs, side effects, and exclusions are covered. No missing information is evident for an agent to call this tool correctly.

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

Parameters5/5

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

Schema coverage is 100%, so each parameter has a baseline description. The tool description goes well beyond this: it explains the default behavior of folders when messageIds is absent, the max of 25 ids, why certain ids are probed freely, and the full implications of allowMarkRead including the irreversible mark-read side effect. It also clarifies that content comparison uses revision hash because timestamps don't change on edit. This is substantial added meaning beyond the schema.

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 description opens with a specific verb and resource: 'Cheaply confirm whether the local cache still matches OurFamilyWizard, WITHOUT running a full sync.' It clearly distinguishes the tool from a full sync and from ofw_status, which it names as the alternative for draft inventories. The purpose is unambiguous and immediately actionable.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'Use this before asserting anything about current state — especially "draft X is still sitting unsent".' It also states when not to use it: 'For draftKeys, or a full live draft inventory, use ofw_status.' This is a clear routing decision with no ambiguity.

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