# get_citation_metrics

Read only. Citation headline metrics for an asset over a trailing window: total citations, cited-run counts and owned-citation counts from real engine answers. Raw measured aggregates; absent inputs mean not measured.

## When to use it

- Use it when: You need raw citation counts over a trailing window.
- Not when: You need a share with an interval; counts here are aggregates, not proportions.

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| assetId | string | yes | The Visibility Asset UUID to query. |
| windowDays | number | no | Trailing window in days; default 28, at most 365. |

## What comes back

| Field | Meaning |
| --- | --- |
| assetId | The asset asked about, echoed back. |
| dataStatus | One of ok, not_measured or empty_filter. not_measured means no measurement of this kind exists yet, which is not zero; empty_filter means data exists and your filter matched none of it. |
| href | The dashboard page that holds the evidence behind this result, for the right site. A signed-in person can open it; quote it beside the numbers. |
| windowDays | The trailing window the counts cover. |
| totalCitations | Citations of any source in sampled answers inside the window. |
| ownedCitations | Citations of the brand's own pages. |
| avgPosition | Mean position of owned citations, or null when there were none. |
| positionSamples | How many owned citations the mean position is over. |
| totalRuns | Answers sampled inside the window. |
| citedRuns | Answers that cited an owned page. |

## What comes back with the number

Shares arrive with the sample size behind them and a 95% Wilson interval. Values carry a provenance of measured, estimated or derived. A pillar that was not measured reports as not measured rather than as zero, and the composite Visibility Score is held until at least 5 of its 7 pillars are measured.

## Example request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_citation_metrics",
    "arguments": {
      "assetId": "<assetId from list_assets>",
      "windowDays": "<number>"
    }
  }
}
```

## dataStatus

- `ok`: There is at least one result, or a measured zero.
- `not_measured`: No measurement of this kind exists yet for the asset. Not zero, and not a broken connection.
- `empty_filter`: Data exists, and the filter you passed matched none of it. Retry without the filter.

## Example prompt

> Call get_citation_metrics for my site over 28 days and tell me how many sampled answers cited us, out of how many.

## Calling it

Connect the MCP server at `https://app.seoaio.ai/api/mcp` over the Streamable HTTP transport. Per-customer
authentication is required, so nothing is exposed without it. Call `list_assets` first:
every other tool needs an `assetId` from it. A proposal is approved or rejected by a
person at `https://app.seoaio.ai/dashboard/requests`.

## Next

- [list_sources](https://seoaio.ai/docs/tools/list_sources/md)
- [get_answer_share](https://seoaio.ai/docs/tools/get_answer_share/md)

## More

- The skill, which carries the call order and the rules for quoting a number: https://seoaio.ai/SKILL.md
- Troubleshooting: https://seoaio.ai/docs/troubleshooting
- This page as HTML: https://seoaio.ai/docs/tools/get_citation_metrics
