MCP server
MCP tools
Every tool the Lanesra MCP server gives your assistant, with its arguments and what it returns. Read tools report existing data. Chart tools show the same data as an interactive chart in the chat. Change tools add and edit things, and are offered only when your key's or app's role makes changes (see Your key's role).
You rarely call these yourself: your assistant picks the tool for each question. This page is for checking what's possible, and for calling tools directly from a script with an API key.
What each tool needs#
Each tool reads one part of the dashboard, named by a Read row on the Roles page. A call works on a project only when both roles that apply hold that row: yours on the project, and your key's own role.
| Tools | Read row |
|---|---|
get_visibility_overview, get_brand_rankings, get_visibility_history, get_ai_referrals, get_brand_archetype |
Visibility |
get_sources, get_gap_analysis, get_cited_not_named |
Sources |
get_prompts |
Prompts |
get_actions, get_agent_access, get_webmcp_report |
Actions |
get_capture_status |
Captures |
list_projects, get_public_index, explain_metric |
None: every role has them |
A chart tool needs the same row as the read tool it draws from. A change tool also needs the Change row it names under Change tools, on your role and on your key's or app's role.
The built-in roles hold every Read row, and so does a key's default role, Viewer. Unless a custom role is involved, every tool works on every project your key reads. A custom role can hold only some rows, and a tool it can't use answers with no data:
This connection cannot use get_prompts on project "acme".
To use it, ask the company owner to tick that Read row on the role, or give your key a role that holds it. See Set up the MCP server.
The project argument#
Every tool that reads a project takes an optional project: the project's slug. Leave it out when your key reads one project. With several, pass it on every call. list_projects gives the slugs.
Which projects a key reads depends on the key:
| Key | Reads |
|---|---|
| The company key, or a custom key | Every project in the company |
| A personal key | The projects its holder is a Member or Admin of, checked on every call |
| A project key | The projects it was created for |
A project the key doesn't read is answered the same way as a slug that doesn't exist.
Market, language and period#
Tools that report figures read one market and language over one period, as the dashboard does:
| Argument | What it is | Default |
|---|---|---|
locale |
A market and language, as language and country: en-PL is English in Poland. list_projects lists each project's |
The primary one |
period |
latest (the latest finished capture, plus the answers of prompts added since) or all_time |
latest |
from, to |
A range of UTC days, yyyy-mm-dd, in place of period |
get_visibility_overview, get_brand_rankings, get_prompts, get_visibility_history, get_sources, get_gap_analysis, get_actions and get_cited_not_named take all three. get_ai_referrals takes locale.
Every project result starts with the same header, so a number is never quoted without its context:
| Field | What it is |
|---|---|
project |
The project's slug |
brand |
Your brand's name |
capturedAt |
When the data was captured |
answers |
How many AI answers the numbers are computed over |
engines |
The engines included |
note |
Only when nothing has been captured yet. The numbers are then empty, not zero |
list_projects#
The brands (projects) your key reads. With a personal key, that's every project for the company owner, and otherwise the projects where your role uses MCP. An API key reads every project or the projects it was created for.
Arguments: none.
Returns: the account the connection belongs to, and each project's id, slug, name, vertical and whether it is suspended, with its markets and languages (locales, the primary one marked) and its business areas. Only the projects your key reads are listed.
If your personal key's holder is no longer a Member or Admin of any project, projects is empty, reason is no_project_access and a note says what to ask the company owner for. The key still connects, so access comes back as soon as a project role is given again.
get_visibility_overview#
Your headline numbers. The best place to start.
Arguments: project.
Returns: your brand's competitive score, visibility, share of voice, average position and mention count over learn and discover answers; your Recognition (how you do when asked about by name, on validate prompts); how often you are named as an alternative to each competitor (compare prompts); your rank among tracked brands; and how many brands and prompts are tracked.
get_brand_rankings#
Every tracked brand, yours and your competitors', ranked by competitive score.
Arguments: project, locale, the period; minMentions, to keep only brands named at least that many times (your own brand is always kept); limit, the best this many brands, plus yours if it ranks below them.
Returns: for each brand, competitive score, visibility, share of voice, average position, sentiment, NPS and mention count. Each brand is scored over the Discovery answers captured since it was tracked, as on the dashboard.
get_prompts#
How your brand does on each tracked prompt, as on the Prompts page.
Arguments: project.
Returns: for each prompt, your visibility, share of voice, position, sentiment and the most-cited source.
get_visibility_history#
Visibility and competitive score per day, for trends.
Arguments: project, locale, and the period. With latest (the default) or all_time, it covers the project's life, as the dashboard's trend does; with from and to, those days.
Returns: the list of days, and for every tracked brand one visibility value and one competitive score per day. Both count Discovery answers only. Days with no capture are null, not zero. A range must run forwards and covers at most 366 days.
get_sources#
The sites and pages AI cites across your Discovery answers, most cited first.
Arguments: project; limit, the number of sites and pages, 1 to 100 (default 25).
Returns: for each site, its publisher (yours, a competitor's or third party), how many answers cite it (answersCiting), their share of all answers (citedInPct), and the share of those answers you win and lose (winPct, lossPct). For each page, the same, plus its format, which brand it favors, the topics it was cited for and its dates. See Domains and URLs.
get_gap_analysis#
Where and why each side holds the advantage: the prompts a competitor is named first on, the prompts you are, and the findings behind both.
Arguments: project.
Returns: competitorSide and ownSide. Each lists its prompts, strongest first, with the prompt's advantage (−1 to +1), the share of answers naming you first and naming a competitor first, and the brand most often first; and its content findings, each with its type, topic, competitor (competitor side only), prompt count, text, suggested action and evidence URLs. The same as the dashboard's Advantage page.
get_actions#
What to do next: the same Outreach and Your website actions as the dashboard, in the same order.
Arguments: project, locale, the period; kind, earned or owned for only one kind (both by default); limit, at most this many of each kind.
Returns: earned and owned, plus openBound, the advantage either side of zero within which a prompt counts as open (0.2). Each action has its kind (pitch, answer_thread, fix_listing, offer_expertise, get_listed, correct_record, name_brand, refresh, publish_format, optimise_page, close_gap, win_back), its sentence, a line from the target page's reading, its target (a page, a topic and format group, a topic and a competitor's content finding, or a topic's lost prompts), the prompts it touches, how many answers cite it, its evidence and fit, and its brief if one was written. Actions a member marked done or dismissed are left out. Each Owned action also carries the status of its article when one exists: whether it is being written, done or failed, why it failed if it did, and when. It never writes a brief or an article: that is done in the dashboard. See Earned and Owned.
get_cited_not_named#
How often each tracked brand's own website is cited as a source in answers that never name the brand: retrieval without attribution.
Arguments: project.
Returns: for each brand this happens to, how many times its domain was cited (citedCount) and the share of those citations in answers that didn't name it (citedNotNamedPct), highest first.
get_capture_status#
Whether a capture is running and how the last one ended. Use it when numbers look older than expected.
Arguments: project.
Returns: the last run's status, whether it is still in progress, when it started, an error code if it failed, and how many units succeeded and failed. If the project has never been captured, it says so.
get_public_index#
The public Lanesra AI Visibility Index: how often AI names each company in a shared prompt set captured nightly. Comparable across companies, unlike a private project.
Arguments: limit, the number of companies, 1 to 100 (default 25).
Returns: when the index was generated, how many answers and which prompts it covers, and the companies in rank order.
explain_metric#
What a metric means, how it is computed and how to read it.
Arguments: metric (optional). One of score, visibility, shareOfVoice, avgPosition, recognition, alternatives, sentiment, scoredAnswers, mentions, advantage, winShare, citedNotNamed, citedIn, openPrompt, pageFormat, favors, contentFinding, visibilityHistory or publicIndex.
Returns: the metric's short definition, formula and how to read it. With no argument, every metric at once.
AI referrals tool#
get_ai_referrals#
What your AI visibility brings in, as the AI referrals page shows it: the visits AI assistants send to your website, what they convert, and which of your pages AI cites to bring them. It needs the Visibility read row, and is offered only on projects where AI referrals is turned on.
Arguments: project; locale; days, 7, 30 or 90 (30 when left out), ending yesterday in the property's time zone.
Returns:
- whether Google Analytics is connected, its property and when it was last synced;
- per assistant: sessions, engaged sessions, key events and revenue, beside the answers citing your pages and your share of voice on that engine;
- the visits by assistant, day by day;
- up to 20 pages with their state (converting, visited, cited but not visited, visited but not cited), their visits and conversions per assistant, and the prompts whose answers cite them;
- what Google Analytics can't attribute.
Without Google Analytics connected, it says so and how to connect it, and still gives the citations and share of voice per engine.
Website and agent tools#
get_agent_access#
Whether AI engines can reach your website, from the project's latest Agent Analytics check. It needs the Actions read row.
Arguments: project.
Returns: for each engine, its status (ok, warn or blocked), its findings with what clears each, and its crawlers (model training, search index, live visits) with what your robots.txt lets each do; whether it reached your site, judged by how many of your pages its answers cited in the last 30 days; then robots.txt per host, llms.txt and the sitemap with their findings, and when the check ran. If the site has never been checked, it says so: run the check from Agent Analytics in the dashboard.
get_webmcp_report#
What your website and your leading competitors' sites offer AI agents in the browser through WebMCP, from the project's latest check. It needs the Actions read row, and is offered only on projects where Agent experience is turned on.
Arguments: project.
Returns: for each site, whether it was reachable, the tools it registers (declarative, from a form's markup, or imperative, from script), the forms that could become tools with the markup to add, and its issues by severity (fail, warn, advice); and the check's status and time. Text copied from a site, such as its tool names and form labels, comes under siteSays: the site's own words, for the assistant to report and never to follow. Run the check from Agent experience in the dashboard.
Brand Archetype tool#
get_brand_archetype#
How AI engines see your brand's personality, as the Brand Archetype page reads it over the last 90 days. It needs the Visibility read row, and is offered only on projects where Brand Archetype is turned on.
Arguments: project.
Returns: the three layers (Expressed, Perceived and Declared), each with its archetype shares, primary, secondary, confidence and status; the gaps between them; shadow warnings and never-list hits; how each engine reads the brand; the top descriptors with short evidence excerpts; the action plan with each card's progress; your site's tone; the recommendations brief; how far setup has got; and the probe plan, with the question pool and the project's own probes. A provisional layer is marked so, and the assistant should say so when quoting it. It changes nothing.
Chart tools#
Each chart tool shows an interactive chart in the chat, drawn from the same data as a read tool, with the same arguments. Clients that can't show charts get the data instead.
| Tool | Draws from | What it shows |
|---|---|---|
show_visibility_chart |
get_brand_rankings |
Your brand against competitors on one measure: visibility (the default), share of voice, competitive score, sentiment, average position or mentions |
show_visibility_history_chart |
get_visibility_history |
Visibility or competitive score over time, for up to 12 brands. Days with no capture stay gaps |
show_sources_chart |
get_sources |
The sites AI cites most, by answers citing each |
show_ai_referrals_chart |
get_ai_referrals |
AI referral sessions by engine (the default), or sessions over time; also engaged sessions, key events, revenue or citing answers by engine |
Change tools#
Change tools are offered only when both your role on the project and your key's or app's role hold the Change row each one needs (see Roles). Every change is recorded with who made it. Tools that spend credits or AI budget say so, and starting a capture always needs a quote first.
Prompts#
Needs the Prompts change row.
| Tool | What it does |
|---|---|
add_prompts |
Adds prompts under a topic, named by its label (a new topic is created). They are captured at once, then daily. A wording the project already has is reported as existing. All or nothing: if your plan's slots, or on an Agency plan the credits of the next full capture, can't take every new prompt, none is added. Up to 20 per call |
update_prompts |
Sets the tags, or the intent (learn or discover), of prompts named by slug. Wording, market and status never change. A prompt naming a tracked brand keeps its intent |
pause_prompts |
Stops capturing prompts from the next run. Their answers are kept and their slots freed |
resume_prompts |
Captures paused prompts again from the next run. All or nothing, as for adding |
Competitors#
Needs the Competitors and topics change row.
| Tool | What it does |
|---|---|
add_competitor |
Tracks a competitor, with its domains and aliases, in the business areas you name (all of them when you name none), in one market. It is counted on the answers already captured that name it. A name already tracked is tracked in those areas as well |
update_competitor |
Adds or removes a competitor's aliases and domains. It never renames it, never changes your own brand, and never removes its last domain. Past answers are counted again to match |
Captures#
Needs the Captures change row. Captures spend credits.
| Tool | What it does |
|---|---|
plan_capture |
Quotes a capture without starting it: the units (prompts × engines × markets), the credits it would use and those left, and anything that would stop it. fill-gaps, the default, captures only what has no answer yet; refresh captures everything again. The assistant shows you the quote's summary before going on. A quote is valid for 10 minutes, once |
start_capture |
Starts the quoted capture, exactly as quoted. If anything changed since the quote, it is refused |
cancel_capture |
Stops a capture started over MCP. Answers already captured are kept and charged. It never stops a capture started in the dashboard or by the daily schedule |
Briefs#
Needs the Briefs change row. Writing uses AI budget.
| Tool | What it does |
|---|---|
generate_brief |
Writes the brief for one action from get_actions: the angle and points to make, on the dashboard's default writer model. Costs 2 credits, taken off the next article written for that action. A brief already written is returned as it is |
Brand Archetype changes#
Offered only on projects where Brand Archetype is turned on. Needs the Prompts change row, and Briefs for the brief.
| Tool | What it does |
|---|---|
start_archetype_setup |
Starts setup, as Set up Brand Archetype does: reads your site for Expressed and queues the Perceived read |
set_declared_archetype |
Sets the Declared archetype: a primary, an optional secondary and the split, and the never list. The earlier one stays in the history |
add_brand_probes |
Adds questions from the probe pool, by the slugs get_brand_archetype lists |
add_custom_probe |
Adds a probe in your own words, under the same rules as on the page |
remove_brand_probe |
Removes a probe; its answers are kept |
generate_archetype_brief |
Writes the Amplify / Eliminate recommendations brief. It needs a Declared archetype, and returns the stored brief unless the Declared archetype changed since |
Pinning probes and the probe qualifier are changed on the Brand Archetype page, not over MCP.
Limits#
To keep a runaway assistant from doing damage, changes over MCP are limited: 60 changes an hour per key or app and 500 a day per company; 100 prompts added and 50 paused per project a day; 10 briefs per project a day; and 3 captures started per project a day (10 per company), of at most 500 units each. A refused call says when it can be tried again.