MCP tools

get_citation_metrics

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

NameTypeRequiredDescription
assetIdstringyesThe Visibility Asset UUID to query.
windowDaysnumbernoTrailing window in days; default 28, at most 365.

What comes back

Every field this tool can return. Checked against the handler on a real database in the test suite, not typed from memory.

FieldMeaning
assetIdThe asset asked about, echoed back.
dataStatusOne 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.
hrefThe 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.
windowDaysThe trailing window the counts cover.
totalCitationsCitations of any source in sampled answers inside the window.
ownedCitationsCitations of the brand's own pages.
avgPositionMean position of owned citations, or null when there were none.
positionSamplesHow many owned citations the mean position is over.
totalRunsAnswers sampled inside the window.
citedRunsAnswers 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

The wire shape, from the schema. Every argument is a placeholder.

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

What dataStatus means

  • 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.

Next

For an agent

Read the skill at /SKILL.md before calling anything. It carries the tool order and the rules for quoting a number, including the one that matters most: quoting a share without its interval overstates what we measured.