> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Airops MCP server

The Airops MCP connector routes your AI agent's tool calls to Airops's own MCP server through Scalekit. Each user connects their own Airops API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 91 tools.

**Authentication:** API Key
**Categories:** AI, Marketing, Analytics
**Tools:** 91: 37 read, 25 write, 29 destructive
**Users sign in with:** API key
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=AIROPSMCP)

## What you can do

- **Track AI search visibility**: query analytics, AI answers, citations, and cited domains to see how AI engines mention a brand
- **Manage AEO prompts**: create, tag, and delete tracked prompts, and group them by topic and persona
- **Manage Brand Kits**: update brand voice, audiences, competitors, writing rules, palettes, and fonts, then publish the draft
- **Work with grids**: create grids and sheets, read and write rows, and run workflow columns on selected rows
- **Manage knowledge bases**: create knowledge bases, add web pages and files, and search their content by meaning
- **Review campaign opportunities**: list, create, accept, or reject improvement opportunities for a campaign

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Airops MCP connection

   In **AgentKit > Connections**, create an Airops MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   **Console steps with screenshots:**

   Register your Scalekit environment with the AirOps connector so Scalekit can proxy API requests and inject your API key automatically. There is no redirect URI or OAuth flow — authentication uses your AirOps API key.

   1. ### Get your AirOps API key

      - Sign in to [AirOps](https://app.airops.com) and click **Settings** in the bottom-left sidebar.
      - Select **Workspace** from the settings menu.
      - Under **API Key**, click the copy icon to copy your key. To rotate the key, click **Regenerate**.

      > Image: AirOps workspace settings page showing the Workspace ID and API Key section with a masked key and Regenerate button

      > caution: Keep your API key secret
      >
      > Never expose your AirOps API key in client-side code or public repositories. Regenerating the key immediately revokes the previous one.

   2. ### Create a connection in Scalekit

      - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** > **Create Connection**. Find **AirOps** and click **Create**.
      - Note the **Connection name** — use this as `connection_name` in your code (e.g., `airopsmcp`).
      - Click **Save**.

   3. ### Add a connected account

      Connected accounts link a user identifier in your system to an AirOps API key.

      **In the dashboard, to test**
      - Open the connection and click the **Connected Accounts** tab → **Add account**.
      - Fill in:
        - **Your User's ID** — a unique identifier for this user in your system (e.g., `user_123`)
        - **API Key** — the AirOps API key you copied in step 1
      - Click **Save**.

      **In production**

      Each user adds their own account through the authorization link: they enter their credentials on the page it opens.

      **From your backend, if your app already has the credentials**

      For example, when users enter them on a settings page in your app:

        **Node.js**

        ```typescript
        import { ConnectorStatus } from '@scalekit-sdk/node'

        // Never hard-code API keys — read from secure storage or user input
        const airopsApiKey = getUserAiropsKey(); // retrieve from your secure store

        const authorizationDetails = {
          details: {
            case: 'staticAuth',
            value: { details: { api_key: airopsApiKey } },
          },
        };

        let { connectedAccount } = await scalekit.actions.upsertConnectedAccount({
          connectionName: 'airopsmcp',
          identifier: 'user_123',
          authorizationDetails,
        });

        // Make sure the account is ACTIVE before the first tool call.
        if (connectedAccount?.status !== ConnectorStatus.ACTIVE) {
          ({ connectedAccount } = await scalekit.actions.upsertConnectedAccount({
            connectionName: 'airopsmcp',
            identifier: 'user_123',
            authorizationDetails,
          }));
        }
        ```

        **Python**

        ```python
        # Never hard-code API keys — read from secure storage or user input
        airops_api_key = get_user_airops_key()  # retrieve from your secure store

        authorization_details = {"static_auth": {"api_key": airops_api_key}}

        response = scalekit_client.actions.upsert_connected_account(
            connection_name="airopsmcp",
            identifier="user_123",
            authorization_details=authorization_details,
        )

        # Make sure the account is ACTIVE before the first tool call.
        if response.connected_account.status != "ACTIVE":
            response = scalekit_client.actions.upsert_connected_account(
                connection_name="airopsmcp",
                identifier="user_123",
                authorization_details=authorization_details,
            )
        ```

      > tip: Production usage
      >
      > In production, call `upsert_connected_account` when a user connects their AirOps account — for example, on a settings page in your app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'airopsmcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Airops MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'airopsmcp_list_aeo_page_content_updates',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "airopsmcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Airops MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="airopsmcp_list_aeo_page_content_updates",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user opens the link once and enters their Airops MCP server credentials there. If your app already has a user's credentials, add the account from your backend instead, as the console steps above show. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'airopsmcp_analytics_chart',
  toolInput: {
    brand_kit_id: 1,
    metrics: [],
  },
  connector: 'airopsmcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="airopsmcp_analytics_chart",
    tool_input={
        "brand_kit_id": 1,
        "metrics": [],
    },
    connection_name="airopsmcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `airopsmcp_analytics_chart`

Analytics Chart · Read-only

Query analytics data and display it as an interactive chart. Returns data with a UI reference for visualization.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to query analytics for
- `metrics` (`array`, required): Metrics to calculate and display (e.g., citation_rate, mention_rate, share_of_voice).
- `chart_type` (`string`, optional): Type of chart to render. Line for time series, bar for comparisons, pie for proportions, area for comparison and visualizing totals with filled area under the curve. Default: line. One of: `line`, `bar`, `pie`, `area`.
- `countries` (`array`, optional): Filter by country codes (ISO 3166-1 alpha-2)
- `dimensions` (`array`, optional): Dimensions to group by (max 3).
- `end_date` (`string`, optional): End date (YYYY-MM-DD). Defaults to yesterday. Must be before today because today's data may still be processing and is incomplete — yesterday is used to ensure robust, complete data. Leave blank unless a specific date is requested.
- `grain` (`string`, optional): Time granularity for aggregation. Default: total. One of: `daily`, `weekly`, `monthly`, `total`.
- `personas` (`array`, optional): Filter by persona IDs
- `providers` (`array`, optional): Filter by AI providers
- `start_date` (`string`, optional): Start date (YYYY-MM-DD). Default: 7 days ago
- `tags` (`array`, optional): Filter by tag IDs. Returns data only for prompts tagged with any of the given tags.
- `themes` (`array`, optional): Filter sentiment data by theme IDs. Only applies to sentiment_score metric.
- `title` (`string`, optional): Optional chart title. If not provided, a title will be auto-generated.
- `topics` (`array`, optional): Filter by topic IDs

Example input: `{"brand_kit_id":1,"metrics":[]}`

### `airopsmcp_get_aeo_citation`

Get Aeo Citation · Read-only

Get prompts citing a specific URL. The 'id' parameter is the URL to look up.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `id` (`string`, required): Resource ID
- `countries` (`array`, optional): Filter metrics by country codes
- `end_date` (`string`, optional): End date for metrics (ISO 8601). Defaults to today.
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `personas` (`array`, optional): Filter metrics by persona IDs
- `providers` (`array`, optional): Filter metrics by AI providers
- `start_date` (`string`, optional): Start date for metrics (ISO 8601). Defaults to 1 month ago.

Example input: `{"brand_kit_id":1,"id":"<id>"}`

### `airopsmcp_get_aeo_page_content_update`

Get Aeo Page Content Update · Read-only

Get a specific page content update by ID. Track content updates.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`integer`, required): Resource ID
- `brand_kit_id` (`integer`, optional): Optional Brand Kit ID to filter content updates by
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `workspace_id` (`integer`, optional): ID of the workspace to retrieve results from. If not provided, returns results from all workspaces the user belongs to.

Example input: `{"id":1}`

### `airopsmcp_get_aeo_prompt_assignments_status`

Get Aeo Prompt Assignments Status · Read-only

Inspect the current prompt-assignment draft state for a Brand Kit without modifying
anything. Read-only.

This is the authoritative source for workspace estimated-answers numbers (live
and draft). Call it whenever you need them — never compute or guess them yourself.
In particular:
- At the start of a session, to detect a pre-existing draft from unsaved UI edits.
- Immediately after `commit_aeo_prompt_assignments`, to read the new live
  `estimated_answers` — the commit tool does not return them.
- Before staging more changes via `update_aeo_prompt_assignments`, to compare
  against `max_answers`.

Returns:
- `has_draft`: whether a draft session exists for this brand kit.
- `has_changes`: whether the draft has uncommitted edits relative to live (null if
  no draft).
- `draft_id`: the draft's ID (null if no draft).
- `live_estimated_answers`: current workspace estimated answers/month based on live
  assignments.
- `draft_estimated_answers`: what the workspace estimated answers/month would be if
  the draft were committed now (null if no draft).
- `max_answers`: the workspace's effective answers limit.
- `limit_exceeded`: whether committing the draft now would exceed the limit (false
  if no draft).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to inspect.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_get_answer`

Get Answer · Read-only

Get a specific AI answer by ID with full text content.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`integer`, required): Resource ID
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.

Example input: `{"id":1}`

### `airopsmcp_get_brand_kit`

Get Brand Kit · Read-only

Fetch a Brand Kit's brand identity (writing_tone, writing_persona) and associated entities (product lines, audiences, content types, regions, writing rules, cus...

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`integer`, required): Resource ID
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `version` (`string`, optional): Brand Kit version to read from (`active` or `draft`). Defaults to `active`. One of: `active`, `draft`.
- `workspace_id` (`integer`, optional): ID of the workspace to retrieve brand kits from. If not provided, returns brand kits from all workspaces the user belongs to.

Example input: `{"id":1}`

### `airopsmcp_get_campaign`

Get Campaign · Read-only

Get a campaign by ID, including action grid IDs needed to inspect or update its grid. Campaigns are Plays that coordinate strategy playbooks, action grids, and related opportunities for improving AEO performance.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`integer`, required): Resource ID
- `fields` (`array`, optional): Select specific fields to return.

**Available fields:**
- **id**: Campaign ID
- **name**: Campaign name
- **status**: Campaign status
- **resource_type**: Resource type this campaign works on
- **brand_kit_id**: Brand Kit this campaign belongs to
- **workspace_id**: Workspace this campaign belongs to
- **strategy_playbook_id**: Strategy playbook generated for this campaign
- **opportunity_schema_version**: Persisted Opportunity schema version
- **created_at**: When the campaign was created
- **updated_at**: When the campaign was last updated
- **action_grid_id**: Action grid ID to use with grid tools
- **action_grid_table_id**: Action grid table ID to use with grid tools
- **custom_instructions**: Campaign-specific guidance for working related opportunities
- `filters` (`array`, optional): Filter results. Nested fields (e.g. `writing_rules.text`) filter within an included association and require that association in `includes`.

**Available fields:**
- **name** (EQUALS, CONTAINS): Filter by campaign name
- **status** (EQUALS, IN): Filter by campaign status
- **workspace_id** (EQ, IN): Filter by workspace ID
- **brand_kit_id** (EQ, IN): Filter by Brand Kit ID
- **resource_type** (EQUALS, IN): Filter by campaign resource type

Example input: `{"id":1}`

### `airopsmcp_get_grid_row_execution_status`

Get Grid Row Execution Status · Read-only

Check the status of grid row executions. Returns the overall status and per-column detail for each execution.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `grid_id` (`integer`, required): The ID of the grid containing the executions.
- `row_execution_ids` (`array`, required): IDs of the row executions to check (max 50).

Example input: `{"grid_id":1,"row_execution_ids":[]}`

### `airopsmcp_get_insights_settings`

Get Insights Settings · Read-only

Get AEO insights configuration for a Brand Kit, this includes the relevant information to use any AEO and analytics tools.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`integer`, required): Resource ID
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `workspace_id` (`integer`, optional): ID of the workspace to retrieve results from. If not provided, returns results from all workspaces the user belongs to.

Example input: `{"id":1}`

### `airopsmcp_get_page_details`

Get Page Details · Read-only

Get AEO metrics for a specific web page. Page details include citation share, citation rate, unique cited questions count, and Google Search Console metrics (cl...

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `id` (`integer`, required): Resource ID
- `end_date` (`string`, optional): End date for metrics period (YYYY-MM-DD format). Defaults to current date.
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `start_date` (`string`, optional): Start date for metrics period (YYYY-MM-DD format). Defaults to 1 month ago.

Example input: `{"id":1}`

### `airopsmcp_get_page_prompts`

Get Page Prompts · Read-only

Get prompts citing a specific web page. Returns AI prompts that cite the page along with citation metrics (citation_rate, mention_rate) and trends.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): ID of the brand kit
- `web_page_id` (`integer`, required): ID of the web page to get citing prompts for
- `countries` (`array`, optional): Country codes to filter by (ISO 3166-1 alpha-2 format).
- `end_date` (`string`, optional): End date for analysis period (ISO 8601 format, defaults to today)
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `personas` (`array`, optional): Filter by persona IDs
- `providers` (`array`, optional): Filter by AI providers (e.g., chat_gpt, gemini, perplexity, google_ai_mode, google_ai_overview, claude, grok, microsoft_copilot)
- `start_date` (`string`, optional): Start date for analysis period (ISO 8601 format, defaults to 1 month ago)
- `topic_ids` (`array`, optional): Filter by topic IDs

Example input: `{"brand_kit_id":1,"web_page_id":1}`

### `airopsmcp_get_prompt_answers`

Get Prompt Answers · Read-only

Get AI answers for a specific prompt/question. Prompt answers are the AI answers for a specific question/prompt asked to multiple AI providers and the answers a...

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `prompt_id` (`integer`, required): ID of the question/prompt to get answers for
- `countries` (`string`, optional): Country codes to filter by (ISO 3166-1 alpha-2 format).
- `end_date` (`string`, optional): End date for analysis period (ISO 8601 format, defaults to today)
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `personas` (`string`, optional): Comma-separated persona IDs to filter by.Use "default" for the default persona.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `created_at`, `-created_at`. Default: `-created_at`.
- `start_date` (`string`, optional): Start date for analysis period (ISO 8601 format, defaults to 1 month ago)

Example input: `{"prompt_id":1}`

### `airopsmcp_get_report`

Get Report · Read-only

Get a specific report by ID with its module configurations. Reports are saved analytics views for a Brand Kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `id` (`integer`, required): Resource ID
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.

Example input: `{"brand_kit_id":1,"id":1}`

### `airopsmcp_get_sentiment_theme_answers`

Get Sentiment Theme Answers · Read-only

Get individual AI answers with sentiment details for a specific theme. Returns answer text, sentiment (positive/neutral/negative), confidence score, and provide...

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `sentiment_theme_id` (`integer`, required): The sentiment theme ID to drill into. Use query_analytics with dimensions=[theme] to discover available theme IDs first.
- `countries` (`array`, optional): Filter by country codes (ISO 3166-1 alpha-2)
- `end_date` (`string`, optional): End date (YYYY-MM-DD). Defaults to yesterday. Must be before today.
- `page` (`integer`, optional): Page number. Default: 1
- `per_page` (`integer`, optional): Results per page (1-50). Default: 10
- `personas` (`array`, optional): Filter by persona IDs
- `providers` (`array`, optional): Filter by AI providers
- `start_date` (`string`, optional): Start date (YYYY-MM-DD). Default: 30 days ago
- `topics` (`array`, optional): Filter by topic IDs

Example input: `{"brand_kit_id":1,"sentiment_theme_id":1}`

### `airopsmcp_knowledge_base_get_document`

Get Knowledge Base Document · Read-only

Read the full reconstructed text content of a Knowledge Base document end-to-end —
the loader-extracted text from every chunk concatenated in `position` order.

Use when chunked search results aren't enough: summarizing a whole document,
answering questions across an entire report, or reading back a doc before
delete-and-recreate. For finding specific passages, prefer `search_knowledge_base`.

Returns up to `max_chars` characters starting at `offset` (defaults to 0 and
200000). When the document is larger than the slice, the response
includes `next_offset` (the value to pass on the next call to continue reading);
when fully read, `next_offset` is `null`.

For documents still indexing (`status: pending`) or in error (`status: error`),
content may be empty — check `status` first.

Content is reconstructed by joining chunks; minor overlap or duplication between
adjacent chunks is possible depending on the original loader's chunking strategy.
For the original source file, use the existing download path outside MCP.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `document_id` (`integer`, required): The ID of the document to read.
- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base the document belongs to.
- `max_chars` (`integer`, optional): Maximum characters to return in this call (default 200000, cap 500000). For larger documents, paginate via `next_offset`.
- `offset` (`integer`, optional): Character offset to start reading from (default 0). Use the `next_offset` from a previous call to paginate.

Example input: `{"document_id":1,"knowledge_base_id":1}`

### `airopsmcp_knowledge_base_get_status`

Get Knowledge Base Status · Read-only

Get the indexing status of a Knowledge Base and its documents.
Returns a Knowledge Base–level rollup (status, pending and total document counts) plus a
paginated list of per-document statuses. Use this to monitor indexing after writes — only
documents with status "ready" are returned by search_knowledge_base. Pass the returned
`cursor` back to fetch the next page; pass `document_ids` to filter to specific documents.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base to inspect.
- `cursor` (`integer`, optional): Optional. Cursor token returned by a previous call. Pass it back to fetch the next page.
- `document_ids` (`array`, optional): Optional. Filter the documents array to only the listed document IDs.
- `items` (`integer`, optional): Optional. Page size for the documents array (1–100, default 25). Default: `25`.

Example input: `{"knowledge_base_id":1}`

### `airopsmcp_list_aeo_citations`

List Aeo Citations · Read-only

List citations (URLs) with metrics for a Brand Kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `countries` (`array`, optional): Filter metrics by country codes
- `end_date` (`string`, optional): End date for metrics (ISO 8601). Defaults to today.
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `personas` (`array`, optional): Filter metrics by persona IDs
- `providers` (`array`, optional): Filter metrics by AI providers
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `citation_count`, `-citation_count`, `citation_share`, `-citation_share`, `citation_rate`, `-citation_rate`, `influence_score`, `-influence_score`.
- `start_date` (`string`, optional): Start date for metrics (ISO 8601). Defaults to 1 month ago.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_aeo_domains`

List Aeo Domains · Read-only

List domains cited in AI answers for a Brand Kit. Cited domains aggregated by domain with citation metrics.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `countries` (`array`, optional): Filter metrics by country codes
- `end_date` (`string`, optional): End date for metrics (ISO 8601). Defaults to today.
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `personas` (`array`, optional): Filter metrics by persona IDs
- `providers` (`array`, optional): Filter metrics by AI providers
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `citation_count`, `-citation_count`, `citation_share`, `-citation_share`, `citation_rate`, `-citation_rate`.
- `start_date` (`string`, optional): Start date for metrics (ISO 8601). Defaults to 1 month ago.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_aeo_page_content_updates`

List Aeo Page Content Updates · Read-only

List page content updates for a workspace. Track content updates.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, optional): Optional Brand Kit ID to filter content updates by
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `created_at`, `-created_at`, `updated_at`, `-updated_at`, `url`, `-url`. Default: `-created_at`.
- `workspace_id` (`integer`, optional): ID of the workspace to retrieve results from. If not provided, returns results from all workspaces the user belongs to.

Example input: `{}`

### `airopsmcp_list_aeo_prompts`

List Aeo Prompts · Read-only

List AEO prompts for a specific Brand Kit. Questions are the AI prompts that can be asked about a brand.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `countries` (`array`, optional): Filter metrics by country codes
- `end_date` (`string`, optional): End date for metrics (ISO 8601). Defaults to today.
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `personas` (`array`, optional): Filter metrics by persona IDs
- `providers` (`array`, optional): Filter metrics by AI providers
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `text`, `-text`, `created_at`, `-created_at`, `prompt_volume`, `-prompt_volume`, `mention_rate`, `-mention_rate`, `citation_rate`, `-citation_rate`.
- `start_date` (`string`, optional): Start date for metrics (ISO 8601). Defaults to 1 month ago.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_answers`

List Answers · Read-only

List AI answers for a brand kit with filters for date range, providers, countries, prompt_id, and brand_mentioned. Individual AI answers with their cited URLs and brand/competitor mentions.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `brand_mentioned` (`boolean`, optional): When set, filter to answers where the brand was (or was not) mentioned.
- `countries` (`array`, optional): Filter by ISO alpha-2 country codes.
- `end_date` (`string`, optional): End date (ISO 8601) on aeo_analyses.created_at. Defaults to today.
- `fields` (`array`, optional): Select additional fields to return.

**Optional fields:**
- **id**: Answer ID
- **date**: Analysis date (YYYY-MM-DD)
- **text**: Answer text. Truncated to 200 chars with ellipsis on list; full on show.
- **prompt**: Prompt (question) text
- **citations**: URLs cited by the answer (deduped)
- **mentions**: Brand names mentioned in the answer (self brand + competitors)
- **persona**: Persona name or "default"
- **provider**: AI provider
- **country**: ISO alpha-2 country code
- **web_search_triggered**: Whether the AI performed a web search for this answer
- **brand_mentioned**: Whether the brand was mentioned in this answer
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `prompt_id` (`integer`, optional): Filter answers by a single prompt (question) ID.
- `providers` (`array`, optional): Filter by AI providers.
- `start_date` (`string`, optional): Start date (ISO 8601) on aeo_analyses.created_at. Defaults to 30 days ago.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_brand_kits`

List Brand Kits · Read-only

List all Brand Kits the user has access to. Returns `brand_management_enabled` and `aeo_enabled` flags for each brand kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `brand_name`, `-brand_name`, `created_at`, `-created_at`.
- `version` (`string`, optional): Brand Kit version to read from (`active` or `draft`). Defaults to `active`. One of: `active`, `draft`.
- `workspace_id` (`integer`, optional): ID of the workspace to retrieve results from. If not provided, returns results from all workspaces the user belongs to.

Example input: `{}`

### `airopsmcp_list_campaigns`

List Campaigns · Read-only

List campaigns the authenticated user has access to. Use get_campaign to retrieve action grid IDs and custom instructions for a campaign. Campaigns are Plays that coordinate strategy playbooks, action grids, and related opportunities for improving AEO performance.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, optional): Select additional fields to return.

Default fields (id, name, status, resource_type, brand_kit_id, workspace_id, strategy_playbook_id, opportunity_schema_version, created_at, updated_at) are always included.

**Optional fields:**
- **action_grid_id**: Action grid ID to use with grid tools
- **action_grid_table_id**: Action grid table ID to use with grid tools
- **custom_instructions**: Campaign-specific guidance for working related opportunities
- `filters` (`array`, optional): Filter results. Nested fields (e.g. `writing_rules.text`) filter within an included association and require that association in `includes`.

**Available fields:**
- **name** (EQUALS, CONTAINS): Filter by campaign name
- **status** (EQUALS, IN): Filter by campaign status
- **workspace_id** (EQ, IN): Filter by workspace ID
- **brand_kit_id** (EQ, IN): Filter by Brand Kit ID
- **resource_type** (EQUALS, IN): Filter by campaign resource type
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending.

**Available sort fields:**
- **name/-name**: Sort by campaign name
- **created_at/-created_at**: Sort by creation date
- **updated_at/-updated_at**: Sort by last updated date. One of: `name`, `-name`, `created_at`, `-created_at`, `updated_at`, `-updated_at`. Default: `-updated_at`.

Example input: `{}`

### `airopsmcp_list_grids`

List Grids · Read-only

List grids the authenticated user has access to. Use includes=[\"grid_tables.grid_columns\"] to get table and column structure needed for read_grid and write_gr...

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `name`, `-name`, `updated_at`, `-updated_at`, `created_at`, `-created_at`. Default: `-updated_at`.

Example input: `{}`

### `airopsmcp_list_knowledge_bases`

List Knowledge Bases · Read-only

List all Knowledge Bases the authenticated user has access to. Knowledge Bases store documents for semantic search.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `name`, `-name`, `created_at`, `-created_at`.

Example input: `{}`

### `airopsmcp_list_opportunities`

List Opportunities · Read-only

List opportunities for a campaign. V1 responses include matching opportunity items; v2 responses include parent review state, the target page, and ordered contexts.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `play_id` (`integer`, required): Campaign ID.
- `limit` (`integer`, optional): Maximum number of opportunities to return. Defaults to 30.
- `status` (`array`, optional): Optional item statuses for v1 or parent statuses for v2. Defaults to all.

Example input: `{"play_id":1}`

### `airopsmcp_list_pages`

List Pages · Read-only

List web pages with daily metrics (AEO citations, GSC clicks/impressions, GA4 traffic) for a brand kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): ID of the brand kit to retrieve web page metrics for
- `end_date` (`string`, optional): End date for analysis period (ISO 8601 format, defaults to today)
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `smart_filter` (`string`, optional): Apply a predefined filter preset. One of: `almost_page_one`, `losing_clicks`, `rankings_slipping`, `losing_ai_visibility`, `citation_rate_decline`, `stale_pages`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `url`, `-url`, `folder_name`, `-folder_name`, `citations_count`, `-citations_count`, `citations_count_diff`, `-citations_count_diff`, `citation_rate`, `-citation_rate`, `citation_rate_diff`, `-citation_rate_diff`, `prompts_count`, `-prompts_count`, `prompts_count_diff`, `-prompts_count_diff`, `clicks`, `-clicks`, `clicks_diff`, `-clicks_diff`, `impressions`, `-impressions`, `impressions_diff`, `-impressions_diff`, `ctr`, `-ctr`, `ctr_diff`, `-ctr_diff`, `position`, `-position`, `position_diff`, `-position_diff`, `traffic`, `-traffic`, `traffic_diff`, `-traffic_diff`, `sessions`, `-sessions`, `sessions_diff`, `-sessions_diff`, `engagement`, `-engagement`, `engagement_diff`, `-engagement_diff`, `average_session_engagement`, `-average_session_engagement`, `average_session_engagement_diff`, `-average_session_engagement_diff`. Default: `-citations_count`.
- `start_date` (`string`, optional): Start date for analysis period (ISO 8601 format, defaults to 1 month ago)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_personas`

List Personas · Read-only

List personas for a specific Brand Kit. Personas are the characters that can be used to ask questions about a brand.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `title`, `-title`, `created_at`, `-created_at`.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_reports`

List Reports · Read-only

List saved analytics reports for a specific Brand Kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `includes` (`array`, optional): Related resources to include in the response, as a list of relationship names.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `name`, `-name`, `created_at`, `-created_at`, `updated_at`, `-updated_at`.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_tags`

List Tags · Read-only

List tags for a specific Brand Kit. Tags are user-defined labels applied to prompts within a Brand Kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `name`, `-name`, `created_at`, `-created_at`.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_topics`

List Topics · Read-only

List topics for a specific Brand Kit. Topics are the categories of questions that can be asked about a Brand Kit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The ID of the Brand Kit
- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `name`, `-name`, `created_at`, `-created_at`.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_list_workspaces`

List Workspaces · Read-only

List all workspaces the authenticated user has access to. Workspaces are the top-level container for all resources in the AirOps platform.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`array`, optional): Specify which fields to return in the response, as a list of field names.
- `filters` (`array`, optional): Filter results by column values. Each filter requires column_id, operator, and value.
- `page` (`integer`, optional): Page number. Default: `1`.
- `per_page` (`integer`, optional): Items per page. Default: `25`.
- `sort` (`string`, optional): Sort field. Prefix with - for descending. One of: `name`, `-name`, `created_at`, `-created_at`.

Example input: `{}`

### `airopsmcp_query_analytics`

Query Analytics · Read-only

Query analytics data for a Brand Kit with flexible metrics, dimensions, and filters.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to query analytics for
- `metrics` (`array`, required): Metrics to calculate and display (e.g., citation_rate, mention_rate, share_of_voice).
- `brand_mentioned` (`string`, optional): Filter by prompt type. Options: category (generic prompts - recommended for accurate visibility metrics), brand (prompts mentioning the brand). Defaults to category if not specified. One of: `brand`, `category`.
- `countries` (`array`, optional): Filter by country codes (ISO 3166-1 alpha-2)
- `dimensions` (`array`, optional): Dimensions to group by (max 3).
- `end_date` (`string`, optional): End date (YYYY-MM-DD). Defaults to yesterday. Must be before today because today's data may still be processing and is incomplete — yesterday is used to ensure robust, complete data. Leave blank unless a specific date is requested.
- `grain` (`string`, optional): Time granularity for aggregation. Default: total. One of: `daily`, `weekly`, `monthly`, `total`.
- `limit` (`integer`, optional): Maximum rows to return (1-1000). Default: 100
- `order_by` (`string`, optional): Custom sort order (e.g., "citation_count DESC")
- `personas` (`array`, optional): Filter by persona IDs
- `providers` (`array`, optional): Filter by AI providers
- `start_date` (`string`, optional): Start date (YYYY-MM-DD). Default: 7 days ago
- `tags` (`array`, optional): Filter by tag IDs. Returns data only for prompts tagged with any of the given tags.
- `themes` (`array`, optional): Filter sentiment data by theme IDs. Only applies to sentiment_score metric.
- `topics` (`array`, optional): Filter by topic IDs

Example input: `{"brand_kit_id":1,"metrics":[]}`

### `airopsmcp_read_grid`

Read Grid · Read-only

Read rows from a grid table. Returns rows as objects with column titles as keys.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `grid_id` (`integer`, required): The ID of the grid to read from.
- `grid_table_id` (`integer`, required): The ID of the grid table (sheet) to read.
- `column_ids` (`array`, optional): Optional list of column IDs to include. If omitted, all columns are returned.
- `filters` (`array`, optional): Optional filters to apply.
- `limit` (`integer`, optional): Number of rows to return (1-100, default 50).
- `offset` (`integer`, optional): Row offset for pagination (default: 0). Use with limit to page through results.
- `truncate` (`integer`, optional): Maximum number of characters per cell value. 0 means no truncation (default).

Example input: `{"grid_id":1,"grid_table_id":1}`

### `airopsmcp_read_grid_cell`

Read Grid Cell · Read-only

Read the full value of a single grid cell. read_grid() truncates cell values; use this tool when you need the complete content of one cell (e.g. a full article, brief, or HTML payload). Identify the cell via the row __id and column id returned by read_grid().

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `column_id` (`integer`, required): The grid column ID (from the columns array returned by read_grid).
- `grid_id` (`integer`, required): The ID of the grid.
- `grid_table_id` (`integer`, required): The ID of the grid table (sheet).
- `row_id` (`integer`, required): The row ID (the __id field returned by read_grid).

Example input: `{"column_id":1,"grid_id":1,"grid_table_id":1,"row_id":1}`

### `airopsmcp_search_knowledge_base`

Search Knowledge Base · Read-only

Search a Knowledge Base for relevant content using semantic similarity. Use list_knowledge_bases() first to find available Knowledge Bases and their IDs.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base to search.
- `query` (`string`, required): The search query. Use natural language to describe what you are looking for.
- `top_k` (`integer`, optional): Number of results to return (1-20, default 5).

Example input: `{"knowledge_base_id":1,"query":"<query>"}`

### `airopsmcp_suggest_brand_kit_edits`

Suggest Brand Kit Edits · Read-only

Suggest edits to a Brand Kit's fields without applying them. Returns a comparison of current vs suggested values for user review.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `suggestions` (`object`, required): Field name to suggested value pairs. Valid fields depend on entity_type. Use arrays for multi_select fields (e.g. product_line_ids).
- `entity_type` (`string`, optional): Which entity to suggest edits for. Defaults to brand_kit. One of: `brand_kit`, `audience`, `content_type`, `product_line`, `region`, `writing_rule`, `competitor`, `content_sample`, `custom_variable`, `logo_variant`, `logo_size`, `font`, `type_size`, `palette`.
- `id` (`integer`, optional): Record ID of the existing record to update. Omit to suggest creating a new record.
- `title` (`string`, optional): Optional heading to display in the review UI

Example input: `{"brand_kit_id":1,"suggestions":{}}`

### `airopsmcp_accept_opportunity`

Accept Opportunity · Write

Accept pending opportunities for a campaign and add them to the campaign action grid. For v2 campaigns, pass opportunity_ids; acceptance uses the original rationale and every opportunity context. Before calling this tool, summarize the opportunities or opportunity items that will be accepted and get explicit user confirmation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `play_id` (`integer`, required): Campaign ID.
- `opportunity_ids` (`array`, optional): Opportunity IDs to accept. Required for v2; for v1 this accepts every pending item in each opportunity.
- `opportunity_item_ids` (`array`, optional): V1-only opportunity item IDs to accept. Use this for item-level acceptance.

Example input: `{"play_id":1}`

### `airopsmcp_add_aeo_region`

Add Aeo Region · Write

Add a region (ISO alpha-2 country code) to a Brand Kit's configured AEO regions.

Why this tool exists: AEO prompts and prompt-assignments can only reference regions
that are configured on the Brand Kit. When `create_aeo_prompt` or
`update_aeo_prompt_assignments` returns a `validation_error` mentioning that the
country code is "not configured on this brand kit", call this tool to add the
missing region first, then retry.

Behavior:
- Re-adding an already-configured region is a no-op (idempotent) and returns success.
- The country code must be a valid ISO 3166-1 alpha-2 code supported by the platform
  (e.g. US, GB, DE, FR, JP, BR, IN, ...).
- Optional `add_to_all_prompts` (default `false`): when `true`, the new region is
  also assigned to every existing live prompt in the Brand Kit. This may incur
  additional answer credits/month; if the workspace's estimated answers limit would
  be exceeded, the call is rejected with a `validation_error` containing
  `estimated_answers` and `max_answers` in `details`. Defaults to `false` so the
  agent does not silently incur credits.

IMPORTANT: Always show the user the region you plan to add (and whether
`add_to_all_prompts` is on) and get explicit confirmation before calling. Adding a
region cannot be undone via this tool.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to add the region to.
- `country_code` (`string`, required): ISO 3166-1 alpha-2 country code (e.g. "US", "GB", "JP"). Must be one of the platform-supported codes.
- `add_to_all_prompts` (`boolean`, optional): If true, also assigns this region to every existing live prompt in the Brand Kit (subject to the workspace answers limit). Defaults to false.

Example input: `{"brand_kit_id":1,"country_code":"US"}`

### `airopsmcp_add_grid_column`

Add Grid Column · Write

Add a new column to a grid table. Use this before write_grid when you need to write to a column that does not exist yet.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `data_type` (`string`, required): The data type for the column. One of: `text`, `number`, `datetime`, `markdown`, `url`, `html`, `image_from_url`, `json`, `single_select`.
- `grid_id` (`integer`, required): The ID of the grid.
- `grid_table_id` (`integer`, required): The ID of the grid table (sheet).
- `title` (`string`, required): The column title.
- `position` (`integer`, optional): Optional column position. If omitted, appended at the end.

Example input: `{"data_type":"text","grid_id":1,"grid_table_id":1,"title":"Enterprise CTO"}`

### `airopsmcp_create_aeo_persona`

Create Aeo Persona · Write

Create a new AEO persona on a Brand Kit. Personas represent the characters used to
simulate AI-search queries when measuring AI visibility, citations, and mentions.

Behavior:
- `title` must be unique within the Brand Kit (max 200 chars) and `description` is
  required (max 5000 chars).
- Optional `add_to_all_prompts` (default `false`): when `true`, the new persona is
  also assigned to every existing live prompt in the Brand Kit. This may incur
  additional answer credits/month; if the workspace's estimated answers limit would
  be exceeded, the call is rejected with a `validation_error` containing
  `estimated_answers` and `max_answers` in `details`. Defaults to `false` so the
  agent does not silently incur credits.

Writing guidance: avoid including specific brand names in the persona's title or
description — the LLM may then mention the brand in its answer, which the analyzer
will count as a mention and skew the data.

IMPORTANT: Always show the user the persona you plan to create (title, description,
and whether `add_to_all_prompts` is on) and get explicit confirmation before
calling. You can verify the persona was created by calling `list_personas` sorted
by `created_at` descending.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to add the persona to.
- `description` (`string`, required): A description of the persona's perspective and concerns (max 5000 characters). Avoid including specific brand names.
- `title` (`string`, required): The persona title (max 200 characters). Must be unique within the Brand Kit. Example: "Enterprise CTO".
- `add_to_all_prompts` (`boolean`, optional): If true, also assigns this persona to every existing live prompt in the Brand Kit (subject to the workspace answers limit). Defaults to false.

Example input: `{"brand_kit_id":1,"description":"<description>","title":"Enterprise CTO"}`

### `airopsmcp_create_aeo_prompt`

Create Aeo Prompt · Write

Create a new AEO prompt for a Brand Kit. Prompts are questions that can be asked about a brand to AI search engines, used to track AI visibility and citations.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to add the prompt to
- `text` (`string`, required): The prompt text (max 512 characters). Must be unique within the Brand Kit.
- `topic_id` (`integer`, required): Topic ID to associate with the prompt. Must belong to the same Brand Kit. Use `list_topics` to discover available topics and either suggest one or ask the user to choose.
- `countries` (`array`, optional): ISO alpha-2 country codes to assign (e.g., ["US", "GB"]). Must be configured on the Brand Kit.
- `persona_ids` (`array`, optional): Persona IDs to assign. Must belong to the same Brand Kit. Use `list_personas` to discover available personas.
- `platforms` (`array`, optional): Platforms to assign. Valid values: chat_gpt, gemini, perplexity, google_ai_mode, google_ai_overview.

Example input: `{"brand_kit_id":1,"text":"<text>","topic_id":1}`

### `airopsmcp_create_aeo_tag`

Create Aeo Tag · Write

Create a new AEO tag on a Brand Kit. Tags are user-defined labels that can be applied
to prompts via `bulk_update_aeo_prompt_tags`.

Behavior:
- `name` must be unique within the Brand Kit (case-insensitive). The model enforces
  this via a unique index on (brand_kit_id, lower(name)).
- `color` is optional. If omitted, a color is auto-assigned from the platform
  palette. Valid colors: light_grey, grey, green, teal, blue, purple, lilac, pink, red, coral, orange.
- This tool does NOT apply the new tag to any prompts. Use
  `bulk_update_aeo_prompt_tags` with `operation: 'add'` to assign it afterward.

IMPORTANT: Always show the user the tag you plan to create (name and color) and get
explicit confirmation before calling. You can verify the tag was created by calling
`list_tags` filtered by name.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to add the tag to.
- `name` (`string`, required): The tag name. Must be unique within the Brand Kit (case-insensitive).
- `color` (`string`, optional): Optional. Named color from the platform palette. If omitted, a color is auto-assigned. One of: `light_grey`, `grey`, `green`, `teal`, `blue`, `purple`, `lilac`, `pink`, `red`, `coral`, `orange`.

Example input: `{"brand_kit_id":1,"name":"Hero sections"}`

### `airopsmcp_create_brand_kit_direct_upload`

Create Brand Kit Direct Upload · Write

Initiate a direct file upload for use with Brand Kit visual tools.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID this file is intended for
- `byte_size` (`integer`, required): Size of the file in bytes
- `checksum` (`string`, required): Base64-encoded MD5 digest of the file contents
- `content_type` (`string`, required): MIME type of the file. One of: `image/png`, `image/jpeg`, `image/svg+xml`, `image/gif`, `image/webp`, `font/ttf`, `font/otf`, `font/woff`, `font/woff2`, `application/vnd.ms-fontobject`.
- `filename` (`string`, required): The filename including extension, e.g. "logo.png" or "brand-font.woff2"

Example input: `{"brand_kit_id":1,"byte_size":1,"checksum":"<checksum>","content_type":"image/png","filename":"logo.png"}`

### `airopsmcp_create_brand_kit_recap_entry`

Create Brand Kit Recap Entry · Write

Record a recap entry summarizing the changes you made to a Brand Kit.

Call this once, near the end of a session that mutated the Brand Kit draft — not for every edit.
Do not call this tool if you made no Brand Kit draft mutations this session (for example,
you only read the Brand Kit, suggested edits the user rejected, or worked on Playbooks,
Campaigns, or Insights). Never create a recap that says nothing changed.
Put the evidence behind the changes in `body_markdown`: verbatim quotes, source URLs, and pages.

Example:
  create_brand_kit_recap_entry(
    brand_kit_id: 123,
    title: "Refreshed tone & voice and added 2 regions",
    body_markdown: "Made the tone more concise per the latest brand guidelines (https://acme.com/brand). Added US East and US West to support the Q3 launch."
  )

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `title` (`string`, required): One-line summary of what changed (max 200 characters)
- `body_markdown` (`string`, optional): Markdown detail with the evidence behind the changes, e.g. quotes, source URLs, pages (max 4000 characters)

Example input: `{"brand_kit_id":1,"title":"Enterprise CTO"}`

### `airopsmcp_create_grid`

Create Grid · Write

Create a new empty, general-purpose grid with the given name. The grid is created with a single empty sheet (zero rows, zero columns).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name for the new grid.
- `workspace_id` (`integer`, optional): Optional workspace ID. Defaults to the user's only workspace when unambiguous.

Example input: `{"name":"Hero sections"}`

### `airopsmcp_create_grid_sheet`

Create Grid Sheet · Write

Create a new sheet (grid table) within an existing grid. The sheet is created with zero rows and zero columns.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `grid_id` (`integer`, required): The ID of the grid to add the sheet to.
- `name` (`string`, required): The name for the new sheet.

Example input: `{"grid_id":1,"name":"Hero sections"}`

### `airopsmcp_create_opportunity`

Create Opportunity · Write

Create a pending opportunity for a campaign. Before calling this tool, summarize the proposed opportunity name, description, and target resources for the user, then get explicit confirmation. In Quill or other OAuth MCP clients, provide play_id from list_campaigns or get_campaign. In playbook sessions, play_id is optional and is derived from the current session.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `description` (`string`, required): Opportunity description.
- `name` (`string`, required): Opportunity name.
- `contexts` (`array`, optional): Ordered supporting resources for v2 campaigns. Rejected for v1 campaigns.
- `items` (`array`, optional): Required for v1 campaigns and rejected for v2 campaigns.
- `play_id` (`integer`, optional): Campaign ID. Required outside playbook sessions.
- `target_page_id` (`integer`, optional): Required for v2 page-refresh campaigns and rejected otherwise.

Example input: `{"description":"<description>","name":"Hero sections"}`

### `airopsmcp_create_page`

Create Page · Write

Add a web page to a Brand Kit's AEO pages. The URL is normalized before the page is
created, and the page is associated with the Brand Kit's configured AEO domain.

The URL must be unique within the Brand Kit.

IMPORTANT: Always show the user the URL and Brand Kit you plan to use and get explicit
confirmation before calling this tool. You can verify the page was created by calling
`list_pages` filtered by URL.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to add the page to.
- `url` (`string`, required): The web page URL. Must be unique within the Brand Kit.

Example input: `{"brand_kit_id":1,"url":"<url>"}`

### `airopsmcp_create_topic`

Create Topic · Write

Create a new AEO topic on a Brand Kit. Topics are categories used to group AEO prompts.

Behavior:
- `name` must be unique within the Brand Kit.
- `color` is optional. If omitted, a color is auto-assigned from the platform palette.
  Valid colors: light_grey, grey, green, teal, blue, purple, lilac, pink, red, coral, orange.
- This tool does NOT create or assign prompts. Use `create_aeo_prompt` with the returned
  topic ID to add prompts to the topic.

IMPORTANT: Always show the user the topic you plan to create (name and color) and get
explicit confirmation before calling. You can verify the topic was created by calling
`list_topics` filtered by name.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to add the topic to.
- `name` (`string`, required): The topic name. Must be unique within the Brand Kit.
- `color` (`string`, optional): Optional. Named color from the platform palette. If omitted, a color is auto-assigned. One of: `light_grey`, `grey`, `green`, `teal`, `blue`, `purple`, `lilac`, `pink`, `red`, `coral`, `orange`.

Example input: `{"brand_kit_id":1,"name":"Hero sections"}`

### `airopsmcp_knowledge_base_add_file`

Add file to Knowledge Base · Write

Step 2 of the two-step file ingestion flow for a Knowledge Base. Consumes a `signed_id`
returned by `knowledge_base_create_direct_upload` (step 1) plus the file's metadata, and
registers the document with the Knowledge Base. Returns immediately with the new
`document_id` in `pending` status — poll `knowledge_base_get_status` to monitor indexing.

Workflow:
1. Call `knowledge_base_create_direct_upload` with the file metadata to get back a
   `signed_id` and a presigned `upload_url`.
2. PUT the file bytes to the `upload_url` with the provided headers.
3. Call this tool with the `signed_id`, the desired `name` (used as the document's display
   name), the `document_type` MIME (must match the supported types), and an optional
   `metadata` hash.

The `metadata` hash, if provided, is a single-level key/value object. It **replaces** any
existing metadata on the document (no merge) and is filterable at search time via
`search_knowledge_base`.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `document_type` (`string`, required): MIME type to index the document as. Typically matches the `content_type` passed to `knowledge_base_create_direct_upload`, but may intentionally differ to select a different loader (e.g. registering a `text/csv` blob as `text/plain` to bypass CSV-specific parsing). One of: `application/pdf`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document`, `application/vnd.openxmlformats-officedocument.presentationml.presentation`, `application/vnd.ms-powerpoint`, `application/rtf`, `application/epub+zip`, `text/plain`, `text/markdown`, `text/csv`, `text/html`, `message/rfc822`, `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml`.
- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base to register the document with.
- `name` (`string`, required): Display name for the document.
- `signed_id` (`string`, required): The `signed_id` returned by `knowledge_base_create_direct_upload`.
- `metadata` (`object`, optional): Optional single-level key/value hash to attach to the document. Filterable via `search_knowledge_base`.

Example input: `{"document_type":"application/pdf","knowledge_base_id":1,"name":"Hero sections","signed_id":"<signed_id>"}`

### `airopsmcp_knowledge_base_add_urls`

Add URLs to Knowledge Base · Write

Bulk-ingest one or more web pages into a Knowledge Base. Each URL becomes a separate
document that fetches and indexes asynchronously. The call returns immediately with the
new document IDs in `pending` state — poll `knowledge_base_get_status` to check progress.

URLs must be absolute and include the `http://` or `https://` scheme (e.g.
`https://example.com/page`). No documents are created if any URL fails validation.

The `metadata` hash, if provided, is applied identically to every document in the batch
(single-level keys only); it replaces (not merges) any existing metadata and is
filterable at search time.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base to add URLs to.
- `urls` (`array`, required): One or more absolute URLs starting with `http://` or `https://` (e.g. `https://example.com/page`). Each URL becomes its own document. Bare hostnames without a scheme are rejected.
- `metadata` (`object`, optional): Optional single-level hash applied identically to every new document. Replaces existing metadata (no merge). Filterable via search_knowledge_base.

Example input: `{"knowledge_base_id":1,"urls":[]}`

### `airopsmcp_knowledge_base_create_direct_upload`

Create Knowledge Base file upload URL · Write

Initiate a direct file upload for a Knowledge Base. Returns a presigned S3 upload URL,
the required upload headers, and a `signed_id` you'll use with `knowledge_base_add_file`
to register the document.

This is the first call in the two-step file ingestion flow — large files (PDFs, DOCX,
MD, HTML, etc.) don't fit through the MCP transport, so the file bytes go directly from
your client to S3.

Workflow:
1. Call this tool with the file metadata (filename, content_type, byte_size, checksum).
   The checksum must be the Base64-encoded MD5 digest of the file contents.
2. PUT the raw file bytes to the returned `upload_url` with **all** the provided
   `upload_headers`. No additional authentication is needed — the URL is a time-limited
   presigned URL.
3. Pass the returned `signed_id` to `knowledge_base_add_file` to register the document.
   Only after step 3 is the file searchable.

Example:
> knowledge_base_create_direct_upload(knowledge_base_id: 1, filename: "report.pdf",
    content_type: "application/pdf", byte_size: 1234567, checksum: "...")
# → { signed_id: "abc...", upload_url: "https://s3...", upload_headers: { ... } }
> knowledge_base_add_file(knowledge_base_id: 1, signed_id: "abc...",
    name: "Q4 Report", document_type: "application/pdf")
# → { document_ids: [42], status: "pending" }

Maximum file size is 256 MB.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `byte_size` (`integer`, required): Size of the file in bytes. Maximum: 256 MB.
- `checksum` (`string`, required): Base64-encoded MD5 digest of the file contents.
- `content_type` (`string`, required): MIME type of the file. One of: `application/pdf`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document`, `application/vnd.openxmlformats-officedocument.presentationml.presentation`, `application/vnd.ms-powerpoint`, `application/rtf`, `application/epub+zip`, `text/plain`, `text/markdown`, `text/csv`, `text/html`, `message/rfc822`, `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `image/svg+xml`.
- `filename` (`string`, required): The filename including extension, e.g. "report.pdf" or "transcript.md".
- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base the file will be ingested into.

Example input: `{"byte_size":1,"checksum":"<checksum>","content_type":"application/pdf","filename":"report.pdf","knowledge_base_id":1}`

### `airopsmcp_knowledge_base_manage`

Manage Knowledge Base · Write

Create or update a Knowledge Base. Omit `knowledge_base_id` to create a new one; pass it
to update an existing one. On create, `name` is required; pass `workspace_id` if you have
access to more than one workspace. On update, only the fields you pass change.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `knowledge_base_id` (`integer`, optional): Omit to create a new Knowledge Base; pass it to update an existing one.
- `name` (`string`, optional): Display name. Required on create; optional on update (omit to leave unchanged).
- `workspace_id` (`integer`, optional): Workspace ID for the new Knowledge Base. Required on create when the caller has access to multiple workspaces; inferred otherwise. Ignored on update (workspace is fixed by the existing Knowledge Base).

Example input: `{}`

### `airopsmcp_knowledge_base_update_document_metadata`

Update Knowledge Base Document Metadata · Write

Replace a document's user-facing metadata in full. Accepts a single-level hash that
**replaces** (not merges) the existing user-facing metadata. To remove a key, pass the
full new hash that omits it. To clear all metadata, pass `{}`. Filterable at search
time via `search_knowledge_base`.

Metadata-only — does not re-embed the document. Loader-derived metadata (scraped page
metadata for URLs, chunker metadata for files) is not touched. Search filters may
take a few seconds to reflect the new values.

The document must be fully indexed (`status: ready`) before calling this tool. If
indexing isn't complete, the tool returns a validation error.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `document_id` (`integer`, required): The ID of the document whose metadata to replace.
- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base the document belongs to.
- `metadata` (`object`, required): Single-level key/value hash. Replaces the existing user-facing metadata in full. Values must be a string, number, or boolean (no nested objects / arrays). String values are capped at 512 characters.

Example input: `{"document_id":1,"knowledge_base_id":1,"metadata":{}}`

### `airopsmcp_manage_brand_kit_visual_use_case`

Manage Brand Kit Visual Use Case · Write

Create or update a Visual Use Case for a Brand Kit.
A Visual Use Case is a named grouping of visual examples that share a common set of instructions
for when and how to apply them (e.g., "Hero sections", "Social posts", "Email headers").

Omit `id` to create a new visual use case; provide `id` to update an existing one.
On update, only provided fields are changed.

This tool edits the Brand Kit draft version only; it does not change the active (live) version.

IMPORTANT: Always show the user exactly which fields will be created or changed and ask for confirmation before calling this tool.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `id` (`integer`, optional): Visual use case ID (omit to create new)
- `instructions` (`string`, optional): Free-form instructions for when and how to apply the visual examples grouped under this visual use case. Pass null to clear.
- `name` (`string`, optional): Name of the visual use case, e.g. "Hero sections" (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_reject_opportunity`

Reject Opportunity · Write

Reject pending opportunities for a campaign. For v2 campaigns, pass opportunity_ids; opportunity item selection and rejection reasons are v1-only. Before calling this tool, summarize the opportunities or opportunity items that will be rejected and get explicit user confirmation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `play_id` (`integer`, required): Campaign ID.
- `opportunity_ids` (`array`, optional): Opportunity IDs to reject. Required for v2; for v1 this rejects every pending item in each opportunity.
- `opportunity_item_ids` (`array`, optional): V1-only opportunity item IDs to reject. Use this for item-level rejection.
- `rejection_reason` (`string`, optional): V1-only optional reason to store on rejected opportunity items.

Example input: `{"play_id":1}`

### `airopsmcp_run_grid_rows`

Run Grid Rows · Write

Trigger execution of one or more grid rows. This runs all workflow (app execution) columns for each specified row in dependency order.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `grid_id` (`integer`, required): The ID of the grid containing the rows to execute.
- `grid_row_ids` (`array`, required): IDs of the grid rows to execute (max 50).
- `grid_table_id` (`integer`, required): The ID of the grid table (sheet) containing the rows.

Example input: `{"grid_id":1,"grid_row_ids":[],"grid_table_id":1}`

### `airopsmcp_track_aeo_page_content_update`

Track Aeo Page Content Update · Write

Track a page content update (publish/refresh) to correlate future analytics with content changes.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `type` (`string`, required): The type of content update to track. One of: `page_published`, `page_refreshed`.
- `url` (`string`, required): The page URL to track (max 512 characters). The URL must belong to a brand_url or domain configured in one of the workspace's Brand Kits (use get_insights_settings to see domains). For example, if the Brand Kit domain is "example.com", URLs like "https://example.com/blog/post" will match.
- `workspace_id` (`integer`, required): The workspace ID to create the content update in

Example input: `{"type":"page_published","url":"<url>","workspace_id":1}`

### `airopsmcp_update_aeo_tag`

Update Aeo Tag · Write

Update an existing AEO tag's name and/or color on a Brand Kit.

Behavior:
- At least one of `name` or `color` must be provided.
- If `name` is provided, it must remain unique within the Brand Kit
  (case-insensitive).
- Valid colors: light_grey, grey, green, teal, blue, purple, lilac, pink, red, coral, orange.
- Existing taggings on prompts are preserved — only the tag's own attributes change.

IMPORTANT: Always show the user the tag (current name) and the change you plan to
apply, and get explicit confirmation before calling. You can verify the change by
calling `list_tags`.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the tag.
- `tag_id` (`integer`, required): The tag ID to update.
- `color` (`string`, optional): Optional. New color from the platform palette. One of: `light_grey`, `grey`, `green`, `teal`, `blue`, `purple`, `lilac`, `pink`, `red`, `coral`, `orange`.
- `name` (`string`, optional): Optional. New name for the tag. Must be unique within the Brand Kit (case-insensitive).

Example input: `{"brand_kit_id":1,"tag_id":1}`

### `airopsmcp_update_topic`

Update Topic · Write

Update an existing AEO topic's name and/or color on a Brand Kit.

Behavior:
- At least one of `name` or `color` must be provided.
- If `name` is provided, it must remain unique within the Brand Kit.
- Valid colors: light_grey, grey, green, teal, blue, purple, lilac, pink, red, coral, orange.
- Existing prompt assignments are preserved. This tool cannot move a topic to another
  Brand Kit.

IMPORTANT: Always show the user the topic (current name) and the change you plan to
apply, and get explicit confirmation before calling. You can verify the change by
calling `list_topics`.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the topic.
- `topic_id` (`integer`, required): The topic ID to update.
- `color` (`string`, optional): Optional. New color from the platform palette. One of: `light_grey`, `grey`, `green`, `teal`, `blue`, `purple`, `lilac`, `pink`, `red`, `coral`, `orange`.
- `name` (`string`, optional): Optional. New name for the topic. Must be unique within the Brand Kit.

Example input: `{"brand_kit_id":1,"topic_id":1}`

### `airopsmcp_write_grid`

Write Grid · Write

Create or update rows in a grid table. When mode is 'create', rows are added as new rows with column titles as keys.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `grid_id` (`integer`, required): The ID of the grid to write to.
- `grid_table_id` (`integer`, required): The ID of the grid table (sheet) to write to.
- `mode` (`string`, required): 'create' to add new rows, 'update' to modify existing rows (requires __id in each row). One of: `create`, `update`.
- `rows` (`array`, required): Array of row objects. Keys are column titles, values are cell values. For update mode, include __id with the row ID.

Example input: `{"grid_id":1,"grid_table_id":1,"mode":"create","rows":[]}`

### `airopsmcp_bulk_update_aeo_prompt_tags`

Bulk Update Aeo Prompt Tags · Destructive

Apply a single tag operation (add or remove) to a batch of AEO prompts in one
Brand Kit, atomically.

Operations:
- `add` — adds the supplied tag_ids to each prompt's existing tags. Duplicates
  are silently deduped.
- `remove` — removes the supplied tag_ids from each prompt. Tags not currently
  on a prompt are silently no-oped.

Specifying tags:
- Pass `tag_ids` (use `list_tags` to discover them).
- Tags must already exist on the Brand Kit. This tool does NOT create new tags.

Atomicity:
- The call is fully atomic. If ANY supplied `prompt_id` is missing/discarded/
  cross-brand-kit, or ANY `tag_id` is unknown on the Brand Kit, the call is
  refused with a `validation_error` listing every problem, and no taggings are
  changed.
- On success, all listed prompts receive the operation in a single DB transaction.

Limits:
- Up to 100 `prompt_ids` per call.

IMPORTANT: Always show the user the prompts and tags you plan to operate on, and
get explicit confirmation before calling.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the prompts and tags.
- `operation` (`string`, required): Tag operation to apply to every listed prompt. One of: `add`, `remove`.
- `prompt_ids` (`array`, required): AEO prompt (question) IDs to operate on. All must belong to the Brand Kit and not be discarded.
- `tag_ids` (`array`, required): Tag IDs to add or remove. Must exist on the Brand Kit. Use `list_tags` to discover available tag_ids.

Example input: `{"brand_kit_id":1,"operation":"add","prompt_ids":[],"tag_ids":[]}`

### `airopsmcp_bulk_update_aeo_prompt_topics`

Bulk Update AEO Prompt Topics · Destructive

Reassign a batch of AEO prompts to an existing topic in one Brand Kit.

Specifying the destination topic:
- Pass `topic_id` (use `list_topics` to discover them).
- The topic must already exist on the Brand Kit. This tool does NOT create topics.
  To create a new topic first, use `create_topic`, then pass its id here.

Specifying prompts:
- Pass `prompt_ids` (use `list_aeo_prompts` filtered by `topic_id` to find prompts
  currently under a source topic).
- IDs that are missing, discarded, or not in the Brand Kit are skipped; only
  matching prompts are updated.

IMPORTANT: Always show the user the prompts and destination topic you plan to
operate on, and get explicit confirmation before calling.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the prompts and topic.
- `prompt_ids` (`array`, required): AEO prompt (question) IDs to reassign. Unknown or discarded IDs are skipped.
- `topic_id` (`integer`, required): Destination topic ID. Must exist on the Brand Kit. Use `list_topics` to discover available topic_ids. Does NOT create topics — use `create_topic` first if needed.

Example input: `{"brand_kit_id":1,"prompt_ids":[],"topic_id":1}`

### `airopsmcp_commit_aeo_prompt_assignments`

Commit Aeo Prompt Assignments · Destructive

Commit the current prompt-assignment draft for a Brand Kit to live. Replaces all
live country, persona, and platform assignments for the brand kit's prompts with
the draft data.

The workspace's estimated answers limit is enforced. If committing would push the
workspace over its quota, the call is rejected with an `AnswersLimitExceeded`
validation error containing `estimated_answers` and `max_answers` in `details`.
Recover by calling `update_aeo_prompt_assignments` to adjust, or
`discard_aeo_prompt_assignments` to abandon.

IMPORTANT:
- This action affects live data and is not undoable except by manually editing
  assignments again. Always get explicit user confirmation before calling.
- If the human user has unsaved UI edits in the same draft, those will also be
  committed. Surface this to the user before proceeding.
- After a successful commit, a fresh empty draft is automatically re-mirrored from
  the new live data. You may immediately stage further edits with
  `update_aeo_prompt_assignments`.
- This tool does NOT return the new live estimated-answers/month. If you or the
  user need the post-commit estimates, call `get_aeo_prompt_assignments_status`.
  Do NOT reuse the pre-commit `draft_estimated_answers` from
  `update_aeo_prompt_assignments` and do NOT compute the estimate yourself —
  repetition-times, persona/country/platform interactions, and concurrent edits
  can all shift the result.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID whose draft should be committed.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_delete_aeo_prompt`

Delete AEO Prompt · Destructive

Delete an AEO prompt from a Brand Kit.

Use `list_aeo_prompts` to find the prompt ID and verify the prompt text before deletion.

IMPORTANT: This action is destructive. Always show the user the exact prompt text and
get explicit confirmation before calling this tool.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the prompt.
- `prompt_id` (`integer`, required): The ID of the prompt to remove.

Example input: `{"brand_kit_id":1,"prompt_id":1}`

### `airopsmcp_delete_aeo_tag`

Delete Aeo Tag · Destructive

Delete an AEO tag from a Brand Kit.

Behavior:
- This is a HARD delete. The tag is removed from the Brand Kit entirely.
- All taggings on prompts that referenced this tag are also deleted (cascade via
  `Aeo::Tag has_many :taggings, dependent: :destroy`). Every prompt that had this
  tag will lose it.
- The response includes `tagged_prompts_count`: the number of prompts that lost the
  tag. Use this to communicate the blast radius back to the user.

IMPORTANT: This action is destructive and cannot be undone via this tool. Always
show the user the tag name AND `tagged_prompts_count` (look it up first via
`list_tags` + `list_aeo_prompts` if needed) and get explicit confirmation before
calling.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the tag.
- `tag_id` (`integer`, required): The tag ID to delete.

Example input: `{"brand_kit_id":1,"tag_id":1}`

### `airopsmcp_delete_brand_kit_writing_rules`

Delete Brand Kit Writing Rules · Destructive

Delete one or more writing rules from a Brand Kit.
This edits the Brand Kit draft version only; it does not change the active (live) version.

A failure deleting one rule does not block or roll back the others: the response reports
which rules were deleted and which could not be.

IMPORTANT: Always show the user exactly which writing rules will be deleted and ask for
confirmation before calling this tool.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `writing_rule_ids` (`array`, required): The IDs of the writing rules to delete (up to 10)

Example input: `{"brand_kit_id":1,"writing_rule_ids":[]}`

### `airopsmcp_delete_topic`

Delete Topic · Destructive

Delete an AEO topic from a Brand Kit.

Behavior:
- This is a HARD delete. The topic is removed from the Brand Kit entirely.
- Deletion is blocked when the topic has associated prompts. Use `list_aeo_prompts`
  filtered by `topic_id` to inspect prompts before deleting.
- Candidate questions and question recommendations for the topic are deleted by model
  associations when the topic is deleted.

IMPORTANT: This action is destructive and cannot be undone via this tool. Always show
the user the topic name and associated prompt count, then get explicit confirmation
before calling.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID that owns the topic.
- `topic_id` (`integer`, required): The topic ID to delete.

Example input: `{"brand_kit_id":1,"topic_id":1}`

### `airopsmcp_discard_aeo_prompt_assignments`

Discard Aeo Prompt Assignments · Destructive

Discard the current prompt-assignment draft for a Brand Kit. Throws away ALL
uncommitted edits — both your own and any unsaved edits the human user made in the
UI — and re-mirrors a fresh empty draft from live.

Live assignments are never touched.

IMPORTANT:
- This action is destructive and unrecoverable. Pending UI edits the user has not
  committed will be lost.
- Always get explicit user confirmation before calling.
- Calling discard when no draft exists is a no-op; a fresh empty draft is still
  created so further `update_aeo_prompt_assignments` calls work without setup.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID whose draft should be discarded.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_knowledge_base_delete`

Delete Knowledge Base · Destructive

Permanently delete a Knowledge Base and ALL of its documents. This cascades through
every document in the KB and drops the underlying vectors. This action cannot be
undone.

IMPORTANT: Always warn the user that deletion is permanent and irreversible, name
the Knowledge Base being deleted, and ask for explicit confirmation before calling
this tool.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base to delete.

Example input: `{"knowledge_base_id":1}`

### `airopsmcp_knowledge_base_delete_document`

Delete Knowledge Base Document · Destructive

Permanently delete a single document from a Knowledge Base. This action cannot be undone.

IMPORTANT: Always warn the user that deletion is permanent and ask for explicit
confirmation before calling this tool.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `document_id` (`integer`, required): The ID of the document to delete.
- `knowledge_base_id` (`integer`, required): The ID of the Knowledge Base the document belongs to.

Example input: `{"document_id":1,"knowledge_base_id":1}`

### `airopsmcp_manage_brand_kit_audience`

Manage Brand Kit Audience · Destructive

Create or update an audience for a Brand Kit draft. Omit `id` to create a new audience; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `description` (`string`, optional): Audience description
- `id` (`integer`, optional): Audience ID (omit to create new)
- `name` (`string`, optional): Audience name (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_competitor`

Manage Brand Kit Competitor · Destructive

Create or update a competitor for a Brand Kit. Omit `id` to create a new competitor; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `domain` (`string`, optional): Competitor domain (e.g. "example.com")
- `id` (`integer`, optional): Competitor ID (omit to create new)
- `name` (`string`, optional): Competitor name (required on create)
- `product_line_ids` (`array`, optional): Product line IDs to associate (must belong to this brand kit, at least one required)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_content_sample`

Manage Brand Kit Content Sample · Destructive

Create or update a content sample for a Brand Kit. Omit `id` to create a new content sample; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `audience_ids` (`array`, optional): Audience IDs to associate (must belong to this brand kit). Pass [] to clear.
- `content` (`string`, optional): Plain text content for the sample. On create, provide either content or url (not both).
- `content_type_id` (`integer`, optional): Content type ID (required on create, must belong to this brand kit)
- `id` (`integer`, optional): Content sample ID (omit to create new)
- `region_ids` (`array`, optional): Region IDs to associate (must belong to this brand kit). Pass [] to clear.
- `url` (`string`, optional): URL of the content sample. On create, provide either url or content (not both).

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_content_type`

Manage Brand Kit Content Type · Destructive

Create or update a content type for a Brand Kit. Omit `id` to create a new content type; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `cta_text` (`string`, optional): Call-to-action text
- `cta_url` (`string`, optional): Call-to-action URL
- `header_case` (`string`, optional): Header case style. One of: `title_case`, `sentence_case`, `custom`.
- `header_case_custom_value` (`string`, optional): Custom header case rules (when header_case is custom)
- `id` (`integer`, optional): Content type ID (omit to create new)
- `name` (`string`, optional): Content type name (required on create)
- `sample_url` (`string`, optional): URL of a content sample (only used on create)
- `template_outline` (`string`, optional): Template outline

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_custom_variable`

Manage Brand Kit Custom Variable · Destructive

Before creating a custom variable, you MUST analyze the user's intent and suggest the appropriate Brand Kit dimension instead.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `id` (`integer`, optional): Custom variable ID (omit to create new)
- `name` (`string`, optional): Custom variable name (required on create)
- `value` (`string`, optional): Custom variable value (required on create, editable on update)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_font`

Manage Brand Kit Font · Destructive

Create or update a font for a Brand Kit. Omit `id` to create a new font; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `file_url` (`string`, optional): Publicly accessible URL to a font file (TTF, OTF, WOFF, WOFF2, or EOT). Use signed_id instead if the file was uploaded via create_brand_kit_direct_upload. Pass null or empty to leave the existing file unchanged.
- `google_font_link` (`string`, optional): Google Fonts URL for this font (e.g. https://fonts.google.com/specimen/Inter). Pass null or empty string to clear.
- `id` (`integer`, optional): Font ID (omit to create new)
- `name` (`string`, optional): Font name, e.g. "Inter" or "Brand Heading Font" (required on create)
- `signed_id` (`string`, optional): Signed blob ID returned by create_brand_kit_direct_upload after a direct upload. Preferred over file_url when the user has a local file. Pass null to leave the existing file unchanged.
- `usage_instructions` (`string`, optional): Instructions for agents on when and how to use this font. Pass null or empty string to clear.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_logo_size`

Manage Brand Kit Logo Size · Destructive

Create or update a logo size for a Brand Kit. Omit `id` to create a new logo size; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `height` (`integer`, optional): Height in pixels. Pass null to clear.
- `id` (`integer`, optional): Logo size ID (omit to create new)
- `name` (`string`, optional): Logo size name, e.g. "Web Banner" or "Social Media Square" (required on create)
- `usage_instructions` (`string`, optional): Instructions for agents on when and how to use this logo size. Pass null to clear.
- `width` (`integer`, optional): Width in pixels. Pass null to clear.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_logo_variant`

Manage Brand Kit Logo Variant · Destructive

Create or update a logo variant for a Brand Kit. Omit `id` to create a new logo variant; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `background_color` (`string`, optional): Background color as a hex value (e.g. #ffffff). Pass null to clear.
- `file_url` (`string`, optional): Publicly accessible URL to a PNG or SVG image. Use signed_id instead if the file was uploaded via create_brand_kit_direct_upload. Pass null to leave the existing file unchanged.
- `id` (`integer`, optional): Logo variant ID (omit to create new)
- `name` (`string`, optional): Logo variant name, e.g. "Primary Logo" or "Dark Background Logo" (required on create)
- `signed_id` (`string`, optional): Signed blob ID returned by create_brand_kit_direct_upload after a direct upload. Preferred over file_url when the user has a local file. Pass null to leave the existing file unchanged.
- `usage_instructions` (`string`, optional): Instructions for agents on when and how to use this logo, e.g. "Use on dark backgrounds only". Pass null to clear.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_palette`

Manage Brand Kit Palette · Destructive

Create or update a color palette for a Brand Kit. Omit `id` to create a new palette; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `id` (`integer`, optional): Palette ID (omit to create new)
- `name` (`string`, optional): The palette name, e.g. "Primary" (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_palette_color`

Manage Brand Kit Palette Color · Destructive

Create or update a color within a Brand Kit palette. Omit `id` to create a new color; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `id` (`integer`, optional): Color ID (omit to create new)
- `name` (`string`, optional): Color name, e.g. "Brand Blue" (required on create)
- `palette_id` (`integer`, optional): The palette ID (required on create)
- `usage_instructions` (`string`, optional): Instructions for agents on when and how to use this color
- `value` (`string`, optional): Hex color value, e.g. "#0055ff" (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_product_line`

Manage Brand Kit Product Line · Destructive

Create or update a product line for a Brand Kit. Omit `id` to create a new product line; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `details` (`string`, optional): Product line details
- `id` (`integer`, optional): Product line ID (omit to create new)
- `ideal_customer_profile` (`string`, optional): Ideal customer profile
- `name` (`string`, optional): Product line name (required on create)
- `positioning` (`string`, optional): Product positioning
- `url` (`string`, optional): Product line URL

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_region`

Manage Brand Kit Region · Destructive

Create or update a region for a Brand Kit. Omit `id` to create a new region; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `description` (`string`, optional): Region description
- `icon_name` (`string`, optional): Flag icon name (e.g. flag-us, flag-gb). Pass empty string or null to clear. One of: `flag-ad`, `flag-ae`, `flag-af`, `flag-ag`, `flag-ai`, `flag-al`, `flag-am`, `flag-ao`, `flag-ar`, `flag-as`, `flag-at`, `flag-au`, `flag-aw`, `flag-az`, `flag-ba`, `flag-bb`, `flag-bd`, `flag-be`, `flag-bf`, `flag-bg`, `flag-bh`, `flag-bi`, `flag-bj`, `flag-bn`, `flag-bo`, `flag-br`, `flag-bs`, `flag-bt`, `flag-bw`, `flag-by`, `flag-bz`, `flag-ca`, `flag-cd`, `flag-cf`, `flag-cg`, `flag-ch`, `flag-ci`, `flag-ck`, `flag-cl`, `flag-cm`, `flag-cn`, `flag-co`, `flag-cr`, `flag-cu`, `flag-cv`, `flag-cw`, `flag-cy`, `flag-cz`, `flag-de`, `flag-dj`, `flag-dk`, `flag-dm`, `flag-do`, `flag-dz`, `flag-ec`, `flag-ee`, `flag-eg`, `flag-en`, `flag-er`, `flag-es`, `flag-et`, `flag-eu`, `flag-fi`, `flag-fj`, `flag-fk`, `flag-fm`, `flag-fo`, `flag-fr`, `flag-ga`, `flag-gb`, `flag-gd`, `flag-ge`, `flag-gg`, `flag-gh`, `flag-gi`, `flag-gl`, `flag-gm`, `flag-gn`, `flag-gq`, `flag-gr`, `flag-gt`, `flag-gu`, `flag-gw`, `flag-gy`, `flag-hk`, `flag-hn`, `flag-hr`, `flag-ht`, `flag-hu`, `flag-id`, `flag-ie`, `flag-il`, `flag-im`, `flag-in`, `flag-io`, `flag-iq`, `flag-ir`, `flag-is`, `flag-it`, `flag-je`, `flag-jm`, `flag-jo`, `flag-jp`, `flag-ke`, `flag-kg`, `flag-kh`, `flag-ki`, `flag-km`, `flag-kp`, `flag-kr`, `flag-kw`, `flag-ky`, `flag-kz`, `flag-la`, `flag-lb`, `flag-lc`, `flag-li`, `flag-lk`, `flag-lr`, `flag-ls`, `flag-lt`, `flag-lu`, `flag-lv`, `flag-ly`, `flag-ma`, `flag-mc`, `flag-md`, `flag-me`, `flag-mg`, `flag-mh`, `flag-mk`, `flag-ml`, `flag-mm`, `flag-mn`, `flag-mo`, `flag-mp`, `flag-mr`, `flag-ms`, `flag-mt`, `flag-mu`, `flag-mv`, `flag-mw`, `flag-mx`, `flag-my`, `flag-mz`, `flag-na`, `flag-ne`, `flag-nf`, `flag-ng`, `flag-ni`, `flag-nl`, `flag-no`, `flag-np`, `flag-nr`, `flag-nu`, `flag-nz`, `flag-om`, `flag-pa`, `flag-pe`, `flag-pf`, `flag-pg`, `flag-ph`, `flag-pk`, `flag-pl`, `flag-pn`, `flag-pr`, `flag-ps`, `flag-pt`, `flag-pw`, `flag-py`, `flag-qa`, `flag-ro`, `flag-rs`, `flag-ru`, `flag-rw`, `flag-sa`, `flag-sb`, `flag-sc`, `flag-sd`, `flag-se`, `flag-sg`, `flag-si`, `flag-sk`, `flag-sl`, `flag-sm`, `flag-sn`, `flag-so`, `flag-sr`, `flag-ss`, `flag-st`, `flag-sv`, `flag-sx`, `flag-sy`, `flag-sz`, `flag-tc`, `flag-td`, `flag-tg`, `flag-th`, `flag-tj`, `flag-tk`, `flag-tl`, `flag-tm`, `flag-tn`, `flag-to`, `flag-tr`, `flag-tt`, `flag-tv`, `flag-tw`, `flag-tz`, `flag-ua`, `flag-ug`, `flag-us`, `flag-uy`, `flag-uz`, `flag-va`, `flag-vc`, `flag-ve`, `flag-vg`, `flag-vi`, `flag-vn`, `flag-vu`, `flag-wl`, `flag-ws`, `flag-xk`, `flag-ye`, `flag-za`, `flag-zm`, `flag-zw`, ``.
- `id` (`integer`, optional): Region ID (omit to create new)
- `name` (`string`, optional): Region name (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_type_size`

Manage Brand Kit Type Size · Destructive

Create or update a type size for a Brand Kit. Omit `id` to create a new type size; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `font_id` (`integer`, optional): ID of the font this type size belongs to
- `id` (`integer`, optional): Type size ID (omit to create new)
- `line_height` (`number`, optional): Line height as a decimal multiplier, e.g. 1.5.
- `name` (`string`, optional): Type size name, e.g. "H1 Display" or "Body Regular" (required on create)
- `size` (`integer`, optional): Font size in pixels.
- `usage_instructions` (`string`, optional): Instructions for agents on when and how to use this type size. Pass null or empty string to clear.
- `weight` (`integer`, optional): Font weight as an integer (100–900), e.g. 400 or 700.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_usage_rule`

Manage Brand Kit Usage Rule · Destructive

Create or update a usage rule for a Brand Kit. Omit `id` to create a new usage rule; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `applies_to` (`string`, optional): What this rule applies to. Required on create; ignored on update. One of: `logo`, `color`, `typography`, `visual_examples`.
- `id` (`integer`, optional): Usage rule ID (omit to create new)
- `name` (`string`, optional): The usage rule text, e.g. "Use only on white backgrounds" (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_visual_example`

Manage Brand Kit Visual Example · Destructive

Create or update a visual example for a Brand Kit's Data Visualization section. Omit `id` to create a new visual example; provide `id` to update an existing one...

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `file_url` (`string`, optional): Publicly accessible URL to a PNG, JPG, SVG, GIF, or WebP image. Use signed_id instead if the file was uploaded via create_brand_kit_direct_upload. Pass null to leave the existing file unchanged.
- `id` (`integer`, optional): Visual example ID (omit to create new)
- `sample_url` (`string`, optional): Optional URL to a live sample. Pass null to clear.
- `signed_id` (`string`, optional): Signed blob ID returned by create_brand_kit_direct_upload after a direct upload. Preferred over file_url when the user has a local file. Pass null to leave the existing file unchanged.
- `title` (`string`, optional): Title of the visual example, e.g. "Dashboard Overview" (required on create)
- `usage_instructions` (`string`, optional): Instructions for agents on when and how to use this visual example. Pass null to clear.

Example input: `{"brand_kit_id":1}`

### `airopsmcp_manage_brand_kit_writing_rule`

Manage Brand Kit Writing Rule · Destructive

Create or update a writing rule for a Brand Kit. Omit `id` to create a new rule; provide `id` to update an existing one.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID
- `audience_id` (`integer`, optional): Audience ID to scope this rule to (mutually exclusive with content_type_id and region_id). Only on create.
- `content_type_id` (`integer`, optional): Content type ID to scope this rule to (mutually exclusive with audience_id and region_id). Only on create.
- `id` (`integer`, optional): Writing rule ID (omit to create new)
- `region_id` (`integer`, optional): Region ID to scope this rule to (mutually exclusive with content_type_id and audience_id). Only on create.
- `text` (`string`, optional): Writing rule text (required on create)

Example input: `{"brand_kit_id":1}`

### `airopsmcp_publish_brand_kit`

Publish Brand Kit · Destructive

Publish a Brand Kit's current draft so changes become active. This promotes the current draft to active and creates a fresh draft from it.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to publish

Example input: `{"brand_kit_id":1}`

### `airopsmcp_update_aeo_prompt_assignments`

Update Aeo Prompt Assignments · Destructive

Update the country, persona, and platform assignments of one or more existing AEO
prompts on a Brand Kit. Writes to the brand kit's draft session ONLY — changes do
NOT take effect until you call `commit_aeo_prompt_assignments`.

Semantics:
- For each entry in `prompts`, a non-empty array REPLACES that prompt's current
  draft assignments for the given dimension.
- An empty array CLEARS that dimension on the prompt.
- Omitting a dimension or passing null leaves that dimension UNCHANGED.
- At most 100 prompts can be updated per call.

Workflow:
1. Call `update_aeo_prompt_assignments` to stage your changes in the draft.
2. Inspect `limit_exceeded` in the response. If true, the workspace would exceed
   its estimated-answers quota on commit. Adjust by calling
   `update_aeo_prompt_assignments` again, or call
   `discard_aeo_prompt_assignments` to abandon.
3. When ready, call `commit_aeo_prompt_assignments` to apply the draft to live.
   Always confirm with the user before committing.

IMPORTANT — shared draft with the UI:
- There is one draft per brand kit, shared between MCP and the human-facing UI.
- If the user has unsaved UI edits, your edits accumulate in the same draft. A
  subsequent commit will publish both sets of edits together; a discard will
  destroy both. Surface this to the user before committing or discarding.

To discover prompt IDs and current assignments, use `list_aeo_prompts`.
To inspect current draft state without modifying it, use
`get_aeo_prompt_assignments_status`.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID owning the prompts to update.
- `prompts` (`array`, required): Per-prompt assignment updates. Empty arrays clear a dimension; omitted or null dimensions remain unchanged.

Example input: `{"brand_kit_id":1,"prompts":[]}`

### `airopsmcp_update_brand_kit`

Update Brand Kit · Destructive

Update a Brand Kit's base fields. Only provided fields are changed.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `brand_kit_id` (`integer`, required): The Brand Kit ID to update
- `brand_about` (`string`, optional): Description/overview of the brand
- `brand_name` (`string`, optional): Name of the brand
- `brand_url` (`string`, optional): URL of the brand website
- `writing_persona` (`string`, optional): The persona/voice used in brand writing
- `writing_tone` (`string`, optional): The tone of voice for brand content

Example input: `{"brand_kit_id":1}`

## Related

Other AI connectors ([all 155](/agentkit/connectors/?category=ai)):

- [Chorus](/agentkit/connectors/chorus/): Scalekit connector, Username and password, 9 tools
- [Gong](/agentkit/connectors/gong/): Scalekit connector, OAuth, 69 tools
- [Jiminny](/agentkit/connectors/jiminny/): Scalekit connector, Access token, 27 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
