Skip to main content
Glama

Get pending approvals

get_pending_approvals
Read-only

Each pending row is bucketed by action-type category exactly as the page groups them: LinkedIn connection requests / messages / follows / post engagement, emails, gifts, Instantly handoffs, and manual actions. Same-post comment+reaction rows collapse into one engagement item, matching the page. A gift item carries the order its card shows (product_url, max_price_usd, shipping_address, with the note as its summary) and an error; the user completes any missing piece on the card before approving it. max_price_usd is the most the item may cost including tax and shipping; approving charges the owner's card for gifts the order's actual total, at most max_price_usd, plus about $3.30 + 2.9% in fees on top. error is blank unless the user approved the card and the order was refused: it then gives the reason, and the card waits for the user to fix the order and approve it again. recipient_entered_address is true when the prospect entered shipping_address on a gift link the user sent; the user's approval then orders the gift to it. owner_has_gift_card is false when the agent's owner has saved no card for gifts; approving then orders nothing until the owner adds one under Settings → Billing. An instantly item is a prospect a campaign flow's Instantly step hands to an Instantly campaign once the user approves it; its summary gives their address and the Instantly campaign's id. A LinkedIn, email or instantly item may carry hold_reason, why it's held beyond the user's approval settings, and teammate_contacts, each teammate who tracks the person, has queued outreach to them, or has contacted them through Sliq, as its state says. A LinkedIn or email item whose send waits for the user's working hours on the prospect's clock carries prospect_hours: that timezone, and the hours the send can go out there (inside both the user's hours and the prospect's) as start_minute/end_minute past midnight there. Without it, the send keeps to the user's own hours. Sequence-produced items (LinkedIn, email, and a manual, gift or Instantly step queued by its flow node) carry node_id/node_label naming the campaign-flow node that authored them — null for items created outside a sequence. A manual item also carries completion_criteria: how to advance the prospect once the user reports what they did. Cross-agent for the owner; for one agent's items, pass agent_id, and for one step of its flow, also pass that step's bucket and keep the items carrying its node_id.

Bounded by default so an approval-gated campaign holding thousands of drafts doesn't return every full message. The default gives per-bucket/per-agent counts plus a short preview per bucket (first few items); pass bucket to page that one bucket's full item list. A bucket's preview_truncated (or count exceeding the preview) tells you to drill in. By default (no bucket), a dict {'pending': {'total': int, 'buckets': [{'bucket', 'title', 'count', 'preview_truncated': bool, 'agents': [{'agent_id', 'agent_title', 'count'}], 'preview': [item, ...]}]}, 'recently_resolved': {'window_days': int, 'total': int, 'items': [...]}}. The preview holds the bucket's first few full items. Recently-resolved lists only rows with a transition timestamp — manual done/dismissed, LinkedIn/email sent; cancelled or rejected drafts don't appear there. Drill-down (bucket set): {'bucket', 'title', 'count', 'offset', 'limit', 'truncated': bool, 'items': [item, ...]} — full-text items, newest-first; count is the whole bucket, truncated means more beyond this page (re-call with offset += limit).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_pending_approvals"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketNoDrill into one bucket for its full-text items, paged. One of 'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow', 'engagement', 'gift', 'instantly', 'manual'. Omit for the bounded counts+preview.
offsetNoRows to skip in drill-down mode (default 0); re-call with `offset += limit` while `truncated` is true. Ignored without `bucket`.
agent_idNoScope every section to one agent's items. Omit for every agent.
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.
resolved_within_daysNoRecency window for the recently-resolved section (default 7). Only used in the default (no-`bucket`) mode.

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. Changed2 schema fields changed
    • changedInput schema / properties / bucket / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "email",
      -      "linkedin_invite",
      -      "linkedin_message",
      -      "linkedin_follow",
      -      "engagement",
      -      "gift",
      -      "manual"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "email",
      +      "linkedin_invite",
      +      "linkedin_message",
      +      "linkedin_follow",
      +      "engagement",
      +      "gift",
      +      "instantly",
      +      "manual"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / bucket / description
      Previous value: -"Drill into one bucket for its full-text items, paged. One of\n'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow',\n'engagement', 'gift', 'manual'. Omit for the bounded counts+preview."New value: +"Drill into one bucket for its full-text items, paged. One of\n'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow',\n'engagement', 'gift', 'instantly', 'manual'. Omit for the bounded counts+preview."
  3. Changed1 schema field changed
    • changedInput schema / properties / on_behalf_of / description
      Previous value: -"Read a consented teammate's pending approvals instead of\nyour own — pass their email. Gated on that teammate's act-on-behalf\nsetting (stricter than conversation sharing); a teammate who hasn't\ngranted 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. Changed4 schema fields changed
    • removedInput schema / properties / as_teammate
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Read a consented teammate's pending approvals instead of\nyour own — pass their email. Gated on that teammate's act-on-behalf\nsetting (stricter than conversation sharing); a teammate who hasn't\ngranted it is rejected. Omit for your own."
      -}
    • changedInput schema / properties / bucket / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "email",
      -      "linkedin_invite",
      -      "linkedin_message",
      -      "linkedin_follow",
      -      "engagement",
      -      "reddit",
      -      "gift",
      -      "manual"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "email",
      +      "linkedin_invite",
      +      "linkedin_message",
      +      "linkedin_follow",
      +      "engagement",
      +      "gift",
      +      "manual"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / bucket / description
      Previous value: -"Drill into one bucket for its full-text items, paged. One of\n'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow',\n'engagement', 'reddit', 'gift', 'manual'. Omit for the bounded counts+preview."New value: +"Drill into one bucket for its full-text items, paged. One of\n'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow',\n'engagement', 'gift', 'manual'. Omit for the bounded counts+preview."
    • addedInput schema / properties / on_behalf_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Read a consented teammate's pending approvals instead of\nyour own — pass their email. Gated on that teammate's act-on-behalf\nsetting (stricter than conversation sharing); a teammate who hasn't\ngranted 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. Changed1 schema field changed
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Scope every section to one agent's items. Omit for every agent."
      +}
  6. Changed2 schema fields changed
    • changedInput schema / properties / bucket / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "email",
      -      "linkedin_invite",
      -      "linkedin_message",
      -      "linkedin_follow",
      -      "engagement",
      -      "reddit",
      -      "manual"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "email",
      +      "linkedin_invite",
      +      "linkedin_message",
      +      "linkedin_follow",
      +      "engagement",
      +      "reddit",
      +      "gift",
      +      "manual"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / bucket / description
      Previous value: -"Drill into one bucket for its full-text items, paged. One of\n'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow',\n'engagement', 'reddit', 'manual'. Omit for the bounded counts+preview."New value: +"Drill into one bucket for its full-text items, paged. One of\n'email', 'linkedin_invite', 'linkedin_message', 'linkedin_follow',\n'engagement', 'reddit', 'gift', 'manual'. Omit for the bounded counts+preview."
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Far exceeds the readOnlyHint annotation: it explains default bounding to avoid dumping thousands of drafts, bucket collapse rules (same-post comment+reaction), the meaning of `error` only appearing after a refused order, `owner_has_gift_card=false` ordering nothing until a card is added, and which rows do NOT appear in recently-resolved (cancelled or rejected drafts). Side-effect details for approval (actual order total up to `max_price_usd` plus ~$3.30 + 2.9% fees) are exactly the kind of consequence an agent needs before acting.

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

Conciseness4/5

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

Purpose and routing are front-loaded in the first two sentences and the summary/returns tag structure is easy to navigate. It is nevertheless very long, with per-field gift/Instantly detail (fees, `recipient_entered_address`, `prospect_hours` minute offsets) that a reader must wade through even though much of it only matters after a drill-down into one bucket.

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

Completeness5/5

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

There is no output schema, so the description carries the full burden of describing both response modes — it does so explicitly, down to key names, `count` vs `preview` semantics, and truncation flags. Given the tool's two-mode, agent-scoped complexity, an agent has everything needed to call it and interpret the result.

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 baseline is 3, but the description adds real meaning the schema lacks: `bucket` selects paged full-text mode while omission yields bounded counts, `node_id` filtering is tied to passing a flow step's `bucket`, and `agent_id` is framed as cross-agent-for-owner scoping. It does not explain `on_behalf_of` or how `resolved_within_days` interacts with the bucket mode, leaving those to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus a precise analogy: 'List everything waiting on the user — the same pending-approval rollup the home Approvals page renders, plus rows resolved within a recency window.' It then explicitly contrasts itself with two named tools (list_inbox_conversations for prospect replies, request_user_action for flagged manual actions), so an agent can distinguish it from siblings without opening any 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?

Gives explicit use cases ("answer 'what's waiting on me?'", "check whether a manual action you flagged with request_user_action was handled", "before re-flagging a prospect") and an explicit exclusion routing to list_inbox_conversations. It also documents the drill-down workflow: call without `bucket` for counts, then pass `bucket` when `preview_truncated` is set, and re-call with `offset += limit` while `truncated`.

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