Leadee

v0.2.0
io.github.netbasecorp/leadee-mcp Checked 4 days ago Published 20 days ago

Leadee.ai SEO and AI visibility: audits, rank and AI answer tracking, fixes, reports, publishing.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

free_scan

Run a free, unauthenticated AI-visibility scan of a URL (no Leadee API key needed). Rate-limited to 5/hour per caller IP and cached 24h per domain by the API. Returns a GEO/Agent-Ready-Store score report. Use this for a quick public preview before recommending the full Audit API.

ParameterTypeDescription
url *string

index_check

Job ldee-ixp3b: run the free, unauthenticated Index Checker on a URL (same result shape as the public /tools/index-checker page, docs/specs/index-push.md): whether the page can be indexed (HTTP status, redirect, noindex, robots.txt, canonical, sitemap + lastmod, IndexNow key), whether the 4 named AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended) are allowed to read it, and a Google index estimate/verdict. 404s with feature_disabled if the deployment has not turned this on (LEADEE_INDEX_CHECKER_PUBLIC) — a separate flag from index_push_summary/index_push_submit's LEADEE_INDEX_PU…

ParameterTypeDescription
url *string

check_entity

Run the free, unauthenticated entity/organization-schema check on a URL (spec tools/entity-check.md): Organization/Brand/Product/WebSite presence, sameAs profile liveness (alive/redirected/missing/unchecked), a Wikidata P856 match, cross-page name/phone/address/email consistency, and a paste-ready generated JSON-LD block with '[NEEDS INPUT: ...]' markers for anything not actually found on the page. 'org_type' selects an industry preset (e.g. 'healthcare', 'local_services', 'manufacturing') for the generated schema type and suggested sameAs profiles — omit for the generic Organization preset.…

ParameterTypeDescription
url *string
org_type
project

score_content

Free, unauthenticated passage-level citability check (spec tools/content-score.md): either 'url' (fetches the page) or 'text' (pastes a draft, no network request) + optional 'title'. Scores every passage (not just the weakest) on the four Princeton GEO tactics (answer-first, statistic, quotation, cited source), with the public weights/bands and a non-LLM rewrite pattern per passage that never invents a number ('[NEEDS INPUT: ...]' instead). 'target_question' adds 'best_passage'/'coverage' — which passage best covers a buyer question, by lexical overlap. This is a free, unauthenticated, no-wo…

ParameterTypeDescription
project
target_question
text
title
url

estimate_plan

Free, unauthenticated AI-visibility price/prompt calculator (spec tools/price-calculator.md): either give 'topics' + 'questions_per_stage' (the planning formula: topics x 3 buying stages x questions-per-stage x countries x languages-per-country) or a manual 'prompts' count. Returns the resulting prompt count, AI answers/month, each known engine's 'live'/'coming_soon' status (never hardcoded — read from real configuration), a per-plan fit table ('ok'/'warn'/'fail' per requirement) and the cheapest plan that fits at its published list price — never Leadee's own API cost per run. Use this whe…

ParameterTypeDescription
countries
engines
frequencystring
languages_per_countryinteger
project
prompts
questions_per_stage
topics

validate_schema

Job ldee-ttmcp: free schema markup validator (same engine and quotas as /tools/schema-markup-validator, traffic-tools.md §3). Give exactly one of 'url' (reads the page HTML, no JavaScript) or 'code' (pasted HTML or JSON-LD, max 200 KB, no network request). Checks JSON-LD, Microdata and RDFa Lite against the schema.org vocabulary and Google rich result rules. Read-only: returns 'fix_plan' (proposed fixes, applied=false) for a human to review, plus the full report/1 'report'. Never changes the site.

ParameterTypeDescription
code
url

generate_llms_txt

Job ldee-ttmcp: free llms.txt generator (same engine and quotas as /tools/llms-txt-generator, traffic-tools.md §5): reads robots.txt, the sitemap and up to 'max_pages' pages (1-200; at most 50 without an API key) and drafts an llms.txt (+ llms-full.txt when 'full' is true), then validates the draft. Optional 'site_name' (max 200 chars) and 'summary' (max 300 chars). The file is in 'output'; nothing is uploaded or published. Returns 'fix_plan' (applied=false) for a human to review. status='refused' when the site's robots.txt blocks LeadeeBot.

ParameterTypeDescription
url *string
fullboolean
include_optionalboolean
max_pages
site_name
summary

check_ai_readiness

Job ldee-ttmcp: free AI visibility checker (same engine and quotas as /tools/ai-visibility-checker, traffic-tools.md §6): scores how ready a site is for AI engines on six pillars (access, render, discovery, schema, entity, content) from its own pages. It does not ask any AI engine. Optional 'industry' (max 100 chars). Read-only: returns 'fix_plan' (applied=false) for a human to review, plus the full report/1 'report'. Never changes the site.

ParameterTypeDescription
url *string
industry

create_audit

Start a full AI Visibility Audit (M1) for a URL: bot-AI accessibility, SSR, schema, passage-level citability, sitemap, llms.txt. Runs async — returns an audit id with status 'queued'; poll get_audit until status is 'done', then call get_audit_report for the customer-facing Markdown summary. 'packs' is an optional list of vertical packs to layer on top of the core GEO score, e.g. ['print'].

ParameterTypeDescription
url *string
packs

get_audit

Fetch an audit's current status and, once status is 'done', its full JSON report (schema_version 'leadee-audit/1').

ParameterTypeDescription
audit_id *string

get_audit_report

Fetch the short (<=350 word) customer-facing Markdown summary for a finished audit. Fails with audit_not_ready if the audit hasn't finished running yet.

ParameterTypeDescription
audit_id *string

list_brands

List every brand tracked by this tenant (name, domain, aliases, competitors, country, language).

create_brand

Register a new brand to track. 'aliases' are alternate names/spellings used for mention matching in the Visibility Tracker; 'competitors' are brand names compared against for share-of-voice.

ParameterTypeDescription
country *string
domain *string
language *string
name *string
aliases
competitors

list_prompt_sets

List every prompt set (named group of prompts run against AI engines) for this tenant, each with its brand id and prompts.

create_prompt_set

Create a named prompt set under a brand, optionally seeded with prompt texts to run through the Visibility Tracker.

ParameterTypeDescription
name *string
brand_id
project
prompts

suggest_prompts

Prompt Discovery (M3): generate candidate prompts for a prompt set from one of 4 sources — 'keywords' (use the keywords list), 'url' (crawl the brand's own site), 'brand' (brand name + its registered competitors), or 'gsc_csv' (paste a Google Search Console query export). Candidates are tagged with intent/funnel stage and scored, but NOT saved as prompts — review them, then call accept_prompt_suggestions with the texts you want to keep.

ParameterTypeDescription
prompt_set_id *string
source *string
capinteger
country
gsc_csv
keywords
language
url

accept_prompt_suggestions

Save a list of prompt texts (typically from suggest_prompts) as real prompts on a prompt set, counted against the tenant's plan prompt limit.

ParameterTypeDescription
prompt_set_id *string
texts *array

start_tracker_run

Start a Visibility Tracker run (M2): runs every prompt in prompt_set_id against each named engine (e.g. 'openai_web_search', 'gemini_grounding', 'perplexity', 'anthropic_web_search', 'dataforseo_ai_mode') for each country, n times each (default 3, for the Wilson confidence interval). Runs async — returns a job id and the billing period it was scheduled under.

ParameterTypeDescription
countries *array
engines *array
prompt_set_id *string
ninteger
period

get_visibility_metrics

Get Visibility Tracker metrics for a brand: mention rate and citation rate (both with a Wilson 95% confidence interval), average position, share of voice and sentiment, one row per (prompt, engine, country, period). Filter by period/engine/country.

ParameterTypeDescription
brand_id
country
engine
period
project

get_answers

Get the raw stored AI-engine answers (text + citations) for a single prompt, across every run so far — the evidence behind get_visibility_metrics.

ParameterTypeDescription
prompt_id *string

estimate_cost

Estimate the monthly cost (USD) and run count of a Visibility Tracker configuration before starting it, given a prompt set, the list of engines, and n runs per prompt per week.

ParameterTypeDescription
engines *array
prompt_set_id *string
ninteger

get_usage

Get this tenant's month-to-date usage: total units and cost, broken down by kind (e.g. 'audit', 'tracker_run'), against the platform's LiteLLM budget cap.

get_citation_domains

Citation Graph (M4): rank the domains AI engines cite for a brand's niche — share of citations, average position, first/last seen and a per-period trend, each domain categorized (owned, competitor, review_site, forum_ugc, media, marketplace, wiki, other). Filter by period/engine/country/category (tag).

ParameterTypeDescription
brand_id
country
engine
period
project
tag

get_citation_urls

Citation Graph (M4): same ranking as get_citation_domains but at the URL level, with page titles.

ParameterTypeDescription
brand_id
country
engine
period
project
tag

get_citation_gaps

Citation Graph (M4) gap analysis: domains cited when a competitor is mentioned but never when this brand is — off-site opportunities (reviews, forums, directories), ranked by how many runs cited the domain for a competitor.

ParameterTypeDescription
brand_id
country
engine
period
project

list_fixes

Fix Engine (M5): list fix tickets for this tenant, each a generated-and-idempotent recommendation (bot access, SSR, schema/entities, weak passages, citation gaps...) with priority and status. Filter by brand/status ('open'|'applied'|'verifying'|'verified'|'not_improved')/type.

ParameterTypeDescription
brand_id
project
status
ticket_type

get_fix

Get one fix ticket's full detail, including its generated patches (JSON-LD, entity data, answer blocks/FAQ, content briefs).

ParameterTypeDescription
fix_id *string

generate_fixes

Fix Engine (M5): generate new fix tickets for a brand from one or more evidence sources — 'audit' (latest audit findings), 'tracker' (prompts where a competitor is mentioned but this brand isn't), 'citations' (citation gaps from M4). Idempotent: re-running with the same evidence does not create duplicate tickets.

ParameterTypeDescription
brand_id
project
sources

update_fix_status

Move a fix ticket through open -> applied -> verifying -> verified|not_improved. Marking 'applied' records a before-metrics snapshot and schedules re-measurement after verify_after_days (default 7); 'not_improved' tickets return to 'open'.

ParameterTypeDescription
fix_id *string
status *string
after_metrics
verify_after_daysinteger

get_traffic_bots

AI Traffic (M6): daily AI-bot hit counts for a site, broken down by bot and path (from server/CDN logs or the Cloudflare Worker / WordPress connectors). Filter by bot/path/date range.

ParameterTypeDescription
site *string
bot
date_from
date_to
path

get_traffic_referrals

AI Traffic (M6): daily referral sessions/conversions landing from AI engines (ChatGPT, Perplexity, Gemini, Copilot, Claude...), classified by referrer/UTM or imported from a GA4 CSV export. Filter by source/date range.

ParameterTypeDescription
site *string
date_from
date_to
source

get_traffic_pages

AI Traffic (M6): per-page AI-bot fetch counts joined with how often that page's content was cited in Visibility Tracker (M2) answers, at the time of the call.

ParameterTypeDescription
site *string
date_from
date_to

get_billing_plans

List Leadee's subscription plans (Starter/Growth/Pro/Agency): price, prompt limit, allowed engines, brand limit, included API/MCP calls per month. Does not require an API key.

get_billing_subscription

Get this tenant's current subscription: plan, status, trial/period dates, and usage against the plan's prompt/brand/API-call limits.

get_plan_usage

Job s40b: the same plan and usage numbers the workspace shows — current plan, this month's limits and usage (projects, questions, API/MCP calls, content audit pages, articles; null limit = unlimited), limits at 80%+, plan features, the next plan up and, for owners/admins/members, the wallet balance.

list_data_connections

Job C1/C2: list client-granted data connections (Search Console, GA4, or Bing Webmaster) for this tenant, with verification/sync status. Filter by brand_id.

ParameterTypeDescription
brand_id
project

create_data_connection

Job C1/C2: register a data connection — kind 'gsc'/'ga4' (property is the Search Console site URL or GA4 numeric property id) or 'bing' (property is the verified Bing Webmaster site URL). Verifies access immediately; the client must first add Leadee's bot account as a user on the property (see GET /v1/connections/instructions).

ParameterTypeDescription
kind *string
property *string
brand_id
project

import_ai_report

Job C2: upload a GSC 'Generative AI features' or Bing 'AI Performance' export (CSV/XLSX) against an existing connection — neither report has an API yet, so this file upload is the only way in. Kind is auto-detected from the file's header row. 'content_base64' is the raw file bytes, base64-encoded. 'period' labels the export's reporting window (defaults to today's date) for Bing's grounding-query/page tables.

ParameterTypeDescription
connection_id *string
content_base64 *string
filename *string
period

get_google_ai_report

Job C2: read back a brand's imported Search Console 'Generative AI features' data — AI Overviews/AI Mode impressions by day, with optional page/country/device. First-party export data, not a Tracker measurement.

ParameterTypeDescription
brand_id
date_from
date_to
project

get_bing_ai_report

Job C2: read back a brand's imported Bing 'AI Performance' data — grounding queries (with intent/topic/citation share), per-page citations, and a daily citations/cited-pages series. Sample data per Microsoft, first-party export, not a Tracker measurement.

ParameterTypeDescription
brand_id
date_from
date_to
project

create_demand_discovery

Job K1 Demand Discovery (M7): crawl a client's site (max_pages, plan-limited), extract services, generate+cluster keywords, attach demand numbers (Search Console actuals if 'gsc_actual' is in sources, otherwise estimated market volume), and rank clusters by priority. Runs async — poll get_demand_discovery until status is 'done', then call export_demand_discovery_to_prompt_set with the cluster ids you want to track.

ParameterTypeDescription
country *string
language *string
url *string
brand_id
competitors
gsc_csv
max_pages
project
services
sources

get_demand_discovery

Job K1: fetch a demand discovery's status and, once done, its extracted services and ranked keyword clusters with demand values.

ParameterTypeDescription
discovery_id *string

export_demand_discovery_to_prompt_set

Job K1: copy the member keyword texts of the given clusters from a finished demand discovery into an existing prompt set as new prompts (deduplicated), counted against the tenant's plan prompt limit.

ParameterTypeDescription
cluster_ids *array
discovery_id *string
prompt_set_id *string

keyword_import

Job ldee-clu2: upload a keyword export (Google Ads Keyword Planner, Ahrefs or Semrush CSV/TSV/XLSX — format auto-detected) into a project to seed its content clusters. 'content_base64' is the raw file bytes, base64-encoded; 'column_map' optionally maps the file's own header names to Leadee's fields ('text'/'volume'/'cpc'/'difficulty') when auto-detection picks the wrong column. Returns the detected format, how many rows imported vs failed (with per-row error reasons), and a preview of up to 20 rows. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
content_base64 *string
filename *string
project *string
column_map

cluster_build

Job ldee-clu2: (re)build a project's keyword clusters — hub pages with spoke keywords — from its imported keywords and connected Search Console data (no paid API calls; SERP refinement is a separate, off-by-default step). Returns 'needs_data' if the project has no imports/GSC data yet, otherwise 'ok' with how many clusters/items were created. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
project *string

cluster_get

Job ldee-clu2: fetch one content cluster's full hub-and-spoke detail — its keywords, target page, index state, recommended action and lock reason per item. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
cluster_id *string
project *string

keyword_analysis

Job ldee-kwa1/ldee-kwa2: list a project's keywords with priority score + reasons and every measured enrichment — intent, monthly search-volume trend, current Search Console ranking position/page, cluster/action/lock context, money-page match. A field is null/false only because it has never been measured, never a guessed value. 'sort'="priority" puts the highest-priority keyword first (unscored last). Filter with 'cluster_id', 'intent', 'money_pages_only' (keywords mapped to a declared money page), or 'gap_only' (keywords with no current on-site ranking at all — distinct from the competitor…

ParameterTypeDescription
project *string
cluster_id
gap_onlyboolean
intent
limitinteger
money_pages_onlyboolean
offsetinteger
sort

keyword_gaps

Job ldee-kwa1: list competitor keywords this project does not (yet) rank for, from DataForSEO Labs domain-intersection/competitors-domain data cached by the project's last 'keywords analyze' run — a distinct, competitor-based view from keyword_analysis's own 'gap_only' filter (which only looks at this project's own GSC ranking). Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
project *string
limitinteger
offsetinteger

get_keyword_brand_split

Job ldee-kwbr1 (leadee-brand-growth skill, step 6 KPI): per project and per cluster, keyword count / GSC clicks / impressions / volume broken down by brand class (own/partner/third_party/non_brand/unknown), with each class's share of clicks over the last 'days' (default 90). 'has_gsc_data=false' means clicks/impressions are blank for every class, never an estimate labelled as a click. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
project *string
daysinteger

get_keyword_cards

Job ldee-kwc2 (leadee-brand-growth skill, step 5 classify keywords): the same enriched keyword list as keyword_analysis, filterable by the keyword card's own fields too — 'brand_class' (own/partner/third_party/non_brand/unknown, job ldee-kwbr1), 'keyword_type' (the card's 10-type taxonomy), 'keyword_tier' (the skill's tier 1-6 brand-cluster ladder) and 'win_chance'. Use this when building the skill's keyword-tier table rather than keyword_analysis's plain priority view. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
project *string
brand_class
cluster_id
gap_onlyboolean
intent
keyword_tier
keyword_type
limitinteger
money_pages_onlyboolean
offsetinteger
sort
win_chance

get_market_size

Job ldee-mkt1 (leadee-brand-growth skill, step 6 KPI): the latest market-size snapshot per market cluster — raw vs. cleaned keyword count/monthly volume, the cleaning steps applied, and the monthly search-volume series. Filter to one cluster with 'cluster' (its label). Read-only: the paid DataForSEO pull itself runs via the 'content-ops market size' CLI command, not this tool. Paid projects and the internal tenant only — fails with 402 paid_plan_required otherwise. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is off.

ParameterTypeDescription
project *string
cluster

get_market_competitors

Job ldee-mkt2 (leadee-brand-growth skill, step 2 market player brands): the latest market-cluster competitor snapshot — ranked competitor domains, their strong pages, uncaptured keywords and CTR-by-position, plus historical rank-overview trends where ever run. Filter to one cluster with 'cluster'. Read-only: the paid pull runs via the 'content-ops market competitors'/'content-ops market history' CLI commands, not this tool. Paid projects and the internal tenant only — fails with 402 paid_plan_required otherwise. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disabled while the flag is…

ParameterTypeDescription
project *string
cluster

get_kpi_forecast

Job ldee-kpi1 (leadee-brand-growth skill, step 6/7 KPI ranges and plan): the latest KPI snapshot per market cluster — month-6/month-12 click ranges by brand mark, the fall scenario, leading indicators, Owner Brand KPIs and the content/tool gap list (spec traffic-kpi-method.md §3.1). Filter to one cluster with 'cluster'. Read-only: computed from get_market_size/get_market_competitors's own snapshots via the 'content-ops market kpi show' CLI command, no paid API call of its own. Paid projects and the internal tenant only — fails with 402 paid_plan_required otherwise. Behind LEADEE_CONTENT_O…

ParameterTypeDescription
project *string
cluster

get_reality_check

Job ldee-rlc1 (leadee-brand-growth skill, step 6 KPI sanity check): the Traffic Reality Check report card — this project's own connected GSC/GA4 traffic compared against a cached third-party traffic estimate (null until a source caches one; never a fabricated number), over the last 90 days. 'status'="no_connections" means neither GSC nor GA4 is connected yet. Reaches the live GA4 API when a GA4 connection exists (GSC reuses already-synced data); never calls DataForSEO itself.

ParameterTypeDescription
project *string

cluster_brief

Job ldee-art1: turn one content-cluster item (action 'write') into an article brief — primary/secondary keywords, question searches, sources AI engines cite, site facts, required internal links, the 12-item D1 checklist and an optional AI angle. A per-site cadence gate (lock date, weekly/daily limit) may leave it 'queued'. With LEADEE_CLUSTER_ARTICLES_GENERATE on, a brand site gets an article_brief agent task and an external customer gets a Leadee writer draft (0.50 USD cap) checked by Content-QC. Idempotent per item. Never publishes. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops_disab…

ParameterTypeDescription
item_id *string
project *string

cluster_metrics

Job ldee-mea1: numbers per content cluster — pages live, percent indexed on Google (Index Push), Google Search Console and Bing Webmaster clicks/impressions/average position over the last 28 days, AI mentions from the Leadee Tracker (split by engine) and Bing Copilot citations from the Bing AI Performance export, labelled apart and never added to Tracker numbers. Every number carries its source and date; a number with no source is status 'missing' with value null, never 0. Optional cluster_id narrows to one cluster. Read-only, no paid call. Behind LEADEE_CONTENT_OPS_ENABLED: 404s content_ops…

ParameterTypeDescription
project *string
cluster_id

create_action

Job A2/A3 Action layer: plan a fix ticket's change set through a channel ('github' opens/updates a draft pull request branch; 'wordpress' stages a draft post/page) and return a human-readable preview (file diffs or content preview) — this ONLY plans and previews, it never publishes anything. Fails with channel_not_connected if the tenant hasn't connected that channel yet. Call approve_action separately to actually apply it — that is the explicit approval step this platform always requires before any external change.

ParameterTypeDescription
fix_id *string
channelstring

list_actions

Job A2/A3: list action runs (planned/approved/reverted change sets) for this tenant. Filter by ticket_id/status.

ParameterTypeDescription
status
ticket_id

get_action

Job A2/A3: get one action run's status and its current preview (file diffs or content preview, re-rendered live from the channel).

ParameterTypeDescription
action_id *string

approve_action

Job A2/A3: APPROVE AND APPLY a previously planned action run — pushes the real commit/opens the real pull request, or publishes the real WordPress draft. This is the explicit approval step the owner spec requires before any site change; only call it after a human has reviewed create_action's/get_action's preview and asked for it to be applied. Requires an owner or admin membership (the OAuth 'actions' scope is only ever granted to those roles) — every other role is rejected by the API regardless of what this tool is asked to do.

ParameterTypeDescription
action_id *string

revert_action

Job A2/A3: revert a previously applied action run (closes/reverts the pull request, or unpublishes the WordPress draft back to its prior state). Same owner/admin-only gating as approve_action — a real external change, always requires the human to have asked for it explicitly.

ParameterTypeDescription
action_id *string

create_history_analysis

Job H1 Site History & Improvement Plan (M8): merge every connected history source (Search Console, Bing, Wayback Machine, DataForSEO, Leadee's own tracker/audit history) for a brand into a dated timeline, flag change points (traffic/ranking shifts), and rank an improvement plan. Runs async — 'since' defaults to 16 months back (Search Console's retention window); poll get_history_analysis until status is 'completed', then review the plan before calling apply_history_recommendations.

ParameterTypeDescription
brand_id
project
since
sources

list_history_analyses

Job H1: list history analyses for this tenant (paginated), newest first. Filter by brand_id.

ParameterTypeDescription
brand_id
limitinteger
offsetinteger
project

get_history_analysis

Job H1: fetch a history analysis's status and, once 'completed', its timeline, change points and ranked improvement plan (each plan item has an id to pass to apply_history_recommendations).

ParameterTypeDescription
analysis_id *string

apply_history_recommendations

Job H1: turn chosen plan recommendations into fix tickets (route 'auto_fix'/'content') or draft service request rows (route 'managed') — idempotent per recommendation id, same dedup as generate_fixes. This drafts tickets/requests only; it does not publish any site change — use create_action + approve_action for that, same approval flow as every other fix ticket.

ParameterTypeDescription
analysis_id *string
recommendation_ids *array

get_history_report

Job H1: fetch the Markdown summary report for a completed history analysis (timeline narrative + ranked plan) — the same document also available as the leadee://history/{analysis_id}/report.md resource. Fails with history_analysis_not_ready if the analysis hasn't finished running yet.

ParameterTypeDescription
analysis_id *string

get_connection_instructions

Data connections (M7/C1): the Leadee bot service account email and the numbered steps to grant it read access to a client's Search Console property (add as a Restricted user) and GA4 property (add as Viewer) — the primary, no-OAuth-needed way to connect. Does not require an API key.

list_connections

Data connections (M7/C1): list this tenant's GSC/GA4 data connections and their status ('pending'|'verified'|'no_access'|'error'), last_checked_at and last_synced_at. Optionally filter by brand_id.

ParameterTypeDescription
brand_id
project

get_ai_visibility_index

Job ldee-t10 (spec tools/industry-ranking-board.md): public, unauthenticated AI Visibility Index — which real brand names ChatGPT/Perplexity/Google AI Mode mention for a category's open prompt panel, measured from Leadee's own internal tenant, never customer data. Omit 'industry' to list every category (hub cards); pass it to list only that industry's categories. Each item includes 'gate' (passed/reasons) — a category failing the quality gate still has a number here but the public page renders noindex until it passes. This is a public, unauthenticated, no-workspace tool: 'project' is accep…

ParameterTypeDescription
industry
project

get_ai_visibility_index_category

Job ldee-t10: one AI Visibility Index category's full snapshot — per-brand mention rate/citation rate with Wilson 95% CIs, month-over-month delta (only when statistically significant), average list position, share of voice, top-cited source, rule-based takeaways and the full prompt list used to measure it. Omit 'period' for the latest snapshot, or pass one (e.g. '2026-11') for a past month's immutable snapshot. This is a public, unauthenticated, no-workspace tool: 'project' is accepted but not wired to anything — there is no tenant/workspace context here to file a proposal under (see propo…

ParameterTypeDescription
category *string
industry *string
period
project

get_context

Job wp2b: who/what is calling — the signed-in user (if any), the current workspace, this token's kind/scope and (if pinned) its one project, the wallet balance, API rate limit, and how many approvals are waiting in this workspace's inbox. Call this first in a new conversation to orient before doing anything else.

list_workspaces

Job wp2b: every workspace this caller's user account belongs to, with their role in each — use before switching context to a different workspace (see the web app's workspace switcher; there is no MCP tool for it since it mints a new session key).

list_projects

Job wp2b: list projects in the current workspace, paginated. Filter by 'status' ('active'|'archived') or 'q' (name/domain substring search).

ParameterTypeDescription
cursor
limitinteger
q
status

get_project

Job wp2b: fetch one project by id or slug.

ParameterTypeDescription
project *string

get_project_overview

Job wp2b: a project's setup/readiness snapshot — state ('setup_incomplete'|'ready'|'archived'), the checklist of setup steps done so far (has_url/has_prompts/approved_first_proposal), and its prompt/open-fix-ticket counts.

ParameterTypeDescription
project *string

create_project

Job wp2b: register a new project. 'url' is required (the project's canonical site) and is checked for reachability — fails with project_url_unreachable unless a human caller sets 'allow_unreachable' (not exposed here; agents never get to skip the check). Fails with 409 project_exists if this workspace already has a project for that domain.

ParameterTypeDescription
url *string
competitors
countrystring
idempotency_key
languagestring
name
slug

update_project

Job wp2b: update a project's fields (only the ones you pass are changed). Changing 'domain' is treated as irreversible for an agent caller regardless of this route's base approval class — see the pending_approval note on archive_project.

ParameterTypeDescription
project *string
agent_monthly_credit_budget
aliases
competitors
country
description
domain
idempotency_key
language
name
settings

claim_project

Job wp2b: open (or create) the project for a URL, e.g. to claim a free-tool report into this workspace — idempotent: an existing project for the same domain is returned as-is, never a 409. Give either 'url' or 'free_tool_run_id'.

ParameterTypeDescription
free_tool_run_id
url

archive_project

Job wp2b: archive a project (stops its tracker schedule) — irreversible (owner spec §4.2a). An agent call is routed to the approval inbox instead of running immediately: the result is a pending_approval body (status/approval_id/approve_url), not an error — poll get_approval with that id to see the human's decision, same pattern as create_token/create_topup/propose_change below.

ParameterTypeDescription
project *string
idempotency_key

restore_project

Job wp2b: restore a previously archived project back to active.

ParameterTypeDescription
project *string

get_wallet

Job wp2b: this workspace's prepaid credit wallet — plan/topup/promo credit buckets, balance, lifetime totals, low-balance threshold and state ('ok'|'low'|'empty').

list_wallet_ledger

Job wp2b: the wallet's immutable ledger entries (grants, consumption, topups), paginated. Filter by 'type', 'project', or 'source_kind'.

ParameterTypeDescription
cursor
limitinteger
project
source_kind
type

get_wallet_usage

Job wp2b: credit consumption grouped by 'project'|'day'|'source_kind' (default source_kind).

ParameterTypeDescription
group_bystring

list_credit_packages

Job wp2b: the purchasable credit top-up packages (slug, credits, bonus credits, USD price).

quote_credits

Job wp2b: price a hypothetical list of usage items in credits before spending anything — 'items' is a list of {source_kind, units, engine?}. Pure computation, no side effects.

ParameterTypeDescription
items *array

create_topup

Job wp2b: start a PayPal-backed credit top-up — returns an approve_url to send the buyer to. Always routed to the approval inbox for an agent caller (real money, owner spec §4.6): the result is a pending_approval body, not an error. Requires 'idempotency_key' (the API itself rejects a call without one, not just this tool).

ParameterTypeDescription
package_slug *string
cancel_url
idempotency_key
return_url

list_tokens

Job wp2b: list this workspace's API tokens (label, kind, scope, project pin, last used, expiry) — never the plaintext key, which is only ever shown once at creation/rotation.

create_token

Job wp2b: issue a new API token. Irreversible (owner spec §4.4) — an agent caller gets a pending_approval body back instead of the plaintext key; whoever approves it is the only one who ever sees the key.

ParameterTypeDescription
expires_in_days
idempotency_key
kindstring
label
project_id
scopestring

rotate_token

Job wp2b: rotate a token — mints a replacement and starts the old one's 24h grace period (it keeps working until then, per spec §4.4).

ParameterTypeDescription
token_id *string

revoke_token

Job wp2b: revoke a token immediately (no grace period).

ParameterTypeDescription
token_id *string

list_agents

Job wp2b: list this workspace's agent identities (the system leadee_operator, any mcp_client auto-created on OAuth consent, and api_client agents the workspace created) with their kind/status/budget.

list_approvals

Job wp2b: list the approval inbox — gates (an agent call blocked pending approval) and proposals (agent-initiated suggestions), paginated. Filter by 'status' ('pending'|'approved'|'rejected'|'changes_requested'|'expired'|'executed'|'failed'|'superseded'), 'kind' ('gate'|'proposal'), or 'project'.

ParameterTypeDescription
cursor
kind
limitinteger
project
status

get_approval

Job wp2b: one approval's full detail (title, summary, preview, status, comment thread) — poll this with the approval_id a pending_approval response gave you to see a human's decision. There is no approve/reject tool: an agent is never allowed to decide its own (or anyone else's) approval, only a signed-in human can.

ParameterTypeDescription
approval_id *string

propose_change

Job wp2b: file an agent-initiated suggestion in the approval inbox (a 'proposal', owner spec §4.9) for a human to approve/reject/request changes on — use this when you want to recommend a change you have no tool to make directly, or one you'd rather a human sign off on even though nothing forces it. No approve/reject tool exists here on purpose.

ParameterTypeDescription
action *string
summary *string
title *string
estimated_credits
preview
project
request_payload

list_agent_tasks

Job wp2b: list the agent work queue for this workspace (or one 'project'), paginated. Filter by 'status' ('queued'|'running'|'done'|'failed'|'cancelled').

ParameterTypeDescription
cursor
limitinteger
project
status

create_agent_task

Job wp2b: queue a unit of agent work against a project — 'kind' is a free-text work type your own agent loop recognizes (this API never runs the task itself).

ParameterTypeDescription
kind *string
project *string
title *string
input
priorityinteger
scheduled_for

claim_agent_task

Job wp2b: atomically claim the next queued task (optionally scoped to one 'project') — uses SELECT ... FOR UPDATE SKIP LOCKED server-side so two agent workers polling at once never claim the same row. Fails with no_task_available (404) when the queue is empty; only an agent-kind token may call this.

ParameterTypeDescription
project

update_agent_task

Job wp2b: update a claimed task's status/output/error/credits_spent as you work through it — moving to a terminal status ('done'|'failed'|'cancelled') stamps finished_at.

ParameterTypeDescription
task_id *string
credits_spent
error
output
status

content_ops_board

Job ldee-cops1: every visible project's content-ops board row — the 10 stage progress numbers (plan/cluster/brief/write/qc/publish/index/social/audit/measure, each 'ok' with done/total or 'no_data' with a note, never a fabricated 0) plus Google/Bing channel summaries, tenant-wide.

content_ops_summary

Job ldee-cops1: one project's full content-ops detail — stage progress, Google/Bing channel summaries, the last Bing AI Performance CSV import date, the milestone list and any live runner heartbeats.

ParameterTypeDescription
project *string

milestone_update

Job ldee-cops1: update a milestone's title/owner/due_at/status/last_error on a project's content-ops plan.

ParameterTypeDescription
milestone_id *string
project *string
due_at
last_error
owner_agent_id
owner_kind
owner_user_id
status
title

index_push_summary

Job ldee-ixp2: one project's Index Push KPIs — total URLs tracked, % indexed on Google, % with Bing data, URLs regressed out of 'indexed' in the last 7 days, the last successful submission, and Bing's remaining daily quota.

ParameterTypeDescription
project *string

index_push_submit

Job ldee-ixp2: manually (re)submit up to 100 URLs for a project's tracked Index Push site to IndexNow/Bing/GSC sitemaps (whichever channels the site has enabled) — a URL unchanged since its last submission within 24h is deduped, not resent.

ParameterTypeDescription
project *string
urls *array

social_channels

Job ldee-soc3: every social channel (Postiz integration) mapped to this project — mode, approved_streak, weekly_limit, the 'generate' cutover flag and disabled state.

ParameterTypeDescription
project *string

social_queue

Job ldee-soc3: this project's social posts, paginated — the approval queue, already-scheduled and published history. Filter by 'status' ('pending_review'|'draft'|'queue'|'published'|'rejected'|'deduped').

ParameterTypeDescription
project *string
limitinteger
offsetinteger
status

social_approve

Job ldee-soc3: decide one social post from the approval queue — 'action' is 'approve', 'edit' (needs 'content'), 'reschedule' (needs 'scheduled_for') or 'reject' (optional 'comment'). Calls Postiz synchronously to create/move/delete the post, so this always reaches an external surface.

ParameterTypeDescription
action *string
post_id *string
project *string
comment
content
scheduled_for

get_brand_serp

Job ldee-bsp1: what shows up on page 1 of Google when someone searches this project's brand name — own site/profile vs. market player/news/forum/directory/video classification, feature presence (knowledge panel, sitelinks, People Also Ask, images, video, reviews, top stories, AI Overview), and a short AI reading. Internal tenant or paid projects only.

ParameterTypeDescription
project *string
country
language

refresh_brand_serp

Job ldee-bsp1: fetch a fresh Brand SERP snapshot for this project (30-day cache per market). Pass dry_run=true first to see estimated_cost_usd before actually running it.

ParameterTypeDescription
project *string
country
dry_runboolean
language

list_page_changes

Job ldee-drf1: on-page changes detected during this project's monitor runs — field (title/h1/meta_description/canonical/robots/hreflang/schema_types/word_count/content_hash/status_code), old value, new value and severity, newest first. A URL's first capture is a silent baseline, never a row. Filter by 'url', 'severity' ('low'|'medium'|'high'|'critical') or 'since' (an ISO date).

ParameterTypeDescription
project *string
limitinteger
severity
since
url

list_activity

Job wp2b: the append-only activity log for this workspace (or one 'project') — every action a user, agent or the system took, paginated. Filter by 'actor_type' ('user'|'agent'|'system'), 'agent_id', 'token_id', 'action' (catalog action name), or 'status'.

ParameterTypeDescription
action
actor_type
agent_id
cursor
limitinteger
project
status
token_id

list_keyword_imports

Job ldee-mcpx1: keyword file imports for this project (newest first) — file name, row counts, status. Paginate with 'limit' (max 100) and 'offset'.

ParameterTypeDescription
project *string
limitinteger
offsetinteger

get_keyword_status

Job ldee-mcpx1: where this project's keyword analysis stands (import, enrichment, clustering steps and their progress).

ParameterTypeDescription
project *string

get_keyword_overview

Job ldee-mcpx1: one-screen keyword overview for this project — totals by intent, brand vs. non-brand, cluster count and top opportunities.

ParameterTypeDescription
project *string

list_clusters

Job ldee-mcpx1: keyword clusters for this project with their size, volume and status. Paginate with 'limit' (max 100) and 'offset'. Use cluster_get for one cluster.

ParameterTypeDescription
project *string
limitinteger
offsetinteger

get_cluster_map

Job ldee-mcpx1: the hub/spoke map of this project's clusters (which clusters link to which, and which hub page each one belongs to).

ParameterTypeDescription
project *string

get_cluster_page_type_gaps

Job ldee-mcpx1: page types the ranking pages for one cluster use that this site has no page for yet (e.g. comparison, guide, tool). Paginate with 'limit' (max 200), 'offset'.

ParameterTypeDescription
cluster_id *string
project *string
limitinteger
offsetinteger

get_kpi_reality

Job ldee-mcpx1: forecast vs. actual clicks per cluster (the KPI reality check). Optional 'cluster' filters to one cluster's label.

ParameterTypeDescription
project *string
cluster

get_kpi_refresh_cost

Job ldee-mcpx1: what refreshing this project's market KPI data would cost before you ask for it. Read only; nothing is charged.

ParameterTypeDescription
project *string

get_cluster_brief

Job ldee-mcpx1: read the content brief already written for one cluster item. Use cluster_brief to create one first.

ParameterTypeDescription
item_id *string
project *string

get_cluster_article_links

Job ldee-mcpx1: internal links planned for one cluster article (to the hub and sibling pages) and whether each one is live.

ParameterTypeDescription
article_id *string
project *string

get_hub_report

Job ldee-mcpx1: the hub report for this project — each hub page, its spoke pages, coverage and traffic. Optional 'cluster' (id) narrows it to one cluster.

ParameterTypeDescription
project *string
cluster

get_bing_summary

Job ldee-mcpx1: Bing Webmaster summary for this project's site (clicks, impressions, crawl and index status) from the connected Bing account.

ParameterTypeDescription
project *string

get_bing_ai_topics

Job ldee-mcpx1: Bing AI (Copilot) topic portfolio for this project from imported Bing AI reports. 'project' must be the project id; optional 'window' picks the period.

ParameterTypeDescription
project *string
window

list_index_push_urls

Job ldee-mcpx1: URLs tracked for index push on this project and their state (submitted, indexed, failed...). Filter with 'state'; paginate with 'cursor' and 'limit'.

ParameterTypeDescription
project *string
cursor
limitinteger
state

get_project_visibility

Job ldee-mcpx1: AI visibility for this project — mention and citation rates per engine over the latest tracker runs.

ParameterTypeDescription
project *string

get_prompt_fanout

Job ldee-mcpx1: the stored query fan-out for one tracked prompt (the sub-queries an AI engine is likely to run for it). Use create_prompt_fanout if none exists yet.

ParameterTypeDescription
prompt_id *string
project

create_prompt_fanout

Job ldee-mcpx1: generate (or regenerate) the query fan-out for one tracked prompt. Uses an AI model and counts toward usage.

ParameterTypeDescription
prompt_id *string
project

verify_data_connection

Job ldee-mcpx1: re-check one data connection (Search Console, GA4, Bing) right now and return its fresh status.

ParameterTypeDescription
connection_id *string
project

get_monitoring

Job ldee-mcpx1: this project's site monitoring setup — whether it is on, its schedule, and the last run.

ParameterTypeDescription
project *string

list_monitoring_runs

Job ldee-mcpx1: recent monitoring runs for this project, newest first ('limit' max 100).

ParameterTypeDescription
project *string
limitinteger

list_monitoring_issues

Job ldee-mcpx1: issues monitoring found on this project's site. Filter 'status' by 'open' or 'fixed'.

ParameterTypeDescription
project *string
status

mark_monitoring_issue_fixed

Job ldee-mcpx1: mark one monitoring issue (by its 'fingerprint') as fixed. The next run checks it again and reopens it if it is still there.

ParameterTypeDescription
fingerprint *string
project *string

verify_monitoring

Job ldee-mcpx1: start a monitoring run for this project now (it fetches the live site). Returns at once; poll list_monitoring_runs for the result.

ParameterTypeDescription
project *string

list_monitoring_notifications

Job ldee-mcpx1: monitoring alerts for this project (new issues, regressions). Set 'unread'=true for unread ones only; 'limit' max 100.

ParameterTypeDescription
project *string
limitinteger
unreadboolean

mark_notification_read

Job ldee-mcpx1: acknowledge one monitoring alert by marking it read.

ParameterTypeDescription
notification_id *string
project *string

list_issues

Job ldee-mcpx1: the project's tracked issues grouped by 'group' (default 'category'); optional 'status' filter.

ParameterTypeDescription
project *string
groupstring
status

list_fix_plans

Job ldee-mcpx1: fix plans in this workspace. 'project' (the project id) and 'status' filter the list.

ParameterTypeDescription
project
status

get_fix_plan

Job ldee-mcpx1: one fix plan with all its items, owners and due dates.

ParameterTypeDescription
plan_id *string
project

get_fix_plan_markdown

Job ldee-mcpx1: one fix plan as a Markdown document, ready to share or paste.

ParameterTypeDescription
plan_id *string
project

list_content_audits

Job ldee-mcpx1: content audits for this project (or the whole workspace), newest first. Paginate with 'limit' (max 100) and 'offset'.

ParameterTypeDescription
limitinteger
offsetinteger
project

get_content_audit

Job ldee-mcpx1: one content audit — status, page count and summary scores.

ParameterTypeDescription
content_audit_id *string
project

list_content_audit_pages

Job ldee-mcpx1: per-page results of one content audit. Paginate with 'limit' (max 200) and 'offset'.

ParameterTypeDescription
content_audit_id *string
limitinteger
offsetinteger
project

create_content_audit

Job ldee-mcpx1: start a content audit for this project (the project id) from a list of 'urls' or a 'sitemap' URL, optionally capped by 'max_pages'. It fetches the live pages and counts toward usage; poll get_content_audit for the result.

ParameterTypeDescription
project *string
max_pages
sitemap
urls

list_alert_rules

Job ldee-mcpx1: alert rules (what triggers an alert and where it goes). 'project' (the project id) filters to one project.

ParameterTypeDescription
project

get_alert_rule

Job ldee-mcpx1: one alert rule by id.

ParameterTypeDescription
rule_id *string
project

list_alert_events

Job ldee-mcpx1: alerts that fired, newest first ('limit' max 200). 'project' (the project id) filters to one project.

ParameterTypeDescription
limitinteger
project

get_project_report

Job ldee-mcpx1: the project report — visibility, issues, traffic and next steps in one summary, the same one the web report page shows.

ParameterTypeDescription
project *string

list_report_rows

Job ldee-mcpx1: raw visibility report rows (prompt x engine x country x period). 'project' is the project id; filter with 'engine', 'country', 'period'; 'limit' max 1000.

ParameterTypeDescription
country
engine
limitinteger
offsetinteger
period
project

get_report_email_preference

Job ldee-mcpx1: whether this project's report email and weekly digest are on for you.

ParameterTypeDescription
project *string

set_report_email_preference

Job ldee-mcpx1: turn this project's report email on/off ('report_email') and set the digest ('weekly' or 'off'). Only the fields you pass change.

ParameterTypeDescription
project *string
digest
report_email

get_report_digest

Job ldee-mcpx1: your weekly digest preview across all projects you can see.

ParameterTypeDescription
project

get_public_profile

Job ldee-mcpx1: whether this project's public brand profile page is published, and its public URL. 'project' is the project id.

ParameterTypeDescription
project *string

set_public_profile

Job ldee-mcpx1: publish ('publish'=true) or hide ('publish'=false) this project's public brand profile page. Publishing makes it visible to anyone and asks search engines to index it. Needs a verified domain and owner/admin rights. Confirm with a human first.

ParameterTypeDescription
project *string
publish *boolean

get_public_brand_report

Job ldee-mcpx1: the published public brand report for a domain, as anyone can see it.

ParameterTypeDescription
domain *string
project

list_articles

Job ldee-mcpx1: articles written for this project (or the whole workspace) with their status.

ParameterTypeDescription
project

get_article_board

Job ldee-mcpx1: this project's article board — articles grouped by stage (draft, review, approved, scheduled, published).

ParameterTypeDescription
project *string

get_article

Job ldee-mcpx1: one article with its metadata and body.

ParameterTypeDescription
article_id *string
project

get_article_markdown

Job ldee-mcpx1: one article as Markdown.

ParameterTypeDescription
article_id *string
project

list_article_publications

Job ldee-mcpx1: where one article has been published (site, URL, status, time).

ParameterTypeDescription
article_id *string
project

list_publish_connections

Job ldee-mcpx1: the sites this project can publish to (WordPress, Wix, Shopify...) and whether each connection works.

ParameterTypeDescription
project *string

publish_article

Job ldee-mcpx1: publish one approved article to a connected site ('connection_id', optional when there is one). For an agent key this never publishes straight away: the API returns status 'pending_approval' and a human approves it in the Leadee inbox. Set 'overwrite_remote_edits' only if a human said to.

ParameterTypeDescription
article_id *string
connection_id
idempotency_key
overwrite_remote_editsboolean
project

list_members

Job ldee-mcpx1: people in this workspace and their roles.

ParameterTypeDescription
project

get_actions_catalog

Job ldee-mcpx1: every API action, the access it needs, and whether an agent call needs human approval. Useful before trying a write.

ParameterTypeDescription
project

get_benchmark

Job ldee-mcpx1: AI visibility benchmark numbers for one industry.

ParameterTypeDescription
industry *string
project

list_methodology_checks

Job ldee-mcpx1: every check Leadee's audits run, what it looks at and why it matters.

ParameterTypeDescription
project

technical_seo_audit

Job ldee-mcpx1: technical SEO audit of one URL (canonical, indexability, status codes, headings, structured data...). Returns proposed fixes for a human to review; nothing is changed on the site. 'preset' is 'default' or 'chatgpt'.

ParameterTypeDescription
url *string
presetstring

check_page_speed

Job ldee-mcpx1: page speed and Core Web Vitals for one URL (mobile and desktop).

ParameterTypeDescription
url *string

check_meta_tags

Job ldee-mcpx1: check one page's title, description, Open Graph and Twitter tags. Returns proposed fixes for a human to review.

ParameterTypeDescription
url *string

validate_sitemap

Job ldee-mcpx1: find and validate a site's XML sitemap (a site root or a sitemap URL) and sample its pages. Returns proposed fixes for a human to review.

ParameterTypeDescription
url *string

check_redirects

Job ldee-mcpx1: follow one URL's redirect chain as a browser and as AI crawlers. Returns proposed fixes for a human to review.

ParameterTypeDescription
url *string

check_hreflang

Job ldee-mcpx1: check hreflang tags for one 'url' or up to 20 'urls' on one site (return links, x-default, canonical conflicts). Returns proposed fixes.

ParameterTypeDescription
url
urls

test_robots_txt

Job ldee-mcpx1: test a site's robots.txt ('url') or pasted text ('code') against search and AI bots for one 'path' (default '/'). Returns proposed fixes.

ParameterTypeDescription
code
pathstring
url