> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finseo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics tools

> Read visibility KPIs, prompts, the actual AI answers, sources, sentiment, fan-outs and entity levels.

All tools on this page are **read-only**.

| Tool | Description |
| - | - |
| `get_visibility_metrics` | Visibility KPIs — the dashboard "Visibility" rate (named OR cited), Mention Rate, Citation Rate and the own-domain "Citations" count, with previous-period comparison |
| `get_visibility_timeseries` | Per-day visibility, mention rate, citation rate, mentions, ordinal position (`avgMentionOrder`), mention depth and sentiment (same values as the dashboard chart) |
| `list_prompts` | Tracked prompts with metrics (visible, mention rate, citation rate), top competitors and per-prompt citations (paginated via `offset`/`hasMore`) — returns the prompt `id` used by the prompt drill-down tools |
| `get_prompt_details` | Drill into one prompt: per-model metrics and the full answer history (one row per AI answer with mention, depth, sentiment and brands named) |
| `get_answer_content` | Read the actual AI answers for one prompt on one day: full answer text, brands with sentiment, and every cited source (`concise`/`detailed` format) |
| `get_top_sources` | Most cited sources with citation counts and source types |
| `get_sentiment_overview` | Sentiment & Share of Voice: uncapped SoV with explicit denominators, per-brand sentiment leaderboard with win rates and aspect scores, and the most negative LLM-judged statements |
| `get_query_fanouts` | AI query fan-outs (sub-queries) ranked by frequency |
| `get_entity_tree` | The project's entity tree (companies › sub-brands › products › ingredients), the levels available and `ownOptions` — which of your own entities can be "you" per level. Call it before using `entityLevel` |
| `get_tags` | List tags with prompt counts |

The analytics tools accept optional `model` (e.g. `chatgpt`, `perplexity`, `ai_overview`, `copilot`, `gemini`, `grok`) and `tags` filters — the same filters as the dashboard.

`get_visibility_metrics`, `get_visibility_timeseries`, `get_competitor_ranking` and `get_sentiment_overview` also accept `entityLevel` and `ownEntity` (see [Entity levels](#entity-levels)).

### Visibility, Mention Rate and Citation Rate

A brand is **visible** in an AI answer when it is named in the answer text *or* one of its domains is cited as a source. The tools report all three rates with the same denominator (all analyzed answers), so they can be compared directly (see [KPIs explained](https://docs.finseo.ai/getting-started/kpis.md)):

* `visibilityRatePercent` — named **or** cited (the dashboard "Visibility" KPI)
* `mentionRatePercent` — named in the answer text
* `citationRatePercent` — own domain (or a configured domain alias) cited as a source

One answer can count in both Mention Rate and Citation Rate, so Visibility ≤ Mention Rate + Citation Rate. Example: *"Visibility 50%, Mention Rate 45%, Citation Rate 20%"* means 15% of answers name and cite the brand, 30% only name it and 5% only link to it.

### Position vs. mention depth

Tools report two distinct metrics (see [KPIs explained](https://docs.finseo.ai/getting-started/kpis.md)):

* `avgMentionOrder` — the ordinal **Position** KPI: average rank among all brands named in an answer (1 = named first, lower is better; e.g. `2.3` = typically the 2nd–3rd brand mentioned). This matches the `#2.3`-style Position column on the dashboard competitors page.
* `mentionDepthPercent` — **Mention Depth**: how deep in the answer *text* the mention appears (0% = very top, lower is better). Not a ranking position.

### Timeframes

Every analytics tool defaults to a relative window (`timeframeDays`, default 30, ending yesterday). For an exact period, pass an absolute range instead:

* `startDate` + `endDate` (both `YYYY-MM-DD`, always together) — overrides `timeframeDays`.
* Supported on `get_visibility_metrics`, `get_visibility_timeseries` (max 90 days), `get_competitor_ranking`, `get_top_sources`, `get_query_fanouts`, `get_competitor_gap_analysis`, `get_competitor_h2h` and `get_sentiment_overview`.
* `get_visibility_metrics` compares the custom range against the same number of days immediately before it.
* `list_prompts` only supports relative windows.

Example: *"Compare my visibility for July 1–31 against the previous month"* → the assistant calls `get_visibility_metrics` with `startDate: "2026-07-01"`, `endDate: "2026-07-31"`.

### Entity levels

Projects with the entity tree switched on group every mention by entity: companies, sub-brands (brand lines, subsidiaries), products and ingredients. `entityLevel` picks the level a tool evaluates on:

* `company` (default) — every row is a company; sub-brands, products and ingredients count for their company. "You" is your company.
* `sub_brands` — brand lines and subsidiaries as rows of their own, with their products.
* `products` — product brands; ingredients count for their product. "You" is your main product (the one with the most answers), or the one you pass as `ownEntity`.
* `ingredients` — active substances and materials.

Counting never changes between levels: an answer naming a company and two of its products counts once for the company on `company` and once per product on `products`. Call `get_entity_tree` first — it returns the levels the project has and `ownOptions` (the ids you can pass as `ownEntity`). Projects without a live tree ignore both arguments and report the company grouping.

Example: *"How visible is Lorbrena compared to Alecensa?"* → `get_entity_tree`, then `get_competitor_ranking` with `entityLevel: "products"`, `ownEntity: <Lorbrena id>`.

### Drill-down workflow

Go from overview to detail — the tools chain from broad to a single AI answer:

* **Competitor track:** `get_visibility_metrics` for the big picture → `get_competitor_ranking` to find the competitors that matter (each row carries an `id`) → `get_competitor_gap_analysis` / `get_competitor_h2h` with that `competitorId` for the prompt-level "where do we lose and why".
* **Prompt track:** `list_prompts` to find the prompts that matter (each row carries an `id`) → `get_prompt_details` with that `promptId` for the per-answer history and available dates → `get_answer_content` with `promptId` + `date` to read the exact AI answer, the brands it names and the sources it cites.
* **Sentiment track:** `get_sentiment_overview` for Share of Voice, the sentiment leaderboard and the most negative statements about any brand.
* **Tasks track:** `list_tasks` for the prioritized optimization backlog (each row carries an `id`) → `get_task_details` with that `taskId` for the full action plan and the evidence behind it.

### Metric definitions

The tools return the same numbers as the Finseo dashboard and label them explicitly:

* **`visibilityRatePercent`** — share of analyzed AI answers where your brand is visible: named in the answer text OR your own domain cited as a source (the dashboard "Visibility" KPI)
* **`mentionRatePercent`** — share of answers naming your brand in the text (the dashboard "Mention Rate" KPI)
* **`citationRatePercent`** — share of answers citing your own domain or a domain alias as a source (the dashboard "Citation Rate" KPI)
* **`promptCoveragePercent`** — share of tracked prompts with at least one visible answer (a different, usually higher number)
* **`brandMentions`** / **`ownDomainCitedAnswers`** — the absolute counts behind Mention Rate and Citation Rate
* **`ownDomainCitations.total`** — AI answers citing your own domain as a source (the dashboard "Citations" KPI)
* **`visibilityIsMentionOnly`** (competitor ranking) — `true` when the citation leg could not be resolved for that brand and `visibilityRatePercent` equals the mention-based rate


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.