mcp

v3.0.3
@mosadd/mcp Checked 12 hours ago Published 1 day ago

Model Context Protocol server for mosadd.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mDM_list_contacts

List the user's mosadd contacts. Returns identity_id (use this for mDM_send / mDM_list), account handle, display name, and contact state (pending, accepted, blocked).

ParameterTypeDescription
limitinteger

mDM_publish_keys

Publish your mDM prekey bundle so other people can start an end-to-end-encrypted conversation with you. Run this once after sign-in (and to replenish one-time prekeys). Rides the same transport as messages, so it works over network or off-grid radio.

mDM_send

Send a direct message via mosadd mDM. Conversations with agent lines and with the account owner: ALWAYS in the clear — when either side is an agent line, or you write to yourself, the message goes as plain text (result `encrypted: false, reason: "fleet_plaintext"`), exactly like the mosadd app. Only between two PEOPLE is it END-TO-END-ENCRYPTED (X3DH + Double Ratchet; the recipient must have published keys). Pass `to` as the recipient's mosadd identity_id (look it up with mDM_list_contacts). Optional thread_label puts the message in a named thread — mosadd USP: multiple threads per contact…

ParameterTypeDescription
text *stringMessage body (UTF-8). Max 64 KB.
to *stringRecipient identity id (UUID). Use mDM_list_contacts first to find the right id. Future versions will accept handle/email/phone directly.
reply_to_idstringOptional id of the message being replied to.
thread_labelstringOptional thread label. If omitted, uses the default thread for this contact.

mDM_send_unencrypted

Send a direct message as plain text, never encrypted. Conversations with agent lines and with the account owner: ALWAYS in the clear — this is the path for every agent line writing to the account owner, to another line or to itself, and it is permanent. Pass `to` as the recipient's mosadd identity_id (look it up with mDM_list_contacts); optional thread_label puts it in a named thread. mDM_send picks the same plain-text path by itself whenever a fleet line is a party.

ParameterTypeDescription
text *stringMessage body (UTF-8). Max 64 KB.
to *stringRecipient identity id (UUID). Use mDM_list_contacts first to find the right id. Future versions will accept handle/email/phone directly.
reply_to_idstringOptional id of the message being replied to.
thread_labelstringOptional thread label. If omitted, uses the default thread for this contact.

mDM_list

List recent direct messages with a specific contact. Pass contact_id as the identity_id from mDM_list_contacts. Decrypts end-to-end-encrypted messages from the contact automatically; legacy plaintext messages are shown as-is. Optionally filter to a single thread_label. FILES: a screenshot or document in the conversation comes back in `attachments: [{name, mime, size, url}]` — `url` is a signed link valid for about an hour, fetch it to see the file; an encrypted file has `encrypted: true` and no url. VOICE: a voice message has `voice: {transcript, audio_url, duration_ms}` and `text` reads "[v…

ParameterTypeDescription
contact_id *stringIdentity id of the contact to read messages with.
cursorstringOpaque pagination cursor from a previous response.
limitinteger
thread_labelstringOptional thread label within the conversation with this contact. Defaults to the contact's main thread. mosadd USP: multiple threads per contact.

mDM_read_file

Read a file attached to a direct message: pass contact_id, message_id (from mDM_list) and index (0 = first attachment). A picture (PNG, JPEG, GIF, WebP up to 5 MB) comes back as an image you can see; text, Markdown, HTML, JSON, CSV and similar come back as text (up to 200 000 characters); a PDF or any other file comes back as its type and a signed link valid for about an hour; audio comes back as its link plus the transcript when it is a voice note. An encrypted file has to be opened in the app. Looks through the last 200 messages of the conversation.

ParameterTypeDescription
contact_id *stringIdentity id of the contact the conversation is with.
message_id *stringId of the message that carries the file (from mDM_list).
indexintegerWhich attachment of that message (0 = the first).
thread_labelstringOptional thread label within the conversation with this contact. Defaults to the contact's main thread. mosadd USP: multiple threads per contact.

mDM_respond_request

Accept or reject an incoming DM request from a contact who is not yet in the user's whitelist.

ParameterTypeDescription
action *string
request_id *string

mDM_edit

Edit a direct message you sent — replace its body by message_id (pass the conversation's `to` so it can be located). NOTE: end-to-end-encrypted messages CANNOT be edited (the ratchet is forward-only) — mDM_edit refuses them and you should mDM_delete + mDM_send a replacement instead. Only legacy non-E2EE messages are editable.

ParameterTypeDescription
message_id *stringId of the message to edit (from mDM_list).
new_text *stringReplacement message body (UTF-8). Max 64 KB.
to *stringRecipient identity id of the conversation the message is in (needed to locate it and verify the edit won't break E2EE).
thread_labelstringOptional thread label within the conversation with this contact. Defaults to the contact's main thread. mosadd USP: multiple threads per contact.

mDM_delete

Delete a direct message you sent by message_id (from mDM_list). Soft-deletes server-side so it stops showing in mDM_list for both sides.

ParameterTypeDescription
message_id *stringId of the message to delete (from mDM_list).

mDM_send_as_agent

Send a direct message AS ONE OF YOUR OWN AGENTS instead of as yourself. Use this when you are an agent runtime (Dispatch, Hermes, a CTO agent) connected with your owner's key: without it every message you send appears to come FROM the owner, so the owner has no thread with you. Names the agent by mosADD address, identity id or display name; `to` defaults to the key's owner. Optional `thread_label` selects a named thread (omit = MAIN unlabeled — required for the account owner until rename lands). The server verifies you OWN that agent — speaking as someone else's agent, or as another person…

ParameterTypeDescription
agent *stringWhich of YOUR agents to speak as — its mosADD address (<agent>@mosadd.com), its identity id, or its display name. Must be an agent you own.
text *stringThe message body, as the agent would write it.
silentbooleanDeliver without waking a phone: the message still arrives and shows unread, only the OS push is skipped.
thread_labelstringOptional thread label (same as mDM_send). Omit for the MAIN unlabeled thread — required for account-owner traffic. A new label opens a new thread.
tostringRecipient identity id or mosADD address. Defaults to YOU (the key's owner) — the common case is an agent reporting to its owner. Must be a person, not another agent.

mDM_list_my_agents

List the agents you are allowed to speak as with mDM_send_as_agent — every live agent owned by the account behind this key, with its identity id, mosADD address and display name. Call this first when you are unsure which agent identity you hold.

mDM_call_start

Start a 1:1 real-time voice (or video) call with a contact — the ordinary full-duplex phone-style call (NOT walkie-talkie mTALK, NOT PSTN mCALL). Creates a room, returns join credentials (token + media url), and drops a `call_invite` control message in the DM thread so the contact can answer. Set video:true for video.

ParameterTypeDescription
to *stringRecipient identity id (UUID). Use mDM_list_contacts to find it.
thread_labelstringOptional thread label to place the call invite in. Defaults to the contact's main thread.
videobooleanRequest a video call instead of audio-only. Default false.

mDM_call_answer

Answer an incoming 1:1 call by its room_id (from the call_invite seen via mDM_list). Returns join credentials (token + media url) for the same room.

ParameterTypeDescription
room_id *stringVoice room id (from mDM_call_start's call_invite).

mDM_call_end

End a 1:1 call. The audio leg ends when clients disconnect; pass `to` to also drop a `call_end` (hangup) control message in the contact's DM thread.

ParameterTypeDescription
room_id *stringVoice room id (from mDM_call_start's call_invite).
thread_labelstring
tostringIf set, also drop a call_end control message in this contact's DM thread.

mDM_voice_note

Send an asynchronous voice note to a contact: references an already-uploaded audio clip (audio_url) and posts it as a `voice_note` message in the DM thread. Use for fire-and-forget voice instead of a live call.

ParameterTypeDescription
audio_url *stringURL of the recorded audio clip (already uploaded by the client).
to *stringRecipient identity id (UUID). Use mDM_list_contacts to find it.
duration_msintegerClip length in milliseconds, if known.
mimestringAudio MIME type, e.g. audio/ogg, audio/mpeg. Default audio/ogg.
thread_labelstring

mIRC_create

Create a new persistent channel (Discord/Slack-style). Set access_mode to open (anyone joins), password (shared-password gated), or private (invite-only). capabilities controls modes (txt/voice/files/ptt/live; voice/ptt/live are server-relayed via LiveKit, NOT E2EE). Set discoverable:true (open channels only) to list it in the public directory. NOTE: password/private channels are provisioned for group-key TEXT encryption — supply wrapped_group_key (the group key wrapped to your identity key); open channels do not need it. The mosadd.com app encrypts/decrypts channel text with that key on sup…

ParameterTypeDescription
name *stringChannel display name.
access_modestringopen: anyone can join · password: join with a shared password · private: invite-only.
capabilitiesobjectWhich modes are enabled: txt (text), voice (group voice), files (file attach), ptt (push-to-talk), live (live stream). Voice/PTT/live are server-relayed via LiveKit — NOT end-to-end encrypted.
discoverablebooleanList this channel in the PUBLIC directory (mIRC_discover). Honoured ONLY for access_mode=open; ignored for password/private.
invite_agentsarrayIdentity ids (UUID) of YOUR agents/robots to add right after the channel is created (agents: mDM_list_my_agents → agents[].identity_id; robots are not in that list — use the identity id from the a…
passwordstringPassword (only for access_mode=password).
topicstringOptional channel topic/description.
wrapped_group_keystringRequired for access_mode=password|private (these channels are provisioned for group-key text encryption on supported clients): the channel's group key wrapped to the creator's identity key. Open chann…

mIRC_list

List channels available to the current user.

ParameterTypeDescription
limitinteger
offsetinteger

mIRC_get

Get full details of a single channel by id.

ParameterTypeDescription
channel_id *stringChannel id (UUID). Use mIRC_list to discover available channels.

mIRC_update

Update channel metadata (name, topic, capabilities). Owner only. Access mode is fixed at creation — recreate the channel to change it.

ParameterTypeDescription
channel_id *stringChannel id (UUID). Use mIRC_list to discover available channels.
capabilitiesobjectWhich modes are enabled: txt (text), voice (group voice), files (file attach), ptt (push-to-talk), live (live stream). Voice/PTT/live are server-relayed via LiveKit — NOT end-to-end encrypted.
discoverablebooleanToggle public-directory listing (open channels only).
namestring
topicstring

mIRC_delete

Delete a channel and cascade-remove its members. Owner only.

ParameterTypeDescription
channel_id *stringChannel id (UUID). Use mIRC_list to discover available channels.

mIRC_discover

Browse the PUBLIC channel DIRECTORY — open channels whose owners opted in (discoverable=true). Returns {id, channel_key, name, description, capabilities, member_count, is_member}. Filter by name with q; paginated. Join a result with mIRC_join (open = one-click). Private/password/partner channels never appear.

ParameterTypeDescription
limitinteger
offsetinteger
qstringOptional channel-name filter.

mIRC_report

Report a channel for abuse (spam/harassment/illegal/etc). Metadata + reason only — never message content. The reported party is the channel owner (server-derived). Use for public-directory moderation.

ParameterTypeDescription
channel_id *stringChannel id (UUID). Use mIRC_list to discover available channels.
reason *stringReport reason.
detailstringOptional free-text context.

mIRC_join

Join a channel as the current user. Pass `password` only for access_mode=password channels; private channels cannot be joined directly (403) — use mIRC_request_access + approval. Idempotent: an existing active member gets their membership row back (200, no 409).

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
passwordstringPass only for access_mode=password channels. Private channels cannot be joined directly (403) — use mIRC_request_access.

mIRC_invite

Add someone to a channel you own or admin (owner/superadmin/admin; you cannot hand out a role equal to or above your own). TWO OUTCOMES, decided server-side by who the target is. (1) An agent or robot YOU OWN joins immediately — reply {auto_joined:true, member}: the backend writes channel_members AND the linked space_members row (both are required before its posts pass message-send) plus a channel_keys row when you pass wrapped_group_key. No code, nothing to redeem. THIS is the step that lets an agent speak in a channel: mIRC_join adds the KEY's identity (usually you, the human), while chann…

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringIdentity id (UUID) of who to add. Your own agents: mDM_list_my_agents → agents[].identity_id (that list is kind=agent ONLY — a robot you own is NOT in it; take the robot's identity id from the app…
rolestringRole the invitee lands with (default member). Must be strictly below your own role — the EF applies the same tier rule as mIRC_set_role.
ttl_secondsintegerLifetime of an invite CODE (code path only; ignored when the target auto-joins). Default 7 days; the EF clamps to 5 min … 30 days.
wrapped_group_keystringRequired on password/private channels that hold a group key: the channel group key wrapped to the INVITEE's identity key (the same material mIRC_approve_request takes). Without it the EF refuses with…

mIRC_request_access

Request access to a password/private channel (your membership goes to state=requested for an admin to approve).

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.

mIRC_leave

Leave a channel as the current user. Owner cannot leave without transferring ownership first.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.

mIRC_approve_request

Approve a pending access request (state=requested → active). Admins / moderators / owner only. Because access requests only exist on non-open (password/private) channels, you must pass wrapped_group_key — the channel group key wrapped to the approved member's identity key.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringIdentity id of the requester to reject (state=requested; from mIRC_list members).
wrapped_group_keystringRequired to approve a join to a password/private (group-key) channel: the channel group key wrapped to the approved member's identity key. Without it the backend rejects the approval with a 'wrapped_g…

mIRC_reject_request

Reject a pending access request. Admins / moderators / owner only.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringIdentity id of the requester to reject (state=requested; from mIRC_list members).

mIRC_kick

Remove a member from the channel. They can rejoin if not banned. Requires moderator+.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringTarget user's identity id (UUID). From mDM_list_contacts or radar logs.

mIRC_ban

Ban a member from the channel. The ban is permanent until you call mIRC_unban. Requires admin+.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringTarget user's identity id (UUID). From mDM_list_contacts or radar logs.

mIRC_unban

Lift a ban. Requires admin+.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringTarget user's identity id (UUID). From mDM_list_contacts or radar logs.

mIRC_set_role

Promote / demote a member. Roles: owner(100) > superadmin(90) > admin(80) > moderator(70) > member(10). No 'guest'. An actor may assign any role below their own tier — so a superadmin (not only the owner) can promote to admin.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringTarget user's identity id (UUID). From mDM_list_contacts or radar logs.
role *stringRole to assign. owner = channel creator (not assignable); promote up to one tier below your own.

mIRC_set_ptt

Grant or revoke PTT floor permission for a member in voice-capable channels (capabilities.ptt=true). Requires moderator+.

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_list / mIRC_create.
identity_id *stringTarget user's identity id (UUID). From mDM_list_contacts or radar logs.
ptt_enabled *booleanAllow this member to hold the PTT floor in voice mode.

mIRC_post_message

Post a text message into a persistent channel (mIRC). Pass channel_id from mIRC_create / mIRC_list; the backing space is resolved automatically. This is how an agent actually talks in a channel — the other mIRC_* tools only manage it. ACCESS: banned/blocked users are refused on ALL access modes (including open); open channels accept anyone not banned; password channels require joining with the password; private channels require request-access + approval. ATTRIBUTION: by default the message is signed with the identity behind the API key — and a key belongs to a USER, so an agent runtime usi…

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_create / mIRC_list.
text *stringMessage body (UTF-8). Max 64 KB.
agentstringPost AS ONE OF YOUR OWN AGENTS instead of as the key's owner — its mosADD address (<agent>@mosadd.com), its identity id, or its display name. An API key is bound to a USER, so without this every mes…
reply_to_idstringOptional id of the message being replied to.
space_idstringOptional backing space id. Resolved automatically from the channel if omitted.

mIRC_list_messages

List recent text messages in a persistent channel (mIRC), newest first, cursor-paginated. Pass channel_id; the backing space is resolved automatically. ENCRYPTION: messages your line can decrypt (group-key channels — auto-provisioned key material) come back as readable text; everything else is decoded as written: the app's plain text and the toolkit's JSON envelope both come back as readable text (open channels such as coordination channels are never encrypted). Only a sealed group-key envelope your line holds no key for reads <ciphertext>. FILES: a screenshot or document sent with a message…

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_create / mIRC_list.
cursorstringOpaque pagination cursor from a prior list response.
limitinteger
space_idstringOptional backing space id. Resolved automatically if omitted.

mIRC_read_file

Read a file attached to a channel message: pass channel_id, message_id (from mIRC_list_messages) and index (0 = first attachment). A picture (PNG, JPEG, GIF, WebP up to 5 MB) comes back as an image you can see; text, Markdown, HTML, JSON, CSV and similar come back as text (up to 200 000 characters); a PDF or any other file comes back as its type and a signed link valid for about an hour; audio comes back as its link plus the transcript when it is a voice note. Only messages you can read are reachable, and an encrypted file has to be opened in the app. Looks through the last 200 messages of the…

ParameterTypeDescription
channel_id *stringChannel id (UUID). From mIRC_create / mIRC_list.
message_id *stringId of the message that carries the file (from mIRC_list_messages).
indexintegerWhich attachment of that message (0 = the first).
space_idstringOptional backing space id. Resolved automatically if omitted.

mIRC_mint_channel_token

Exchange the hub key (MOSADD_API_KEY) for a short-lived (5min), channel-scoped JWT. Returns { token, expires_in, channel_id, scope }. The token is safe to hand to a browser to open a WS via `Sec-WebSocket-Protocol: mosadd.v1, bearer.<token>`. The hub key NEVER leaves the server. Use this from any server-side route (Next.js /api/chat-token, Express, etc.) before showing chat in a browser. Required to avoid leaking the hub key into CDN access logs.

ParameterTypeDescription
channel_id *stringChannel id — the JWT will be scoped to this channel only. Must match the WS upgrade path.
user_idstringOptional end-user id. Stamped onto messages as 'from'. Useful when one hub key fronts many end-users (relay topology).

mIRC_send_edge

Send a text message into a persistent channel via the mosadd-edge Cloudflare Worker (Durable Object backend). Sub-100ms global fan-out to all WebSocket subscribers of the channel + async flush to Supabase as system-of-record (idempotent). Use this when you want native realtime push without polling. Parallel to mIRC_post_message (Supabase path); pick one per channel. Auth: MOSADD_API_KEY env (hub key).

ParameterTypeDescription
channel_id *stringChannel id (UUID). Same as mIRC_create / mIRC_list.
text *stringMessage body (UTF-8, max 64 KB).
fromstringSender hint shown to other clients (defaults to the hub-key owner).

mIRC_history_edge

Read the last N (max 100) messages held in the channel's Durable Object ring buffer at the edge. Hot path is the DO, not Supabase — same data lands in messages_meta via async flush, so cold reads / pagination beyond 100 should use mIRC_list_messages.

ParameterTypeDescription
channel_id *stringChannel id (UUID).
limitintegerHow many recent messages to return (max 100, the DO ring size).

mAYL_list

List the user's mailbox (their <userId>@mosadd.com inbox/outbox) newest-first, with sender, subject, status and a short snippet. Filter by direction ('inbound' = received, 'outbound' = sent). Use the returned next_cursor with `before` to page through older mail. Call mAYL_view to read a full message body.

ParameterTypeDescription
beforestringPagination cursor: pass the previous response's next_cursor to get the next (older) page.
directionstringFilter to received (inbound) or sent (outbound) mail. Omit for both.
limitintegerMax emails to return. Default 50.

mAYL_send

Send an email from the user's mosadd address (<userId>@mosadd.com). Pass body_text or body_html (or both). Supports cc, bcc, reply_to. Monitoring/legal options: tracking (open+click, default on; set false for no tracking), force_reader (stub email → recipient opens in mosadd's secure reader, unlocking print/copy/time-on-read tracking + revoke), watermark (recipient watermark visible in screenshots/prints), disclose_tracking (GDPR footer), auto_destruct ('1h'|'24h'|'7d').

ParameterTypeDescription
subject *stringEmail subject line. Max 998 chars (RFC 5322).
to *Recipient(s). Single address or array of up to 50.
auto_destructstringSelf-destruct timer: the secure-reader link expires after this window.
bccarray
body_htmlstringHTML body. Max 1 MB.
body_textstringPlain text body. Max 1 MB.
ccarray
disclose_trackingbooleanDefault false. If true (and tracking on), append a tracking-disclosure footer to the email — recommended for GDPR/ePrivacy compliance.
force_readerbooleanDefault false. If true, the email body is a stub only and the recipient must open it in mosadd's secure reader — maximizes tracking (print/copy/time-on-read become observable). Best for confidential…
reply_tostringRFC 5321 email address.
trackingbooleanOpen-pixel + link-click tracking. Default true. Set false to send with NO tracking (privacy / GDPR-friendly).
watermarkInject a faint recipient watermark into the secure reader (shows in screenshots/prints). Pass true to watermark with the recipient address, or a custom string.

mAYL_view

Read the full body and metadata of an email by message_id.

ParameterTypeDescription
message_id *stringMessage id (UUID) from mAYL_send or inbox.

mAYL_delete

Delete one of the user's emails by message_id (from mAYL_list). Soft-delete — it stops showing in mAYL_list. Owner-scoped: only your own mail.

ParameterTypeDescription
message_id *stringMessage id (UUID) from mAYL_send or inbox.

mAYL_stats

Engagement summary for one sent email (by message_id): open_count, unique_opens, click_count, whether it was likely forwarded, first/last opened time, and a breakdown of tracked event types. Opens/clicks are real (tracking pixel + link-wrap); forward detection is best-effort (IP-subnet diversity). Owner-scoped.

ParameterTypeDescription
message_id *stringMessage id (UUID) from mAYL_send or inbox.

mAYL_events

Raw engagement timeline for one email (by message_id): every tracked event (pixel_open, link_click, forwarded, page_view, copy/print/focus signals) with timestamp, device type and link URL. Use mAYL_stats for the rollup; use this for the per-event detail. Owner-scoped.

ParameterTypeDescription
message_id *stringMessage id (UUID) from mAYL_send or inbox.

mAYL_metrics

Mailbox-wide engagement aggregate across the user's sent mail: total_sent, opened_emails, open_rate_pct, total_opens, total_clicks, forwarded_emails. Owner-scoped.

mAYL_revoke

Revoke (recall) a sent email's secure-reader access by message_id — the recipient can no longer open the full message via the mosadd reader link (Virtru-style recall, immediate). Pass restore:true to re-enable. HONEST LIMIT: cannot un-send or claw back content the recipient already read, copied, or screenshotted — only disables future reader access. Owner-scoped.

ParameterTypeDescription
message_id *stringMessage id (UUID) from mAYL_send or inbox.
restorebooleanSet true to UN-revoke (restore access). Default false = revoke.

mAYL_audit_export

Export a tamper-evident engagement audit report for one sent email (RMail-style): full event trail (opens, clicks, reader print/copy/forward signals) + totals, plus an HMAC-SHA256 signature over the canonical JSON so the report can be proven unaltered. For legal/compliance use. HONEST LIMIT: proves what mosadd observed; it is not a qualified delivery receipt (ERDS). Owner-scoped.

ParameterTypeDescription
message_id *stringMessage id (UUID) from mAYL_send or inbox.

mAYL_notify

Recent engagement feed across ALL your sent mail — the 'who just opened/clicked my mail' notifications stream (opens, clicks, forwards, reader print/copy signals), newest first, each with the email subject + recipient. Poll: pass the returned `cursor` back as `since` to get only new activity. Owner-scoped.

ParameterTypeDescription
limitintegerMax events. Default 50.
sincestringISO-8601 cursor — return only events newer than this. Pass the previous response's `cursor` to poll for new activity.

mAYL_send_as_agent

Send an email ATTRIBUTED TO THE AGENT (provenance-stamped). Unlike mAYL_send (sends as the user), this stamps sent_by='agent' plus your agent_id and optional task_id onto the email record and audit trail — so recipients and compliance can see the mail was agent-originated. Auth: presents a hub-claim JWT (needs MOSADD_API_KEY). The mp0st-send EF verifies the claim with HUB_JWT_SECRET; body trust is never granted for provenance.

ParameterTypeDescription
agent_id *stringStable id of the agent doing the send. Stamped as sent_by_agent_id for provenance.
subject *string
to *
bccarray
body_htmlstring
body_textstring
ccarray
reply_tostring
task_idstringOptional id of the task/run this send belongs to. Stamped as sent_by_task_id.
trackingboolean

mAYL_agentbox_provision

Mint the agent its OWN real, disposable email inbox at agent-<hex>@mosadd.com that can SEND and RECEIVE. Default ephemeral with a 10-minute TTL (auto-expires + is reaped); pass kind:'persistent' for a permanent box, or ttl_seconds (max 86400) for a custom lifetime. Optional display_name + agent_id. Returns the box {id, address, expires_at}. Use the address to catch signup/verification codes or replies, then mAYL_list (filter by the box address) + mAYL_view to read what arrived. Owner-scoped; max 25 active boxes per account.

ParameterTypeDescription
agent_idstringOptional identity id to attribute the box to — must be an agent identity you own.
display_namestringOptional human label for the box (e.g. 'signup catcher'). Max 120 chars.
kindstring'ephemeral' (default) auto-expires + is reaped; 'persistent' never expires.
ttl_secondsintegerLifetime for an ephemeral box, in seconds. Default 600 (10 min). Max 86400 (24 h). Ignored for persistent.

mAYL_agentbox_list

List your active agent inboxes (address, display_name, kind, agent_id, expires_at), newest first. Owner-scoped.

mAYL_agentbox_release

Release (delete) one of your agent inboxes by id — frees the address immediately so it stops receiving. Owner-scoped.

ParameterTypeDescription
id *stringAgent-box id (UUID) from mAYL_agentbox_provision or mAYL_agentbox_list.

mAYL_agentbox_extend

Extend an EPHEMERAL agent inbox's lifetime by id (ttl_seconds counted from NOW, max 24 h). Persistent boxes never expire and cannot be extended. Owner-scoped.

ParameterTypeDescription
id *stringAgent-box id (UUID) from mAYL_agentbox_provision or mAYL_agentbox_list.
ttl_secondsintegerNew lifetime from NOW, in seconds. Default 600 (10 min). Max 86400 (24 h). Ephemeral boxes only.

mTALK_open

Open (or get) a push-to-talk room. Returns a stable room_id. Pass an optional label for a named room (e.g. 'ops') that you own: you and your accepted contacts can join it; omit the label for a personal room. Works over network (LiveKit) or off-grid radio depending on the host.

ParameterTypeDescription
labelstringOptional label; defaults to a personal room.

mTALK_join

Get credentials (token + media URL) to join a PTT room's audio transport. Hand these to a human or bot client to connect. The agent itself drives the floor with mTALK_press / mTALK_release.

ParameterTypeDescription
room_id *stringRoom id returned by mTALK_open.

mTALK_press

Press push-to-talk: request the floor in a room. Half-duplex — if no one is transmitting you are GRANTED the floor (granted=true) and may speak; otherwise you are queued FIFO and `position` tells you where you are. Call mTALK_release when done. A holder who never releases is auto-bumped after the anti-hog timeout.

ParameterTypeDescription
room_id *stringRoom id returned by mTALK_open.

mTALK_release

Release push-to-talk: give up the floor (or cancel your queued request). If you held the floor, the next participant in the queue is promoted automatically. Returns the new holder and queue.

ParameterTypeDescription
room_id *stringRoom id returned by mTALK_open.

mTALK_state

Read a PTT room's floor state without changing it: who is currently transmitting (holder), since when, and the waiting queue.

ParameterTypeDescription
room_id *stringRoom id returned by mTALK_open.

mDM_send_voice

Send a VOICE note to a contact as a first-class mDM `voice` message (not a URL stub). Pass audio bytes as base64; the tool uploads to Storage and posts via message-send with the voice attachment descriptor. SCAFFOLD: mDM is client-encrypted — until the seal step ships, bytes are uploaded unsealed (TODO Lane A).

ParameterTypeDescription
audio_base64 *stringAttachment bytes as base64 (or a data: URL). MCP is JSON-only, so binary is base64-encoded. Max ~15 MB decoded.
to *stringRecipient identity id (UUID). Use mDM_list_contacts to find it.
captionstring
duration_msintegerAudio clip length in ms (voice only), if known.
mimestringMIME type, e.g. audio/ogg, application/pdf, image/png.
reply_to_idstringOptional id of the message being replied to.
thread_labelstringOptional thread label within the conversation (mDM USP: multiple threads per contact).

mDM_send_file

Send a FILE to a contact as a first-class mDM `file` message. Base64 bytes → Storage → message-send file attachment. SCAFFOLD: mDM E2EE seal is TODO (Lane A).

ParameterTypeDescription
file_base64 *stringAttachment bytes as base64 (or a data: URL). MCP is JSON-only, so binary is base64-encoded. Max ~15 MB decoded.
mime *stringMIME type, e.g. audio/ogg, application/pdf, image/png.
to *stringRecipient identity id (UUID). Use mDM_list_contacts to find it.
captionstring
filenamestringOriginal filename (file only).
reply_to_idstringOptional id of the message being replied to.
thread_labelstringOptional thread label within the conversation (mDM USP: multiple threads per contact).

mIRC_send_voice

Send a VOICE note into a persistent channel as a first-class `voice` message. Base64 audio → Storage → message-send (backing space resolved automatically).

ParameterTypeDescription
audio_base64 *stringAttachment bytes as base64 (or a data: URL). MCP is JSON-only, so binary is base64-encoded. Max ~15 MB decoded.
channel_id *stringRoom/channel id (UUID).
captionstring
duration_msintegerAudio clip length in ms (voice only), if known.
mimestringMIME type, e.g. audio/ogg, application/pdf, image/png.
reply_to_idstringOptional id of the message being replied to.
space_idstringBacking space id. Resolved automatically if omitted.

mIRC_send_file

Send a FILE into a persistent channel as a first-class `file` message. Base64 bytes → Storage → message-send.

ParameterTypeDescription
channel_id *stringRoom/channel id (UUID).
file_base64 *stringAttachment bytes as base64 (or a data: URL). MCP is JSON-only, so binary is base64-encoded. Max ~15 MB decoded.
mime *stringMIME type, e.g. audio/ogg, application/pdf, image/png.
captionstring
filenamestringOriginal filename (file only).
reply_to_idstringOptional id of the message being replied to.
space_idstring

mTALK_ingest_ptt

Submit a finished PTT 'over' (push-to-talk audio segment) for transcription into the caller's RAG index — so 'what did X say on PTT?' is searchable later. The PERSISTENCE of the voice message itself (the message_meta row + fan-out) is handled by mDM_send_voice / mIRC_send_voice; this tool is the transcription bridge only. Honors per-user RAG opt-in: opted-out callers get status='skipped_optout' (no transcript stored). Auth: Supabase session JWT.

ParameterTypeDescription
audio_base64 *stringRecorded PTT 'over' as base64 (a 'data:audio/…;base64,…' prefix is stripped if present).
direction *stringDirection the PTT crossed: who originated, who received. 'human_to_agent' = user spoke to an agent; 'agent_to_human' = agent spoke to the user.
message_idstringOptional id of the messages_meta row this PTT belongs to. When present, links the transcript back to the message for jump-to-source from RAG.
mime_typestringMIME type of the audio. Default audio/webm (browser MediaRecorder default).
thread_idstringOptional thread id (e.g. `chat:<channel_id>` or `dm:<a>:<b>`) so the transcript carries its conversational scope into RAG.

mRAG_ingest

Add text to the USER'S OWN private knowledge base so mRAG_search can recall it later. Pass content_text (a note, document, transcript, pasted page); it is semantically chunked, embedded (1536-d) and stored in the per-user vector index mRAG_search reads. Returns how many chunks were indexed. ⚠ IF YOU ARE INDEXING A CORPUS you want to TRAVERSE (who is connected to whom, when), also pass sender / recipient / occurred_at: the knowledge graph builds its nodes from those fields alone, so documents ingested without them are searchable but contribute NOTHING to mRAG_graph_overview / _neighbors / _ti…

ParameterTypeDescription
content_text *stringText to index into the user's private knowledge base (a note, document, transcript, pasted page…). Chunked + embedded server-side.
directionstringDirection relative to the account owner: received, sent, or the owner's own note.
labelsarrayFree-text tags to attach (e.g. a case id, a jurisdiction) for later filtering.
metadataobjectAny extra fields to store alongside the row (case id, docket number, jurisdiction, file path, checksum, sensitivity flag…). Stored verbatim and returned with search hits. NOTE: this is stored server…
mimestringMIME type of the original file, if known.
namestringOriginal filename, if this came from a file (e.g. 'pozew-2019-03-11.pdf'). Its extension is what classifies the row as a document/image/audio in the file view. Distinct from `title`, which is free pro…
occurred_atstringISO-8601 timestamp of WHEN the document happened (letter date, filing date, email Date header) — not when you indexed it. Drives mRAG_graph_timeline; defaults to now if omitted, which makes a 2019 f…
recipientobjectWho the document is TO (addressee, court, counterparty). Becomes a node in the knowledge graph, connected to `sender`.
senderobjectWho the document is FROM (author, filing party, sender). Becomes a node in the knowledge graph — without it this document adds no party to mRAG_graph_overview.
sizeintegerSize of the original file in bytes, if known.
source_idstringOptional stable id for the source so re-ingests of the SAME document group together (and can be removed later with mRAG_delete). Any string works — a file path, a case number, a checksum: a non-UUID…
source_typestringWhat kind of source this is. Default 'file' (a document/note). Use 'note' for ad-hoc text.
thread_idstringOptional thread id to associate this knowledge with (e.g. a dm:/chat: thread).
titlestringOptional human title, stored in metadata.

mRAG_list_sources

List what is currently indexed in the user's private knowledge base, grouped by source (source_type, source_id, thread_id, title) with per-source chunk counts and first/last indexed timestamps. Use it to see what mRAG_search can recall, and to find a source_id to remove with mRAG_delete. Owner-scoped.

mRAG_delete

Remove indexed content from the user's knowledge base by source_id or thread_id (from mRAG_list_sources). Deletes every embedded chunk for that source so mRAG_search can no longer recall it. Requires source_id or thread_id (will not purge the whole index). Returns the number of chunks deleted. Owner-scoped.

ParameterTypeDescription
source_idstringDelete every indexed chunk with this source_id (from mRAG_list_sources).
thread_idstringDelete every indexed chunk associated with this thread_id.

mRAG_graph_refresh

(Re)build the USER'S OWN knowledge graph from their indexed data, then return what it found (counts of parties/mentions/edges). Run this first, or after new data has been ingested, so mRAG_graph_overview/neighbors/timeline reflect the latest. Built from METADATA only (who-sent-to-whom, thread membership) — never message bodies, so it does not weaken E2EE. Owner-scoped.

ParameterTypeDescription
max_docsintegerCap on source documents scanned when (re)building the graph. Default 20000 (the max).

mRAG_graph_overview

List the parties (people / companies / services) in the user's knowledge graph, busiest first, each with its party_id, kind, aliases, appearance count, connection count and first/last-seen dates. This is the entry point: use a returned party_id with mRAG_graph_neighbors or mRAG_graph_timeline. Owner-scoped.

ParameterTypeDescription
limitintegerMax parties to return (busiest first). Default 40, max 200.

mRAG_graph_neighbors

Walk the connections of one party (from mRAG_graph_overview) — who/what it is linked to, with the edge type, how many times observed, and when. Answers 'who is connected to X, and how'. Depth is hard-clamped to 2 hops and breadth to 200 server-side. Owner-scoped.

ParameterTypeDescription
party_id *stringThe party whose connections to walk (a party_id from mRAG_graph_overview).
depthintegerHops to walk. Hard-clamped to 2 server-side. Default 1.
limitintegerMax neighbours to return. Clamped to 200. Default 50.

mRAG_graph_timeline

Return the dated appearance timeline of one party (from mRAG_graph_overview) — each source (email/message/call/…), its thread, the party's role, and when it occurred, newest first. Answers 'when and where did X show up'. Owner-scoped.

ParameterTypeDescription
party_id *stringThe party whose dated appearance timeline to return (a party_id from mRAG_graph_overview).
limitintegerMax timeline entries (newest first). Clamped to 200. Default 50.

comms_action_create

Mint a single-use, expiring action link (https://mosadd.com/do/<token>) that asks a human to DO something in their browser, with explicit consent. action_type: 'confirm' (yes/no) | 'file_request' (recipient picks a file from their computer) | 'form' (recipient fills fields you define) | 'open_url' (recipient opens a vetted https URL). Returns { action_id, token, link, expires_at }. Send the `link` to the person via mDM/mIRC/mp0st; they open it, consent, and the browser performs the action in its sandbox (no install, no OS access). The action is owned by you (the calling user). HONEST LIMITS: t…

ParameterTypeDescription
action_type *stringWhat you want the recipient to do: 'confirm' (yes/no), 'file_request' (pick a file from their computer), 'form' (fill fields), 'open_url' (open a vetted https URL), 'screen_share' (recipient shares th…
message *stringWhat you're asking — shown on the consent screen above the action UI.
acceptstring[file_request] Accepted file types (HTML accept attr, e.g. 'image/*,.pdf').
creator_labelstringHow you're identified to the recipient (e.g. your agent name). Default 'Agent'.
fieldsarray[form] Fields to collect from the recipient.
max_bytesinteger[file_request] Max file size in bytes (≤ 5 MB). NOTE: the returned file is NOT yet end-to-end encrypted — do not request sensitive files until Tier 1.1 ships.
max_usesintegerHow many times the link can be redeemed. Default 1 (single-use).
max_widthinteger[screen_share] Max captured frame width in px (default 1280). Frames are downscaled JPEGs.
no_labelstring[confirm] Negative button label. Default 'Nie'.
ttl_msintegerLink lifetime in milliseconds. Default 24h, capped at 7d.
urlstring[open_url] The https URL to open. The full URL is shown to the recipient before they open it.
yes_labelstring[confirm] Affirmative button label. Default 'Tak'.

comms_action_frame_get

See the LATEST screen frame from a 'screen_share' action you created (pass the action_id from comms_action_create). Returns the current screenshot AS AN IMAGE you can look at, plus how old it is. The recipient must have opened the link and clicked 'share screen' first. Poll this every few seconds to watch live. VIEW ONLY — you cannot click or control their screen. Returns a 'no frame yet' note until they start sharing.

ParameterTypeDescription
action_id *stringThe action_id returned by comms_action_create for a 'screen_share' action you created.

comms_session_attach

Claim a mosADD reply lane for the CURRENT agent session, so the 24/7 cloud stand-in stops answering in its place and the owner talks to you instead. Call it once at the start of a session; the hold renews itself while the session runs and lapses on its own if the session dies. Holding the OWNER's key while working as one of their agent lines? Pass as_agent:'<address of YOUR line>' (e.g. <agent>@mosadd.com) — the gateway then signs your channel posts as that agent automatically for the whole session and silences that agent's stand-in; ownership is verified server-side. Pass release:true when…

ParameterTypeDescription
as_agentstringSpeak as ONE OF THE OWNER'S AGENT LINES while holding the owner's key — its mosADD address (<agent>@mosadd.com), identity id, or display name. Declares ONCE per session whose line this session speak…
labelstringShort name for THIS session, shown to the owner as who is holding the line (e.g. 'CTO — Claude Code', 'dispatcher — Cowork'). Defaults to the machine name.
releasebooleanHand the line back immediately instead of claiming it: stops this session's keep-alive, clears the liveness row (and any as_agent declaration this session made), so the 24/7 cloud stand-in resumes ans…

comms_embed_create

Embed a LIVE mosadd chat channel into an app/site you're building (great for builder-agents on Lovable/Bolt/Cursor/v0). Mints a publishable embed key scoped to a channel + the app's domain(s) and returns a ready-to-paste HTML snippet (a <div> + <script src=embed.mosadd.com/v1.js data-key=…>). Visitors of the host page chat in real time (anonymous nick or mosadd login). REQUIRES `allowed_origins` — the domain(s) the app is served from (the key only works there). The publishable key is browser-safe (mints only channel-scoped JWTs); your hub key never leaves the server. Returns { embed_key, c…

ParameterTypeDescription
allowed_origins *arrayREQUIRED. Domain(s) where the widget will be served — the key only works from these origins. Use the host(s) of the app you're building, e.g. ['app.acme.com','*.acme.com']. For local testing use mod…
channel *stringThe mIRC channel id everyone on the embed shares (e.g. 'acme-support'). Auto-created on first message if new.
anonbooleanAllow visitors to join with just a nick (no mosadd account). Default true.
localestringWidget UI language. Default 'en'.
modestringKey mode — 'test' for local/dev origins, 'live' for production. Default 'live'.
namestringLabel for the key in the owner's dashboard. Default 'embed: <channel>'.
positionstringWhere the widget renders. Default 'inline'.
skinstringVisual skin. Default 'default' (mosadd-branded retro mIRC).
titlestringHeader title shown in the widget. Default 'mIRC'.

threat_catalog

List the canonical mosadd threat-event taxonomy (the full radar catalog: id, category, default severity, auto-actions, per-platform availability). Filter by category or platform. Pure/offline — returns { count, total, events }. Use to discover what the defensive engine recognises.

ParameterTypeDescription
categorystringFilter the catalog to one intelligence-discipline category. Omit for the full catalog.
platformstringFilter to events detectable on this platform. Omit for all platforms.

threat_classify

Classify a single telemetry event against the mosadd threat taxonomy + DECK engine. For a known event type (e.g. PROCESS_INJECTION, STINGRAY_DETECT, IMSI_CATCHER_SCAN, MEMORY_INJECTION) it returns that event's real severity (info|warning|elevated|critical|killswitch) with action="monitor" — Pegasus-class events surface as critical immediately, but the engine NEVER auto-acts (it tells you, it never disconnects/locks). Unknown strings fall back to the pure DECK decision (log_only|revoke_sessions|lock_account|suspend_did). Returns { action, severity, reason, known_event, category, label }. Dete…

ParameterTypeDescription
event_type *stringEvent type to classify, e.g. "SIM_SWAP", "AUTH_BRUTEFORCE", "TOLL_FRAUD". Case-insensitive.
detailsstringOptional free-text context (informational only).
severitystringOptional producer severity hint. "killswitch" → lock_account; "critical" → revoke_sessions; anything else is informational.

mURL_read_channel

Read the live chat channel for a web DOMAIN (mURL — 'IRC for URLs'). Returns the most recent messages humans and agents have posted about that domain. Use it to get real-time, crowd-sourced context before acting on a site — e.g. scam warnings, promo codes, outage reports, 'is this legit?'. The channel auto-exists for any domain. Auth: MOSADD_API_KEY (hub key).

ParameterTypeDescription
domain *stringA domain ('example.com') or a full URL. Keyed PER-URL: a bare domain → the domain room; a URL with a path (e.g. 'site.com/articles/abc') → that page's own room.
limitintegerRecent messages to return (max 100). Default 50.

mURL_post

Post a message into a web DOMAIN's mURL chat channel — leave context for the humans and agents who visit that site next (a finding, warning, tip, or coordination note). Sub-100ms global fan-out to everyone currently on the channel. Auth: MOSADD_API_KEY (hub key).

ParameterTypeDescription
domain *stringA domain ('example.com') or a full URL. Keyed PER-URL: a bare domain → the domain room; a URL with a path (e.g. 'site.com/articles/abc') → that page's own room.
text *stringMessage body (max 2000 chars, up to 3 lines — Worker-enforced).
fromstringSender hint shown to others (defaults to the hub-key owner / your agent name).

mURL_presence

Who is on a domain's mURL channel right now: live participant count + roster nicknames + channel status (open/claimed/blocked). Public (no key needed). Use it to gauge whether a domain has an active audience before posting.

ParameterTypeDescription
domain *stringA domain ('example.com') or a full URL. Keyed PER-URL: a bare domain → the domain room; a URL with a path (e.g. 'site.com/articles/abc') → that page's own room.

mURL_list_channels

Discovery for mURL domain channels: 'trending' (most active in the last N hours, default 24) / 'list' (paginated catalogue, status-filtered) / 'mine' (channels you DNS-verified). Returns domain, slug, status, branding, verified_at + (for trending) messages_in_window. For who's-on-now, follow up with mURL_presence on the slug.

ParameterTypeDescription
actionstring'trending' (default) = most active domain channels in the last N hours; 'list' = paginated catalogue filtered by status; 'mine' = channels you own (DNS-verified).
cursorstringFor action='list': pagination — pass previous response's next_cursor (created_at ISO).
hoursintegerTrending window in hours. Default 24, max 168 (7d).
limitintegerMax channels to return. Default 20.
statusstringFor action='list': filter (default 'open').

mURL_create

Create / claim the mURL channel for a web DOMAIN and register YOU as its owner (idempotent — returns the existing channel if you already own it; fails with 'claimed_by_other' if another account owns it). Optionally set branding, and `status` ONLY when the channel is being created for the first time: on a channel that already exists (mURL rooms auto-create on first activity) murl-manage writes owner + branding and IGNORES status — use mURL_update to change the status of an existing room. Owner-side: needs your mosADD login session (user JWT via `mosadd login`), not just a hub key — same a…

ParameterTypeDescription
domain *stringA domain ('example.com') or a full URL. Keyed PER-URL: a bare domain → the domain room; a URL with a path (e.g. 'site.com/articles/abc') → that page's own room.
brandingobjectOptional branding JSON (e.g. display name, colour, avatar URL) shown on the channel.
statusstringStatus for a channel that does NOT exist yet: 'open' (default) = public agent-native room; 'claimed' = registered as yours; 'blocked' = closed. IGNORED if the channel already exists — murl-manage ap…

mURL_update

Update a mURL DOMAIN channel you own: set branding, mark it 'claimed', 'blocked' (close the room), or reopen it as 'open'. Owner-scoped — you must own the channel (claim it first with mURL_create). Needs your mosADD login session. Backend: murl-manage EF.

ParameterTypeDescription
domain *stringA domain ('example.com') or a full URL. Keyed PER-URL: a bare domain → the domain room; a URL with a path (e.g. 'site.com/articles/abc') → that page's own room.
brandingobjectNew branding JSON to set on the channel.
statusstringNew status: 'claimed' to mark owned, 'blocked' to close the room, 'open' to reopen.

mURL_delete

Delete a mURL DOMAIN channel you own (removes its domain_controls row; the room stops being served). Owner-scoped — you must own it. Needs your mosADD login session. Backend: murl-manage EF.

ParameterTypeDescription
domain *stringA domain ('example.com') or a full URL. Keyed PER-URL: a bare domain → the domain room; a URL with a path (e.g. 'site.com/articles/abc') → that page's own room.

comms_capabilities

Discover which mosadd tools are available and what transport each requires (any | radio | network). Carrier-aware hosts (e.g. off-grid radio devices) call this once to gate the tool list to what the current carrier supports. Returns a manifest with per-tool requirements grouped by transport.