metrics_query
Query metrics with groupBy and granularity read-only
Description
One metrics read over what Hermoso already measures, shaped the way a report wants it. entity posts (posts, measured, reach, engagement, engagementRate for posts PUBLISHED in the window; groupBy channel, account, media, hour, dayOfWeek, post), accounts (followers and followerChange per account from the daily follower reading; groupBy account, channel or none) or inbox (received, sent, response times, reply rate; groupBy none or channel). granularity total, day, week (weeks start Monday) or month. Window: days (default 30) or fromDate + toDate. Reach and engagement are never added across platforms: a grouping that would pool them is split by channel, and the reply says so. metrics_catalog lists every metric, grouping and limit. Read-only, 0 credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
brand | string | profile id/name from list_brands, this call only |
entity | "posts" | "accounts" | "inbox" | default posts |
metrics | "posts" | "measured" | "reach" | "engagement" | "engagementRate"[] | posts only; default all |
groupBy | string[] | posts: channel, account, media, hour, dayOfWeek, post; accounts: account | channel | none; inbox: none | channel |
granularity | "total" | "day" | "week" | "month" | |
days | number | |
fromDate | string | |
toDate | string | |
channel | string | |
account | string | |
sort | string | posts: posts-desc, reach-desc, engagement-desc, engagementRate-desc, period-asc |
limit | number | posts: rows, 1-1000 (default 100) |
timezone | string |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/metrics_query.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"metrics_query","arguments":{}}}
CLI
hermoso call metrics_query --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
metrics_catalogMetrics catalog: what can be queriedanalytics_changesPost readings recorded since my last syncmanage_post_trackingWatch a post for N dayscollect_post_metricsRead how the recorded posts performedpost_authenticityDo our post's views look real?backfill_postsImport a channel’s past postspost_metrics_timelineEvery reading of one postanalytics_dashboardThis week vs last week, in one read