Skip to content

get_email type coercion + search mailbox scope + scheduled mode failures #67

@mrthedoozer

Description

@mrthedoozer

Bug Report — Three related issues in scheduled/automated mode

Environment

  • Version: v0.1.8
  • Running via: Claude Cowork scheduled tasks (automated, unattended)

Bug 1: get_email — message_id type coercion in scheduled mode

When called from a scheduled task, message_id is passed as a string instead
of an integer. The tool rejects it with a type error, making it impossible to
read email bodies in any automated context.

Workaround: None reliable. Triage falls back to metadata only
(subject/sender/date).

Expected: Tool should accept both integer and string message_id, or coerce
internally.


Bug 2: search — returns zero results when scoped to a mailbox

Calling search with an account or mailbox parameter returns zero results
even when matching emails exist. Global (unscoped) search also returns zero
results in scheduled mode.

Workaround: Omit mailbox scope. Results are unreliable either way in
automated mode.


Bug 3: get_emailslimit parameter type coercion in scheduled mode

Same issue as Bug 1 — limit is passed as a string, causing a type error.
Workaround is to omit the limit parameter entirely.


Impact

All three bugs make the MCP effectively read-only for email bodies in scheduled/
automated mode. The FTS5 index (the main value-add of this fork) is unreachable
in automation contexts.

Happy to provide more detail or test fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions