Home / Websites, groups and SEO audits with MCP

Websites, groups and SEO audits with MCP

Websites, groups and SEO audits with MCP. Parameters, short request examples and result checks in Labrika.

On this page

Sites

Tool reference (4)

Start with a short request. Replace example.com with your domain. The assistant will ask for missing details; you do not need to type tool names or identifiers into the chat.

Your client can call the tools authorized for its connection. For a list with has_more set to true, pass the returned next_cursor as cursor with the same filters.

labrika_site_create

Example requests

Add example.com without running an analysis.

Create a project for AI Visibility.

Add a site without starting a report. If site_in_connection is false, follow next_step to add it to the connection.

sites:create

Required parameters
site, operation_key
Before use

labrika_project_find_by_domain → site.host + site.report_type

How to check the result

site_uuid; site_in_connection → next_step

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

site.host; site.report_type=site_audit / keyword_rankings_refresh / ai_visibility; site.title; site.keywords; site.search_engines; site.pages_limit

labrika_site_create_prepare

Example requests

How much is adding example.com with an audit?

Prepare a new project with a rankings check.

Quote adding a site and running its first report. Check the domain for existing projects before approval.

For a paid action, review the quote and select Confirm and start in Labrika. Then ask the chat for its status.

sites:create

Required parameters
site, operation_key
Optional parameters
payment_option
Before use

labrika_project_find_by_domain → site.host + site.report_type

How to check the result

Preparing a quote does not start the job. Review the amount, currency and selected settings using the Labrika link. Confirm the launch on that page, then check action_id with labrika_action_get.

labrika_action_get → site_uuid

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

site.host; site.report_type=site_audit / keyword_rankings_refresh; site.keywords; site.search_engines; site.pages_limit; payment_option=auto / subscription_quota / money_balance

labrika_inactive_sites_list

Example requests

Show my inactive sites.

Is example.com among my inactive sites?

List your inactive sites. Use the chosen site's project_xid to reactivate it.

sites:activate

Optional parameters
limit, cursor
Before use

labrika_connection_info → sites:activate

How to check the result

If has_more=true, continue with next_cursor as cursor and unchanged filters, even if the current page is empty. An empty first page does not prove that no data exists.

project_xid → labrika_site_activate

labrika_site_activate

Example requests

Prepare activation of example.com.

I want to reactivate this site.

Prepare site reactivation and open the approval link. Use selection_url after activation if the site needs to be added to the connection.

sites:activate

Required parameters
project_xid, operation_key
Before use

labrika_inactive_sites_list → project_xid

How to check the result

labrika_action_get; selection_url

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

Back to contents

Read project groups

Tool reference (7)

Start with a short request. Replace example.com with your domain. The assistant will ask for missing details; you do not need to type tool names or identifiers into the chat.

Your client can call the tools authorized for its connection. For a list with has_more set to true, pass the returned next_cursor as cursor with the same filters.

labrika_project_groups_list

Example requests

Show my project groups.

Do I have a “Stores” group?

List the project groups of the account.

project-groups:read

Optional parameters
limit, cursor
Before use

labrika_connection_info → project-groups:read

How to check the result

If has_more=true, continue with next_cursor as cursor and unchanged filters, even if the current page is empty. An empty first page does not prove that no data exists.

group_id → labrika_project_group_sites_list

labrika_project_group_sites_list

Example requests

Which sites are in the “Stores” group?

Which group sites have not been checked recently?

List the sites in a project group.

project-groups:read

Required parameters
group_id
Optional parameters
limit, cursor, report_type, last_run_after, last_run_before

Use RFC 3339 dates with a time zone. last_run_after includes its boundary. last_run_before excludes its boundary and includes never-run sites when there is no lower bound. report_type defaults to site_audit and also accepts keyword_rankings_refresh. Pass next_cursor with the same filters for the next page.

Before use

labrika_project_groups_list → group_id

How to check the result

If has_more=true, continue with next_cursor as cursor and unchanged filters, even if the current page is empty. An empty first page does not prove that no data exists.

site_uuid

labrika_project_group_create

Example requests

Create a “Stores” group.

Add a “Client sites” group.

Create a project group.

project-groups:write

Required parameters
title
Before use

title → labrika_project_group_create

How to check the result

labrika_project_groups_list

labrika_project_group_move_site

Example requests

Move example.com to the “Stores” group.

Remove example.com from its group.

Move a site to a group. An empty group ID removes the site from its group.

project-groups:write

Required parameters
site_uuid
Optional parameters
group_id
Before use

labrika_project_groups_list → group_id; labrika_report_sites_list → site_uuid

How to check the result

labrika_project_group_sites_list

labrika_group_site_audit_prepare

Example requests

How much does auditing the “Stores” group cost?

Prepare audits for the selected group.

Calculate the total and per-site cost of a group launch.

For a paid action, review the quote and select Confirm and start in Labrika. Then ask the chat for its status.

site-audits:run, project-groups:read

Required parameters
group_id, operation_key
Before use

labrika_project_groups_list → group_id

How to check the result

Preparing a quote does not start the job. Review the amount, currency and selected settings using the Labrika link. Confirm the launch on that page, then check action_id with labrika_action_get.

labrika_action_get → labrika_site_audit_progress_get

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

labrika_group_rankings_refresh_prepare

Example requests

How much does refreshing the group's rankings cost?

Prepare a rankings refresh for the “Stores” group.

Calculate the total and per-site cost of a group launch.

For a paid action, review the quote and select Confirm and start in Labrika. Then ask the chat for its status.

serp:run, project-groups:read

Required parameters
group_id, operation_key
Before use

labrika_project_groups_list → group_id

How to check the result

Preparing a quote does not start the job. Review the amount, currency and selected settings using the Labrika link. Confirm the launch on that page, then check action_id with labrika_action_get.

labrika_action_get → labrika_keyword_rankings_progress_get

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

labrika_group_positions_download

Example requests

Download rankings for the “Stores” group.

Export the group's site rankings as a ZIP.

Download a ZIP with a CSV of the latest rankings for each site in the group.

project-groups:read, serp:read

Required parameters
group_id
Before use

labrika_project_groups_list → group_id

How to check the result

ZIP → CSV

Back to contents

Main report

Tool reference (8)

Start with a short request. Replace example.com with your domain. The assistant will ask for missing details; you do not need to type tool names or identifiers into the chat.

Your client can call the tools authorized for its connection. For a list with has_more set to true, pass the returned next_cursor as cursor with the same filters.

labrika_site_audit_prepare

Example requests

How much is a 500-page audit of example.com?

Prepare a full audit of example.com.

Ask how many pages to audit. Omit pages_limit to use the saved setting. Show the cost in limits and money, ask the user to select a payment option and approve the selected quote in Labrika.

For a paid action, review the quote and select Confirm and start in Labrika. Then ask the chat for its status.

site-audits:run

Required parameters
site_uuid, operation_key
Optional parameters
payment_option, pages_limit
Before use

labrika_report_sites_list → site_uuid

How to check the result

Preparing a quote does not start the job. Review the amount, currency and selected settings using the Labrika link. Confirm the launch on that page, then check action_id with labrika_action_get.

labrika_action_get → labrika_site_audit_progress_get

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

labrika_site_audit_progress_get

Example requests

How is the example.com audit progressing?

How many pages have been checked?

Check the progress of the latest full site audit.

main-reports:read

Required parameters
site_uuid
Before use

labrika_report_sites_list → site_uuid

How to check the result

Check the existing job using its identifier. A pending or intermediate status is not a finished report; read any error before attempting another launch.

labrika_mainreport_dates_list → labrika_mainreport_metrics_get

labrika_monthly_positions_download

Example requests

Download example.com's monthly rankings report.

Is the monthly rankings file ready?

Download the chart-based monthly positions report. Start with operation_key, dates (YYYY-MM-DD). Then check with the returned export_id and open download_url when ready. Use dates from saved keyword rankings. If available, use labrika_serp_dates_list to find them.

site-reports:download

Required parameters
site_uuid
Optional parameters
dates, format, operation_key, export_id
Before use

labrika_serp_sites_list → site_uuid + search_engine_id; labrika_serp_dates_list → dates

How to check the result

Do not create a new export on each poll. Keep export_id, observe retry_after_seconds if returned, and open download_url only when the file is ready.

export_id → labrika_monthly_positions_download → download_url

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

labrika_html_markup_download

Example requests

Download HTML errors for example.com.

Is the markup errors export ready?

Download the report on HTML markup errors. Start with operation_key. Then check with the returned export_id and open download_url when ready.

site-reports:download

Required parameters
site_uuid
Optional parameters
operation_key, export_id
Before use

labrika_report_sites_list → site_uuid

How to check the result

Do not create a new export on each poll. Keep export_id, observe retry_after_seconds if returned, and open download_url only when the file is ready.

export_id → labrika_html_markup_download → download_url

Reuse operation_key when resending the same action. A new action or changed parameters needs a new key. Do not create another job just to check its status.

labrika_html_markup_report_get

Example requests

Show important HTML errors for example.com.

How many other markup errors were found?

Read one HTML markup report in JSON. Select strong for important errors and details or other for other error counts. A page has up to 500 rows.

site-reports:download

Required parameters
site_uuid, severity
Optional parameters
limit, cursor
Before use

labrika_report_sites_list → site_uuid

How to check the result

If has_more=true, continue with next_cursor as cursor and unchanged filters, even if the current page is empty. An empty first page does not prove that no data exists.

severity=strong / severity=other

labrika_mainreport_download

Example requests

Download the example.com audit ZIP.

Is the audit archive ready?

Get the latest full audit ZIP. While it is being prepared, wait retry_after_seconds and poll with the same export_id. Open the attachment or fetch the single-use download_url. Each transfer counts once toward both daily download limits.

main-reports:export

Required parameters
site_uuid
Optional parameters
export_id
Before use

labrika_report_sites_list → site_uuid

How to check the result

Do not create a new export on each poll. Keep export_id, observe retry_after_seconds if returned, and open download_url only when the file is ready.

export_id → labrika_mainreport_download → download_url

labrika_mainreport_dates_list

Example requests

When was example.com audited?

Show the latest audit dates.

List available main report dates for this project, newest first.

main-reports:read

Required parameters
site_uuid
Optional parameters
limit, cursor
Before use

labrika_report_sites_list → site_uuid

How to check the result

If has_more=true, continue with next_cursor as cursor and unchanged filters, even if the current page is empty. An empty first page does not prove that no data exists.

date → labrika_mainreport_metrics_get

labrika_mainreport_metrics_get

Example requests

Show the latest summary report for example.com.

Compare the last two audits.

Use date for one snapshot, or from and to for an inclusive range. Each metric array follows the dates array. A null value means the measurement is unavailable.

main-reports:read

Required parameters
site_uuid
Optional parameters
date, from, to, limit, cursor

Set date for a single day or both from and to for an inclusive range. For a range, each metric’s values are in the same order as dates.

Before use

labrika_report_sites_list → site_uuid; labrika_mainreport_dates_list → date / from + to

How to check the result

If has_more=true, continue with next_cursor as cursor and unchanged filters, even if the current page is empty. An empty first page does not prove that no data exists.

date / from + to; dates; null ≠ 0

Back to contents