Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.openlens.com/llms.txt

Use this file to discover all available pages before exploring further.

The MCP server registers ~40 tools scoped to the authenticated user’s projects. All require a valid OAuth session and operate with the same permissions as the web UI.

Project & client setup

ToolDescription
setup_clientCreate a new OpenLens project with own brand, competitors, topics, custom prompt attributes, and generated prompts.
list_projectsList the user’s OpenLens projects.
update_project_settingsUpdate name, URL, location, languages, active platforms, or generated prompts. refresh_prompts tops-up or recreates prompts.
delete_projectArchive one project. History is preserved.

Brands

ToolDescription
list_brandsList the own brand and competitors tracked for a project.
add_competitorAdd one competitor brand.
delete_competitorDelete one competitor brand. The own brand cannot be deleted this way.

Platforms

ToolDescription
list_platformsList the AI platforms the user is entitled to.

Topics

ToolDescription
list_topicsList tracked topics for a project.
add_topicAdd one topic and start background prompt generation.
delete_topicDelete one topic and its prompts. Historical results cascade-delete.

Prompts

ToolDescription
list_promptsList active and inactive prompts, optionally scoped to one topic.
add_promptAdd one manual prompt. Attributes must come from list_prompt_attributes.
set_prompt_activeActivate or deactivate without deleting historical results.
update_prompt_templateEdit text and/or attributes. Clone-on-change protection. Returns requires_confirmation for prompts with history.
delete_promptDelete one prompt. Use set_prompt_active for reversible deactivation.

Prompt attributes

ToolDescription
list_prompt_attributesBuilt-in + custom attributes for a project.
add_prompt_attributeAdd one custom attribute.
archive_prompt_attributeArchive a custom attribute. Historical labels are preserved.
unarchive_prompt_attributeRestore an archived custom attribute.

Prompt runs

ToolDescription
run_promptsStart a run. Returns immediately. Poll get_run_status every ~30s until completed or failed.
cancel_runCancel a running prompt run. Safe for already-terminal runs.
get_run_statusGet status. Omit run_id for the latest run.
list_runsList recent runs (running, completed, failed, cancelled, interrupted).

Visibility & analytics

ToolDescription
get_visibilityBrand visibility for the latest usable run. Supports overview, by_topic, by_platform.
get_topic_visibilityDetailed visibility for one topic.
get_trendsMulti-brand visibility trends over the last N days.
get_prompt_resultsRaw AI response text, with optional filters.
get_prompt_performanceRank prompts by appearance, coverage, position, citations, sentiment.
get_attribute_breakdownPer-attribute brand sentiment and evidence for one topic.
get_engine_patternsCompare how each platform sources and structures answers.
get_citationsTop cited domains, with optional filters.
get_mentionsOwn-brand mention summaries grouped by topic.

Workstreams

ToolDescription
list_workstreamsList goal-tracked workstreams.
get_workstreamHeader + 30-day sparkline + 90-day trend series.
get_workstream_breakdownPrompt-level movers and competitor share.
manage_workstreamCreate, update, archive, unarchive.
update_workstream_goalAppend a new current goal. Past goals stay in history.

Scheduling

ToolDescription
manage_scheduleGet or update the scheduled prompt-run settings. Call with no fields to inspect.