MMetadata /docs
Docs/Tools/get_account_opportunities_insights

get_account_opportunities_insights

Get opportunities for domain(s) with status filtering and pagination.

Read analytics

Returns data. Calling it changes nothing, so it is safe in an unattended loop.

What it does

Get opportunities for domain(s) with status filtering and pagination.

STATUS VALUES: NO_OPPS, OPEN, CLOSED_WON, CLOSED_LOST

SORT OPTIONS: lastTouchDate (default), status, name, amount

RETURNS: one entry per requested domain, in request order, each carrying its `domain`. Read each account's opportunities from the entry carrying ITS domain only. A domain the platform could not answer comes back as {domain, error, data: []} in its own slot.

PAGINATION: page and size apply per domain. Use small page sizes (25-50) with sequential calls.

Arguments

ArgumentTypeNotes
domains array required Domain strings. E.g., ['metadata.io']
status array Filter by status. Omit for all.
startDate string ISO 8601 format. E.g., '2025-01-01T00:00:00.000Z'
endDate string ISO 8601 format.
page integer 0-based page number.
size integer Items per page (default 25, max 10000). Raise it to pull the full set in one call.
sort string Sort field. Default: lastTouchDate
one of: lastTouchDate, status, name, amount

Request

Request template, not a complete runnable example. Replace placeholders, empty objects, arrays, and zero values with valid account-specific inputs. Read required fields and nested constraints in the full schema. Confirm the account, connected channels, and referenced assets before calling a write tool.

curl
curl -s -X POST https://mcp-server.metadata.io/mcp \
  -H "Authorization: $METADATA_PAT" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2025-11-25" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_account_opportunities_insights","arguments":{"domains":[]}}}'

Response

Recorded with these arguments. Enum values are the first the tool's own schema declares; ids were fetched live from a list_ call immediately before.

arguments used
{
 "domains": [
  "metadata.io"
 ]
}

Recorded 2026-09-05 from the production server, in 573 ms. Values that identify a customer or disclose money are replaced with typed placeholders; keys, types and nesting are exactly as returned.

recorded response
"[value redacted]"

Other analytics tools:

Browse the tool catalog · machine-readable index