Skip to main content
Glama

Manage email outreach queue

manage_email_outreach_queue
Destructive

Bulk operations (status, approve-all, cancel_all) act on the current agent's queue when run inside an agent, and across the whole account from account-level chat — except a bulk cancel_all or approve-all, which from account-level chat is rejected unless agent_id names the campaign, so it can't hit every campaign at once. Targeting one person by recipient_email reaches them in any agent. The next send time and per-mailbox usage stay account-wide (the send rate is per-mailbox).

For pausing/resuming the campaign, use update_agent to set the agent status to 'paused' or 'active' instead. Dict with action result and current queue status

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": {
      "action": "<action>"
    },
    "name": "manage_email_outreach_queue"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoFor 'update' — new body text.
actionYesOne of: - 'status': Get full queue details (queued and failed items, plus sent counts). The `pending_items` / `pending_approval_items` / `failed_items` lists cap at 50 each, each with a matching `*_truncated` flag — when a list's flag is True, pass `offset` (offset += 50) to read the next page. Each `failed_items` row (newest first) carries `last_error`, the reason that send failed — read it to answer "why wasn't X emailed?"; when X is in none of these lists, their outreach may have been cancelled, so read 'list_cancelled'. Each item carries the `mailbox` it sends from; the account-level `mailboxes` list gives each mailbox's remaining daily headroom. The top-level `cancelled_by_kind` maps each cancel cause to its count (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy rows under `unknown`) — read it to answer "how much outreach was cancelled, and why?". - 'list_cancelled': List cancelled emails, newest first, in the 'status' item shape. Each row's `cancel_kind` is why it was cancelled, `rejection_reason` is the user's own reason when they declined it, and `last_error` is its last note — usually the cancel's explanation, though some cancels leave an earlier failure or hold note there, so state the cause from `cancel_kind`. Caps at 50 per page with a `cancelled_truncated` flag; page with `offset` like 'status'. - 'update': Edit a queued email's subject and/or body. Requires recipient_email. Pass subject and/or body to change — no cancel-and-re-queue needed. Send order is derived, not per-row scheduled; to pause or resume the campaign use update_agent (see the note above). A draft on a step running an A/B test carries `ab_version` ('A', 'B', or 'left_out' when its send won't count) on its status row and in this action's result; updating one takes ab_version too — the version the edited draft reads as — or ab_version alone to re-file it unedited. - 'approve': Send authorization belongs to the user, so this action needs a message that arrived after the drafts were queued and explicitly says to approve or send them. A message from before the drafts existed cannot authorize them — a request to review them, to approve them later, or to be able to approve from chat means: report that the queue is awaiting approval and end your turn; the user's next message decides. Once authorized: if recipient_email is given, approve only that item, otherwise approve ALL pending_approval items. An email whose subject or body still holds a [[slot]] for the user to fill in stays awaiting approval and comes back in `still_held` with the slot to fill: tell the user, or fill it with 'update' once they give you the wording. From account-level chat an approve-all is rejected unless agent_id names the campaign — it must not fire every campaign's drafts into sending at once. - 'cancel': Cancel a queued email. Pass recipient_email to cancel that one person. To cancel the ENTIRE pending queue — which drops drafts the user already approved — you must pass cancel_all=True; an unscoped cancel without it is rejected. From account-level chat a cancel_all is rejected unless agent_id names the campaign to cancel — it must not clear every campaign's queue at once.
offsetNoFor 'status' and 'list_cancelled' — skip this many items in each list before returning the next 50. Use it to page through a queue larger than 50 (offset=50 for items 51-100, etc.).
subjectNoFor 'update' — new subject line.
agent_idNoFor 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one campaign's queue. Required from account-level chat (no active agent) and in any call with on_behalf_of, where an unscoped bulk cancel or approve is rejected; call list_agents to get the id (list_team_shared_agents for a teammate's campaigns).
ab_versionNoRequired for 'update' of a draft in an A/B test — the version the edited draft now reads as: 'A', 'B', or 'left_out' when it fits neither, so its send isn't counted in the test; its current version when the edit doesn't change that. Omit for a draft not in a test.
cancel_allNoFor 'cancel' only — confirm a queue-wide cancel when no recipient_email is given. Guards against silently tearing down the whole campaign.
on_behalf_ofNoA teammate's email, or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account.
recipient_emailNoFor 'update', 'approve', and 'cancel' — target a specific recipient. Leave empty to apply to all items (not valid for 'update'; for 'cancel', requires cancel_all=True).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / on_behalf_of / description
      Previous value: -"A teammate's email (one with team actions turned on), or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."New value: +"A teammate's email, or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."
  2. Changed3 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above). A draft on a step running an A/B test\n  carries `ab_version` ('A', 'B', or 'left_out' when its send won't count) on its\n  status row and in this action's result; updating one takes ab_version too — the\n  version the edited draft reads as — or ab_version alone to re-file it unedited.\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. An email whose subject or body still holds a\n  [[slot]] for the user to fill in stays awaiting approval and comes back in\n  `still_held` with the slot to fill: tell the user, or fill it with\n  'update' once they give you the wording. From account-level chat an\n  approve-all is rejected unless agent_id names the campaign — it must not\n  fire every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."New value: +"One of:\n- 'status': Get full queue details (queued and failed items, plus sent\n  counts). The `pending_items` / `pending_approval_items` / `failed_items`\n  lists cap at 50 each, each with a matching `*_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each `failed_items` row (newest first) carries `last_error`, the reason\n  that send failed — read it to answer \"why wasn't X emailed?\"; when X is in\n  none of these lists, their outreach may have been cancelled, so read\n  'list_cancelled'. Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'list_cancelled': List cancelled emails, newest first, in the 'status' item\n  shape. Each row's `cancel_kind` is why it was cancelled, `rejection_reason` is\n  the user's own reason when they declined it, and `last_error` is its last\n  note — usually the cancel's explanation, though some cancels leave an earlier\n  failure or hold note there, so state the cause from `cancel_kind`. Caps at 50\n  per page with a `cancelled_truncated` flag; page with `offset` like 'status'.\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above). A draft on a step running an A/B test\n  carries `ab_version` ('A', 'B', or 'left_out' when its send won't count) on its\n  status row and in this action's result; updating one takes ab_version too — the\n  version the edited draft reads as — or ab_version alone to re-file it unedited.\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. An email whose subject or body still holds a\n  [[slot]] for the user to fill in stays awaiting approval and comes back in\n  `still_held` with the slot to fill: tell the user, or fill it with\n  'update' once they give you the wording. From account-level chat an\n  approve-all is rejected unless agent_id names the campaign — it must not\n  fire every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "status",
      -  "update",
      -  "approve",
      -  "cancel"
      -]New value: +[
      +  "status",
      +  "list_cancelled",
      +  "update",
      +  "approve",
      +  "cancel"
      +]
    • changedInput schema / properties / offset / description
      Previous value: -"For 'status' only — skip this many items in each queued list before\n   returning the next 50. Use it to page through a queue larger than 50\n   (offset=50 for items 51-100, etc.)."New value: +"For 'status' and 'list_cancelled' — skip this many items in each list before\n   returning the next 50. Use it to page through a queue larger than 50\n   (offset=50 for items 51-100, etc.)."
  3. Changed3 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above). A draft on a step running an A/B test\n  carries `ab_version` ('A', 'B', or 'left_out' when its send won't count) on its\n  status row and in this action's result; updating one takes ab_version too — the\n  version the edited draft reads as — or ab_version alone to re-file it unedited.\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless agent_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."New value: +"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above). A draft on a step running an A/B test\n  carries `ab_version` ('A', 'B', or 'left_out' when its send won't count) on its\n  status row and in this action's result; updating one takes ab_version too — the\n  version the edited draft reads as — or ab_version alone to re-file it unedited.\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. An email whose subject or body still holds a\n  [[slot]] for the user to fill in stays awaiting approval and comes back in\n  `still_held` with the slot to fill: tell the user, or fill it with\n  'update' once they give you the wording. From account-level chat an\n  approve-all is rejected unless agent_id names the campaign — it must not\n  fire every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."
    • changedInput schema / properties / agent_id / description
      Previous value: -"For 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one\n    campaign's queue. Required from account-level chat (no active agent), where an\n    unscoped bulk cancel or approve is rejected; call list_agents to get the id."New value: +"For 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one\n    campaign's queue. Required from account-level chat (no active agent) and in any\n    call with on_behalf_of, where an unscoped bulk cancel or approve is rejected; call\n    list_agents to get the id (list_team_shared_agents for a teammate's campaigns)."
    • changedInput schema / properties / on_behalf_of / description
      Previous value: -"Act on a consented teammate's email queue instead of your own —\npass their email. Covers approve / cancel / update / status; a bulk\napprove-all / cancel_all must name one of the teammate's campaigns via\nagent_id. Gated on that teammate's act-on-behalf setting; a teammate who\nhasn't granted it is rejected. Omit for your own.\nOr pass an agency client's email, from list_agency_clients, to run the call in that client's account, where none of the teammate limits above apply."New value: +"A teammate's email (one with team actions turned on), or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."
  4. Changed2 schema fields changed
    • removedInput schema / properties / as_teammate
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Act on a consented teammate's email queue instead of your own —\npass their email. Covers approve / cancel / update / status; a bulk\napprove-all / cancel_all must name one of the teammate's campaigns via\nagent_id. Gated on that teammate's act-on-behalf setting; a teammate who\nhasn't granted it is rejected. Omit for your own."
      -}
    • addedInput schema / properties / on_behalf_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Act on a consented teammate's email queue instead of your own —\npass their email. Covers approve / cancel / update / status; a bulk\napprove-all / cancel_all must name one of the teammate's campaigns via\nagent_id. Gated on that teammate's act-on-behalf setting; a teammate who\nhasn't granted it is rejected. Omit for your own.\nOr pass an agency client's email, from list_agency_clients, to run the call in that client's account, where none of the teammate limits above apply."
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / ab_version
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Which version of a step's A/B test a queued draft counts under, or LEFT_OUT of the test.",
      +      "enum": [
      +        "A",
      +        "B",
      +        "left_out"
      +      ],
      +      "title": "DraftVersion",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Required for 'update' of a draft in an A/B test — the version the edited\ndraft now reads as: 'A', 'B', or 'left_out' when it fits neither, so its send isn't\ncounted in the test; its current version when the edit doesn't change that. Omit\nfor a draft not in a test."
      +}
    • changedInput schema / properties / action / description
      Previous value: -"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above).\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless agent_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."New value: +"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above). A draft on a step running an A/B test\n  carries `ab_version` ('A', 'B', or 'left_out' when its send won't count) on its\n  status row and in this action's result; updating one takes ab_version too — the\n  version the edited draft reads as — or ab_version alone to re-file it unedited.\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless agent_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."
  6. Changed4 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above).\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless task_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless task_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."New value: +"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above).\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless agent_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless agent_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "For 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one\n    campaign's queue. Required from account-level chat (no active agent), where an\n    unscoped bulk cancel or approve is rejected; call list_agents to get the id."
      +}
    • changedInput schema / properties / as_teammate / description
      Previous value: -"Act on a consented teammate's email queue instead of your own —\npass their email. Covers approve / cancel / update / status; a bulk\napprove-all / cancel_all must name one of the teammate's campaigns via\ntask_id. Gated on that teammate's act-on-behalf setting; a teammate who\nhasn't granted it is rejected. Omit for your own."New value: +"Act on a consented teammate's email queue instead of your own —\npass their email. Covers approve / cancel / update / status; a bulk\napprove-all / cancel_all must name one of the teammate's campaigns via\nagent_id. Gated on that teammate's act-on-behalf setting; a teammate who\nhasn't granted it is rejected. Omit for your own."
    • removedInput schema / properties / task_id
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "For 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one\n    campaign's queue. Required from account-level chat (no active task), where an\n    unscoped bulk cancel or approve is rejected; call list_agents to get the id."
      -}
  7. Changed2 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_task (see the note above).\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless task_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless task_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."New value: +"One of:\n- 'status': Get full queue details (pending/sent/failed items). The\n  `pending_items` / `pending_approval_items` lists cap at 50 each, each\n  with a `pending_truncated` / `pending_approval_truncated` flag — when a\n  list's flag is True, pass `offset` (offset += 50) to read the next page.\n  Each item carries the `mailbox` it sends from; the account-level\n  `mailboxes` list gives each mailbox's remaining daily headroom. The\n  top-level `cancelled_by_kind` maps each cancel cause to its count\n  (`recipient_replied`, `task_deleted`, `auto_shelved`, …; pre-taxonomy\n  rows under `unknown`) — read it to answer \"how much outreach was\n  cancelled, and why?\".\n- 'update': Edit a queued email's subject and/or body. Requires recipient_email.\n  Pass subject and/or body to change — no cancel-and-re-queue needed. Send order\n  is derived, not per-row scheduled; to pause or resume the campaign use\n  update_agent (see the note above).\n- 'approve': Send authorization belongs to the user, so this action\n  needs a message that arrived after the drafts were queued and\n  explicitly says to approve or send them. A message from before the\n  drafts existed cannot authorize them — a request to review them,\n  to approve them later, or to be able to approve from chat means:\n  report that the queue is awaiting approval and end your turn; the\n  user's next message decides. Once authorized: if recipient_email\n  is given, approve only that item, otherwise approve ALL\n  pending_approval items. From account-level chat an approve-all is\n  rejected unless task_id names the campaign — it must not fire\n  every campaign's drafts into sending at once.\n- 'cancel': Cancel a queued email. Pass recipient_email to cancel that one\n  person. To cancel the ENTIRE pending queue — which drops drafts the user\n  already approved — you must pass\n  cancel_all=True; an unscoped cancel without it is rejected. From\n  account-level chat a cancel_all is rejected unless task_id names the campaign\n  to cancel — it must not clear every campaign's queue at once."
    • changedInput schema / properties / task_id / description
      Previous value: -"For 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one\n    campaign's queue. Required from account-level chat (no active task), where an\n    unscoped bulk cancel or approve is rejected; call list_tasks to get the id."New value: +"For 'cancel' and 'approve' — scope a bulk cancel_all / approve-all to one\n    campaign's queue. Required from account-level chat (no active task), where an\n    unscoped bulk cancel or approve is rejected; call list_agents to get the id."
  8. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description reinforces that by warning that cancel_all tears down approved drafts and that bulk approve-all fires every draft into sending. That permission and authorization framing is valuable, but the stated return shape is only "Dict with action result and current queue status" — pagination and truncation behavior are documented in the schema, not here. The added context is genuinely useful, yet it largely restates scoping rules the schema already carries, so it sits above a safe-read baseline without being rich.

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?

Purpose and the update_agent pointer are front-loaded, which is right, but the action descriptions are extremely dense, with parenthetical asides (cancelled_by_kind taxonomy, ab_version semantics, pre-taxonomy rows) that push the reading cost well beyond what a tool selector needs. The information earns its place for the caller, but the paragraph-level structure buries the routing rules mid-paragraph rather than leading with them.

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

Completeness4/5

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

For a nine-parameter mutation tool with no output schema, the definition covers action semantics, scoping, authorization, and the pause/resume alternative, which is close to everything an agent needs to invoke it correctly. The one gap is return-value behavior: status list caps and truncation flags live in the schema, and the <returns> tag does not summarize them.

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 parameters are already documented; the description still adds cross-parameter meaning the schema states only locally, such as agent_id being required from account-level chat and in any on_behalf_of call, and that approve-all without agent_id is rejected. It does not add syntax or format detail beyond the enum documentation, so it is an enhancement rather than a full re-derivation.

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 summary states a specific verb and resource ("Manage the email outreach queue") and enumerates the three things it does: check status, update/cancel items, approve pending items. It also names the sibling it is not ("use update_agent to set the agent status"), so an agent can separate this from queue_email_outreach and update_agent before opening a schema.

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?

Explicit routing is given: pause/resume belongs to update_agent, single-recipient targeting uses recipient_email, queue-wide cancellation requires cancel_all=True, and account-level bulk calls require agent_id. It also specifies the authorization condition for 'approve' (a message after the drafts were queued) and what to do otherwise, which is real when-to-use guidance rather than inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources