# MCP Tool Reference

Source: https://www.ranked.ai/developers/mcp/tools

> Detailed reference for all MCP tools

## Read tools

## ranked_get_project_overview

List all your projects, or get detailed metrics for one project. Call this first — every other tool needs a `project_id` from it.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | No | Project UUID. Omit to list all accessible projects |

### Response includes

- Without `project_id`: every accessible project with keyword, AI prompt, and audit issue counts, plus each project's `productMode` (`managed`; legacy self-serve projects report `software`).
- With `project_id`: average position, AI visibility, audit issue counts by severity, backlink totals, and content calendar counts.

---

## ranked_get_keyword_rankings

Get keyword positions across all search channels with position changes.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max keywords to return (default: 50, max: 1000) |
| `date_range` | string | No | Comparison period: `7d`, `30d`, `60d`, `90d`, `180d`, `365d`, `all` (default: `30d`) |

### Response fields

Each keyword includes:

| Field | Description |
|-------|-------------|
| `desktopPosition` | Current Google Desktop rank |
| `mobilePosition` | Current Google Mobile rank |
| `aiModePosition` | Current Google AI Mode rank |
| `mapsPosition` | Current Google Maps rank |
| `desktopChange` | Position change for the date range |
| `mobileChange` | Position change for the date range |
| `aiModeChange` | Position change for the date range |
| `mapsChange` | Position change for the date range |
| `netChange` | Sum of all channel changes (positive = improved) |
| `location` | Target location name |

### Net change

A positive `netChange` means the keyword improved. It is the sum of position changes across all four channels for the selected date range.

---

## ranked_get_ai_visibility

Get brand visibility across 6 AI models.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max prompts to return (default: 20, max: 200) |

### Response includes

- Overall visibility percentage and average position
- Per-prompt breakdown with visibility change indicators
- Per-model mention rates and average positions
- AI search volume estimates per prompt
- Per-model status (mentioned, position, citation count) from latest analysis
- `searchesRun` per model: the web searches the model ran before answering (its query fan-out; ChatGPT reports them, checks since October 2026)

---

## ranked_generate_fanout_prompts

Query fan-out: one seed (a keyword, a topic, or a prompt the project already tracks) becomes the related questions buyers ask AI assistants around it. Candidates only; track the ones you want with `ranked_add_prompts`.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `seed` | string | Yes | The keyword, topic or tracked prompt to fan out from (3-200 characters) |
| `target_location` | string | No | Tracking location name as the project tracks it (`"Sioux City, Iowa, United States"`; a bare country = national; `"Global"` = no location). Omit to reuse the location of the project's existing prompts |
| `count` | number | No | Candidates to return (default 12, max 15) |

### Response includes

- `candidates`: up to 15 prompts, each with `intent` (`recommendation`, `comparison`, `cost`, `informational`), `estimatedMonthlyVolume` (our own estimate on the Prompts tab's scale, never a measured figure) and a one-line `why`
- `alreadyTracked`: how many of the model's ideas were dropped because the project already tracks them
- Local projects get the tracked location named in every candidate; prompts never mention the brand

---

## ranked_get_audit_summary

Get the latest audit results scoped to the most recent audit task.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max issues to return (default: 20, max: 50) |
| `severity` | string | No | Filter: `critical`, `warning`, or `notice` |

---

## ranked_get_audit_details

Get the affected URLs for a specific audit issue. Use `ranked_get_audit_summary` first to get issue IDs.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `issue_id` | string | Yes | Audit issue UUID from `ranked_get_audit_summary` |
| `limit` | number | No | Max affected items to return (default: 20, max: 50) |

---

## ranked_get_backlink_summary

Get backlink profile overview.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max referring domains (default: 20, max: 50) |

### Response includes

- Total backlinks and referring domains
- DoFollow/NoFollow breakdown
- New and lost backlinks in last 30 days
- Top referring domains

---

## ranked_get_content_calendar

Get content calendar items, exactly as the client sees them on the dashboard's Content tab: published and past articles, plus upcoming articles dated up to the project's display window (7 days by default). Articles further out appear as their date approaches. On auto-publish projects the status shown is the client's view (past dates `Published`, upcoming `Scheduled`). The response carries a `visibility` block stating the window.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max items (default: 30, max: 50) |
| `status` | string | No | Filter by status name (e.g., `Approved`, `Published`) |

---

## ranked_get_heatmaps

Get local SEO heatmaps showing how the business ranks across a geographic grid in Google Maps.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max heatmaps to return (default: 10, max: 20) |
| `heatmap_type` | string | No | Filter: `competition` or `ranking` |

---

## ranked_get_sitemap_indexing

Get sitemap URLs and their Google indexing status.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `limit` | number | No | Max URLs to return (default: 50, max: 100) |
| `indexed_status` | string | No | Filter: `submitted`, `indexed`, or `not_indexed` |

---

## ranked_get_search_console_metrics

Get Google Search Console traffic data. Requires the project to have Google Search Console connected. GSC keeps around 16 months of history, and the most recent 2-3 days can be partial while Google finalizes them.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `days` | number | No | Trailing window in days (default: 30, max: 500). Ignored when `start_date` is set |
| `start_date` | string | No | `YYYY-MM-DD` exact window start, overrides `days` |
| `end_date` | string | No | `YYYY-MM-DD` exact window end (default: today) |
| `limit` | number | No | Max top queries to return (default: 15, max: 100) |

### Response includes

- Total impressions and clicks for the window (computed from daily property totals)
- Average CTR and average position
- Top queries with per-query impressions, clicks, CTR, and position
- Daily impressions/clicks breakdown

For period comparisons ("this month vs last month"), call the tool twice with two exact windows and compare the results.

---

## ranked_get_analytics_metrics

Get Google Analytics traffic data. Requires the project to have Google Analytics connected. GA aggregates in the property's timezone, so today and yesterday can be partial.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `days` | number | No | Trailing window in days (default: 30, max: 500). Ignored when `start_date` is set |
| `start_date` | string | No | `YYYY-MM-DD` exact window start, overrides `days` |
| `end_date` | string | No | `YYYY-MM-DD` exact window end (default: today) |

### Response includes

- Sessions, users, page views, and bounce rate for the window
- Daily sessions/users breakdown
- Channel breakdown (organic, direct, referral, ...) with sessions, users, and new users

---

## Write tools

## ranked_add_keywords

Add keywords to track in Google search results. Duplicates are automatically skipped.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `keywords` | string[] | Yes | Keyword strings to track |
| `location` | string | No | Target location, e.g. `Waterbury, Connecticut, United States` (default: `United States`) |

---

## ranked_remove_keywords

Remove tracked keywords by ID. Use `ranked_get_keyword_rankings` first to get keyword IDs.

> **Warning:** This permanently deletes the keywords and their position history.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `keyword_ids` | string[] | Yes | Keyword UUIDs to remove |

---

## ranked_add_prompts

Add prompts to track brand visibility across 6 AI models. Prompts should be natural questions someone would ask an AI assistant, without mentioning the brand name.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `prompts` | string[] | Yes | Prompt questions to track |
| `target_location` | string | No | Target location (default: `Global`) |

---

## ranked_request_topic

> **Info:** This and the other content tools (`ranked_approve_content`, `ranked_request_revision`, `ranked_update_content_preferences`, `ranked_update_publishing_preferences`) only act on **managed** projects (every project you can create today); on a legacy self-serve project they explain the managed-service upgrade instead of returning "no content found".

Submit a topic request for content generation. The topic is queued for article creation.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `topic` | string | Yes | The topic or article title to request |
| `description` | string | No | Optional context or brief for the content |

---

## ranked_approve_content

Approve a content item for publishing. Sets the status to `Approved` and routes it for publishing. Use `ranked_get_content_calendar` first to get content IDs.

Only items in `Needs Approval` that are on the client's content calendar right now can be approved: the calendar shows articles dated up to the project's display window (7 days by default), and later articles appear as their date approaches. Approving further out would publish the article ahead of its slot, so it is refused with `refused: true` and a message naming the day it becomes available. Auto-publish projects have nothing to approve.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `content_id` | string | Yes | Content calendar item UUID |

---

## ranked_request_revision

Request a revision on a content item. Sets the status to `Revising`, attaches the revision notes and starts the automated revision; the client is notified when the revised version is ready.

From the connector, only items in `Needs Approval` that are on the client's content calendar right now can be revised (dated up to the display window, 7 days by default); on auto-publish projects nothing already past its date, because it is live. Anything else is refused with `refused: true` and a message to relay. Check the item with `ranked_get_content_calendar` first, and put every change for one item into a single call as a numbered list rather than one call per change.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `content_id` | string | Yes | Content calendar item UUID |
| `notes` | string | Yes | What needs to be changed (all changes for this item, numbered) |

---

## ranked_generate_report

Generate a shareable report link. On an SEO project it covers keywords, AI visibility, audits and backlinks; on a Google Ads project the campaigns, ad groups, keywords, search terms, locations, devices and the changes our team made; on a ChatGPT Ads project the same with the chat cards (and OpenAI's review status) and delivery by ChatGPT surface instead of keywords. The link is returned at once and the data is built in the background.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `date_range` | string | No | `7days`, `30days`, `90days`, or `lastMonth` |
| `title` | string | No | Custom report title |

---

## ranked_run_audit

Start a technical SEO audit that crawls the project website for issues. Results are available via `ranked_get_audit_summary` once the crawl completes.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `max_pages` | number | No | Maximum pages to crawl (default: 100, max: 500) |

---

## ranked_update_content_preferences

Update the project's content preferences (tone, style, topics, guidelines). This overwrites the existing content preferences text.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `preferences` | string | Yes | The new content preferences text |

---

## ranked_update_publishing_preferences

Update the project's publishing preferences (schedule, formatting, SEO guidelines). This overwrites the existing publishing preferences text.

### Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project UUID |
| `publishing_preferences` | string | Yes | The new publishing preferences text |
