Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Mezmo

Scalekit connector
Open markdown

The Mezmo connector lets your AI agent act in each user's Mezmo account. Each user connects their own Mezmo API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 54 tools.

Tools
54
What they doRead · write · destructive
29 · 15 · 1029 read15 write10 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Mezmo connection

    In AgentKit > Connections, create a Mezmo connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    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 = 'mezmo'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Mezmo:', 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: 'mezmo_archiving_get',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their Mezmo credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • mezmo_archiving_getGet the account's log archiving configuration.Read-only

    Get Archive Configuration

    Get the account's log archiving configuration. Returns the storage integration and bucket settings (credentials are not returned). Use Delete Archive Configuration to stop archiving.

    Inputs

    This tool takes no inputs.

  • mezmo_board_getGet one board by ID.Read-only

    Get Board

    Get one board by ID. Returns its title, categories and graphs. Use List Boards to find IDs.

    Inputs

    board_idstringrequired
    ID of a board. Example: 5f3a1b2c4d5e6f7890123456.
  • mezmo_boards_listList the dashboards (boards) in the account.Read-only

    List Boards

    List the dashboards (boards) in the account. Returns boards with id, title and categories. Use Get Board for one board's graphs.

    Inputs

    This tool takes no inputs.

  • mezmo_categories_listList the categories used to group views, boards or screens.Read-only

    List Categories

    List the categories used to group views, boards or screens. Returns categories with id and name. Use Create Category to add one.

    Inputs

    typestringrequired
    Category type: views, boards or screens. Example: views.one of viewsboardsscreens
  • mezmo_category_getGet one category by type and ID.Read-only

    Get Category

    Get one category by type and ID. Returns its name. Use List Categories to find IDs.

    Inputs

    idstringrequired
    ID of category. Example: 5f3a1b2c4d5e6f7890123456.
    typestringrequired
    Category type: views, boards or screens. Example: views.one of viewsboardsscreens
  • mezmo_exclusion_getGet one exclusion rule by ID.Read-only

    Get Exclusion Rule

    Get one exclusion rule by ID. Returns its title, hosts, apps, query and flags. Use List Exclusion Rules to find IDs.

    Inputs

    idstringrequired
    ID of an exclusion rule. Example: 5f3a1b2c4d5e6f7890123456.
  • mezmo_exclusions_listList ingestion exclusion rules that drop or index-only matching logs.Read-only

    List Exclusion Rules

    List ingestion exclusion rules that drop or index-only matching logs. Returns rules with id, title, hosts, apps, query and active and index-only flags. Usage quota rules are not included.

    Inputs

    This tool takes no inputs.

  • mezmo_group_getGet one log group by ID.Read-only

    Get Group

    Get one log group by ID. Returns its name, access scope and members. Use List Groups to find IDs.

    Inputs

    group_idstringrequired
    ID of a group. Example: 61b2c3d4e5f6a7b8c9d0e1f2.