Skip to main content
Glama

ofw_list_drafts

List draft messages with server-verified freshness: syncs automatically if cache is stale, returns a complete flag and stable draft keys for accurate counts.

Instructions

List draft messages, verified against OurFamilyWizard in ONE call: when the local drafts cache is not verified-fresh, a cheap drafts sync runs first by default (verify:true), so the answer is server-confirmed without a second call. Pass verify:false to answer purely from the cache (no OFW requests). Returns an explicit complete boolean describing the RESULT SET: true means "these are ALL the drafts on OurFamilyWizard as of freshness.asOf" — check it before saying "you have N drafts". Each draft carries its draftKey (stable across the create-then-delete churn of editing) when one is known. An empty result from a cache that is not verified-fresh is REFUSED (result:"UNVERIFIED_EMPTY"); pass autoRefresh:true to sync and answer instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1)
sizeNoDrafts per page (default 50)
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 draft's own id, subject, modifiedAt and recipients. `revision`, `draftKey` and `cacheStatus` are kept on both rungs.
verifyNoDefault true: when the drafts cache is not verified-fresh, run a drafts sync first (cheap — one list page plus one detail per draft) so the response is server-confirmed in one call. Set false to serve straight from the local cache with no OFW requests.
autoRefreshNoIf the result comes back EMPTY from a cache that is not verified-fresh, sync the backing folders first and answer from the refreshed cache instead of refusing. Defaults to the OFW_AUTO_REFRESH env var (false unless set), in which case the call refuses with result:"UNVERIFIED_EMPTY" and names the remedy. Costs OFW requests when it fires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.19.4

TDQS

A4.7/5.0
Behavior5/5

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

It discloses behavior far beyond the annotations: default sync behavior, what 'complete' means semantically, the stable draftKey across draft edit churn, and the UNVERIFIED_EMPTY refusal plus remedy. This is especially valuable because there is no output schema and readOnlyHint=false is otherwise under-explanatory. No contradiction with annotations exists.

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

Conciseness5/5

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

The description is long but every sentence carries a unique, decision-relevant fact: one-call verification, cache-only mode, complete semantics, draftKey stability, empty-refusal and autoRefresh remedy. It is front-loaded with the core one-call promise and is as tight as the complexity allows.

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 full burden of explaining return semantics, and it does: complete boolean, result UNVERIFIED_EMPTY, draftKey, cacheStatus, view shapes, and failure remedies. An agent has enough to call it correctly, interpret the response, and handle edge cases without further investigation.

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 schema already documents every parameter. The description adds meaningful semantics for verify, autoRefresh, and view beyond their schema text, including defaults, cost implications, and result-set consequences. However, page and size receive no additional 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 object: 'List draft messages', then sharpens it with 'verified against OurFamilyWizard in ONE call'. It clearly distinguishes this from draft-mutating siblings like ofw_save_draft and ofw_delete_draft, and from ofw_list_messages, by focusing on drafts and their freshness/verification semantics.

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?

The description gives explicit conditions for parameter choices: 'Pass verify:false to answer purely from the cache' and 'pass autoRefresh:true to sync and answer instead' when UNVERIFIED_EMPTY occurs. It does not, however, explicitly contrast this tool with sibling list tools (e.g., when to use list_drafts vs list_messages), so it stops short of full alternatives guidance.

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