Skip to main content
POST
Query data

Authorizations

Authorization
string
header
required

An API key, starting ak_. Create one under Settings > MCP and API in Steerco.

Headers

X-Workspace-Id
string
required

The workspace id. GET /v1/workspaces lists yours.

Body

application/json
type
string
required

Entity type to aggregate. Any of: artifacts, shares, workflows, workflow_runs, workflow_outputs, member, lists, list_memberships, assets, asset_templates, account, contact, product, opportunity, accountProduct, risk, ticket, activity, file, agent_steps, deals, deal_readings, email_messages, calendar_events, or a custom object slug, as search_records's typeLabels name them. Mail and calendar are reachable here as email_messages and calendar_events, but to FIND a specific message use search_records instead; this tool answers aggregate questions.

pipeline
string
required

MongoDB aggregation pipeline as a JSON array string, for example '[{"$match":{"data.event-type":"foo"}},{"$count":"value"}]'. Workspace+definition match is auto-prepended; do not include it. (Encoded as a string because some providers strip "$"-prefixed keys from typed-object tool parameters.)

maxResults
integer

Hard cap on returned rows. Default 1000, ceiling 10000.

Required range: x <= 10000

Response

The tool's result

status
enum<string>
required
Available options:
ok
result
any
cut
object

Present when the result was larger than about 25,000 tokens and Steerco cut it.