org_id(string, optional): fromlist_workspaces. Defaults to the workspace you chose at sign-in.site_id(string): fromlist_sites. Never guess this value.
Workspaces and sites
list_workspaces
The Koalr workspaces (organisations) this account belongs to, with eachorg_id and your role. Call first to find a valid org_id. No arguments.
list_sites
The sites (projects) tracked in a workspace, with their domain and when their AI visibility data was last refreshed.string
Workspace to list.
Visibility
get_visibility_summary
How visible a site is in AI answers: the headline Prompt Visibility Rate, Share of Voice and Sentiment exactly as the Dashboard shows them, then the same three per platform, plus the weakest topics. For “how am I doing” and “which platform am I weakest on”.string
required
Site to report on.
string
Workspace.
search_prompts
The prompts a site is tracked against and how it performs on each over the past 30 days. Passquery to find specific prompts; omit it to list the weakest. Branded prompts are marked and left out of the weakest list, and a high figure on one must never be reported as a win.
string
required
Site.
string
Words to match against prompt text.
string
Workspace.
get_prompt_detail
What each AI platform actually answered for one prompt, with excerpts, the brands named alongside the site, and whether it was mentioned. The headline visibility covers the whole 30-day window; the excerpts are a recent sample of it, so agents should not recompute a rate from them.string
required
Site.
string
required
The prompt, as returned by
search_prompts.string
Workspace.
Competitors and citations
get_competitors
The site ranked against its tracked competitors, matching the AI Visibility Leaderboard. Two numbers per brand: Prompt Visibility Rate (independent per brand, does not total 100) and Share of Voice (totals about 100). For “who am I losing to”.string
required
Site.
string
Workspace.
get_citations
Which domains and pages AI cites for the site’s prompts, and whether the site itself is cited. For “which pages get cited” and “where do AI answers get their information”.string
required
Site.
integer
Rows to return, 1 to 50. Default 15.
string
Workspace.
get_gaps
Prompts and third-party pages where competitors are cited or mentioned and the site is not: the actionable list. For “where am I missing”.string
required
Site.
integer
Gaps to return, 1 to 50. Default 15.
string
Workspace.
Actions and traffic
get_actions
The prioritised Actions list: citation gaps, content opportunities, GEO and Agent Experience fixes, competitor outreach. Scored 0 to 100 for value and returned best first, the same order the Action Centre shows. For “what should I do next”.string
required
Site.
integer
Actions to return, 1 to 25. Default 10.
string
Workspace.
get_ai_traffic
Visits the site received from AI platforms, by platform and landing page. Requires Google Analytics to be connected. For “is AI sending me traffic”.string
required
Site.
integer
Window in days, 1 to 90. Default 30.
string
Workspace.
Content
get_content_opportunities
What is worth writing for the site, ranked. Each opportunity names the tracked prompt the piece should target and, where there is a page in play, what to do with it. The content view ofget_actions, so the two never disagree.
string
required
Site.
string
Workspace.
get_page_revisions
Which of the site’s existing pages are worth reworking, ranked, each with an effort band (Quick win, Worth a session, Rebuild), what is missing and the prompts it could win. Preferred over new content when the customer is short of time.string
required
Site.
string
Workspace.
get_revision_detail
What to change on one page: where it stands today, the specific changes worth making, and the prompts each change would help win. Where a change carries wording, it is the passage on the page today and the copy to replace it with, verbatim. Reads stored data only; never re-crawls or generates.string
required
Site.
string
required
The page, as returned by
get_page_revisions.string
Workspace.
get_content_performance
Whether the content the site has published is being cited by AI yet, piece by piece. Only covers pieces where the customer told Koalr the published address. Engines take a few weeks to pick up a new page, so a recent zero is normal.string
required
Site.
string
Workspace.
Site health
get_site_health
The technical AI readiness of the site in two parts: the GEO Audit (site score plus weakest categories) and Agent Experience (schema, llms.txt and bot access as one score). These describe the site itself, not visibility in answers.string
required
Site.
string
Workspace.
Response conventions
- Numbers match the app exactly and carry a freshness stamp.
- Branded prompts are labelled and never presented as wins.
- The retired composite score is never returned.
- Excerpts from AI answers are marked as untrusted content.