# Hermoso: metrics_query: Query metrics · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/metrics_query/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / metrics_query

# `metrics_query`

Query metrics with groupBy and granularity read-only

Area: ANALYTICS + METRICS PARITY · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## 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](https://hermoso.ai/docs/credits/).

## Related tools

- [metrics_catalog](https://hermoso.ai/docs/reference/publish/metrics_catalog/) Metrics catalog: what can be queried
- [analytics_changes](https://hermoso.ai/docs/reference/publish/analytics_changes/) Post readings recorded since my last sync
- [manage_post_tracking](https://hermoso.ai/docs/reference/publish/manage_post_tracking/) Watch a post for N days
- [collect_post_metrics](https://hermoso.ai/docs/reference/publish/collect_post_metrics/) Read how the recorded posts performed
- [post_authenticity](https://hermoso.ai/docs/reference/publish/post_authenticity/) Do our post's views look real?
- [backfill_posts](https://hermoso.ai/docs/reference/publish/backfill_posts/) Import a channel’s past posts
- [post_metrics_timeline](https://hermoso.ai/docs/reference/publish/post_metrics_timeline/) Every reading of one post
- [analytics_dashboard](https://hermoso.ai/docs/reference/publish/analytics_dashboard/) This week vs last week, in one read

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
