# How to integrate Blazemeter MCP with OpenAI Agents SDK

```json
{
  "title": "How to integrate Blazemeter MCP with OpenAI Agents SDK",
  "toolkit": "Blazemeter",
  "toolkit_slug": "blazemeter",
  "framework": "OpenAI Agents SDK",
  "framework_slug": "open-ai-agents-sdk",
  "url": "https://composio.dev/toolkits/blazemeter/framework/open-ai-agents-sdk",
  "markdown_url": "https://composio.dev/toolkits/blazemeter/framework/open-ai-agents-sdk.md",
  "updated_at": "2026-05-12T10:03:21.344Z"
}
```

## Introduction

This guide walks you through connecting Blazemeter to the OpenAI Agents SDK using the Composio tool router. By the end, you'll have a working Blazemeter agent that can start a new performance test on your main project, fetch results from the latest test run, list all test runs for project alpha through natural language commands.
This guide will help you understand how to give your OpenAI Agents SDK agent real control over a Blazemeter account through Composio's Blazemeter MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.

## Also integrate Blazemeter with

- [Claude Agent SDK](https://composio.dev/toolkits/blazemeter/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/blazemeter/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/blazemeter/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/blazemeter/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/blazemeter/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/blazemeter/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/blazemeter/framework/cli)
- [Google ADK](https://composio.dev/toolkits/blazemeter/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/blazemeter/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/blazemeter/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/blazemeter/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/blazemeter/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/blazemeter/framework/crew-ai)

## TL;DR

Here's what you'll learn:
- Get and set up your OpenAI and Composio API keys
- Install the necessary dependencies
- Initialize Composio and create a Tool Router session for Blazemeter
- Configure an AI agent that can use Blazemeter as a tool
- Run a live chat session where you can ask the agent to perform Blazemeter operations

## What is OpenAI Agents SDK?

The OpenAI Agents SDK is a lightweight framework for building AI agents that can use tools and maintain conversation state. It provides a simple interface for creating agents with hosted MCP tool support.
Key features include:
- Hosted MCP Tools: Connect to external services through hosted MCP endpoints
- SQLite Sessions: Persist conversation history across interactions
- Simple API: Clean interface with Agent, Runner, and tool configuration
- Streaming Support: Real-time response streaming for interactive applications

## What is the Blazemeter MCP server, and what's possible with it?

The Blazemeter MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Blazemeter account. It provides structured and secure access so your agent can perform Blazemeter operations on your behalf.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `BLAZEMETER_CONVERT_TRANSACTIONS` | Convert Transactions | Tool to convert transaction files to BlazeMeter DSL format for service virtualization. Use when importing API specifications (Swagger, HAR, YAML) to create virtual service transactions. |
| `BLAZEMETER_CREATE_API_MONITORING_SCHEDULE` | Create API Monitoring Schedule | Tool to create a new schedule for running API monitoring tests. Use when you need to automate test runs at defined intervals after determining the correct cron expression and test or collection ID. |
| `BLAZEMETER_CREATE_MULTI_TEST` | Create Multi Test | Tool to create a new multi-test within a specified project. Use after confirming the project ID. Example: "Create a multi-test named 'load-test' in project 12345." |
| `BLAZEMETER_CREATE_PRIVATE_LOCATION` | Create Private Location | Tool to create a new private location in BlazeMeter. Private locations allow you to run performance tests from your own infrastructure. Use when you need to test internal applications or simulate load from specific geographic regions. Requires valid account and workspace IDs. |
| `BLAZEMETER_CREATE_PRIVATE_LOCATIONS_SERVERS` | Create Private Location Agent | Creates a new agent (server) within a BlazeMeter private location. Use this when you need to add an agent to handle test execution in your private infrastructure. Save the returned agent ID for subsequent private location setup steps. |
| `BLAZEMETER_CREATE_PROJECT` | Create Project | Creates a new project within a BlazeMeter workspace. Projects are containers for organizing performance tests. Requires a valid workspace_id which can be obtained using the GET_WORKSPACES action. Returns the created project with its unique ID, timestamps, and other metadata. |
| `BLAZEMETER_CREATE_SEARCH` | Create Search | Execute a search query against BlazeMeter entities using advanced filtering and sorting. Use when you need to find tests, multi-tests, masters, or other entities with complex criteria like name patterns, date ranges, or workspace filters. |
| `BLAZEMETER_CREATE_TAGS` | Create Tag | Creates a new tag in BlazeMeter for organizing and categorizing resources. Tags can be used in searches and filters to group related assets. Use when you need to create a new tag category with a name and description. |
| `BLAZEMETER_CREATE_TEST` | Create Test | Tool to create a new single test within a specified project. Use when registering a new performance test via API. |
| `BLAZEMETER_CREATE_WORKSPACES_ASSETS` | Create Workspace Asset | Tool to create an asset in a workspace for test data management. Use when you need to create data models, test data, or other assets within a BlazeMeter workspace. Assets are used for organizing and managing test data, configurations, and related resources. |
| `BLAZEMETER_CREATE_WORKSPACES_ASSETS_DEPENDENCIES2` | Create Asset Dependency | Tool to create a dependency relationship between two assets in a BlazeMeter workspace. Use when establishing that one asset depends on another asset. The source asset (aId) will depend on the target asset (targetDepId). This is useful for tracking asset relationships in the BlazeMeter Asset Repository. |
| `BLAZEMETER_CREATE_WORKSPACES_PACKAGES` | Create Workspace Package | Creates a new package within a BlazeMeter workspace. Packages are used for managing and organizing test artifacts and dependencies. Use when you need to create a new package with a specific name, version, and optional dependencies. |
| `BLAZEMETER_CREATE_WORKSPACES_TRANSACTIONS` | Create Workspace Transactions | Tool to create transactions in a BlazeMeter workspace for service virtualization. Use when you need to define mock API behaviors by specifying request matching criteria and response definitions. Transactions allow you to virtualize services and simulate API responses for testing purposes. |
| `BLAZEMETER_DELETE_API_MONITORING_SCHEDULE` | Delete API Monitoring Schedule | Tool to delete a specific test schedule by its ID. Use when you need to remove a scheduled test by its unique schedule identifier. |
| `BLAZEMETER_DELETE_PRIVATE_LOCATION_WORKSPACE` | Delete Private Location Workspace | Tool to remove a workspace from a private location. Use when you need to revoke a workspace's access to a specific private location by providing both the harbor ID and workspace ID. |
| `BLAZEMETER_DELETE_PROJECT` | Delete Project | Tool to delete a specific project by its ID. Use when you need to remove a project from BlazeMeter. If the project contains tests or test reports, use the force parameter to delete it including all contents. |
| `BLAZEMETER_DELETE_TEST_FILE` | Delete Test File | Tool to delete a file from a test. Use when you need to remove an uploaded file asset (JMX script, CSV data, or configuration) from a BlazeMeter test. |
| `BLAZEMETER_DELETE_TESTS` | Delete Tests | Tool to delete a test by its ID. Use when you need to remove a performance test from BlazeMeter. |
| `BLAZEMETER_DELETE_WORKSPACE_ASSET_DEPENDENCY` | Delete Workspace Asset Dependency | Tool to delete a dependency from a workspace's asset repository by its ID. Use when you need to remove a specific asset dependency. |
| `BLAZEMETER_DELETE_WORKSPACES_ASSETS` | Delete Workspace Asset | Tool to delete an asset from a workspace in BlazeMeter's Asset Repository. Use when you need to remove an asset that is no longer needed. This permanently deletes the asset from the workspace. |
| `BLAZEMETER_DELETE_WORKSPACES_ASSETS_DEPENDENCIES` | Delete Workspace Assets Dependencies | Tool to delete asset dependencies by source/target in a workspace. Use when you need to remove dependency relationships between workspace assets. |
| `BLAZEMETER_DELETE_WORKSPACES_LOGS` | Delete Workspace Logs | Tool to delete master test execution logs from a BlazeMeter workspace. Use when you need to remove logs for specific test masters to free up storage space. The operation is irreversible and removes all logs associated with the specified master IDs. |
| `BLAZEMETER_DELETE_WORKSPACES_MANAGERS` | Delete Workspace Managers | Tool to remove managers from a workspace. Use when you need to revoke manager access for one or more users by providing the workspace ID and an array of manager IDs. |
| `BLAZEMETER_DELETE_WORKSPACES_PACKAGES` | Delete Workspace Package | Tool to delete a package from a workspace in the BlazeMeter Asset Repository. Use when you need to remove a package by its workspace and package identifiers. |
| `BLAZEMETER_DUPLICATE_TEST` | Duplicate Test | Tool to duplicate an existing test by its ID. Use when you need to create a copy of a test with all its configuration settings. |
| `BLAZEMETER_EXPORT_PACKAGE` | Export Package | Tool to export a package from BlazeMeter Asset Repository as a zip file. Use when you need to download or backup a package's assets and metadata. |
| `BLAZEMETER_EXPORT_WORKSPACES_PACKAGES` | Export Workspaces Packages | Tool to export multiple packages from a workspace as a zip file. Use when you need to download and bundle multiple test packages for backup, transfer, or sharing purposes. |
| `BLAZEMETER_GENERATE_WORKSPACES_DATAMODELS` | Generate Test Data from Data Model | Tool to generate test data from a data model in Asset Repository. Use when you need to create synthetic test data based on a predefined data model structure. |
| `BLAZEMETER_GENERATE_WORKSPACES_TESTDATA` | Generate Workspace Test Data | Tool to generate synthetic test data on-the-fly without storing in Asset Repository. Use when you need to quickly generate test data based on a data model schema with generator functions. The data model defines entity schemas with properties, data types, and generator function requirements. Generator functions (like randText, regExp, randInt) create realistic synthetic data. Use the GET_GENERATOR_FUNCTIONS action to discover available generator functions and their parameters. |
| `BLAZEMETER_GET_ACCOUNTS` | Get Accounts | Tool to retrieve a list of accounts associated with the authenticated user. Use after confirming valid authentication. |
| `BLAZEMETER_GET_API_MONITORING_SCHEDULE` | Get API Monitoring Schedule | Tool to retrieve details of a specific API monitoring schedule by its ID. Use when you need to inspect the configuration or timing of an existing schedule. |
| `BLAZEMETER_GET_API_MONITORING_SCHEDULES` | Get API Monitoring Schedules | Retrieves a paginated list of API monitoring test schedules. Use to enumerate, review, or manage scheduled test runs. IMPORTANT: At least one of testId, collectionId, workspaceId, or projectId must be provided. Use BLAZEMETER_GET_WORKSPACES or BLAZEMETER_GET_PROJECTS to get valid IDs for filtering. |
| `BLAZEMETER_GET_GENERATOR_FUNCTIONS` | Get Generator Functions | Tool to retrieve all available test data generator functions from BlazeMeter Test Data API. Use when you need to discover what generator functions are available for creating synthetic test data. This action returns a comprehensive list of generator functions organized by category (numeric, text, datetime, logical, CSV, etc.), including function signatures, parameters, return types, descriptions, and usage examples. |
| `BLAZEMETER_GET_GENERATOR_SEEDLISTS` | Get Generator Seed Lists | Tool to retrieve a list of all available seed lists from BlazeMeter Test Data Management API. Use when you need to view available seed list files that contain sample text such as names of countries, persons, streets, banks, months, weekdays, etc., for test data generation. |
| `BLAZEMETER_GET_INFO_HEALTH` | Get Info Health | Tool to retrieve the BlazeMeter service health status. Use when you need to check if the service is operational and healthy. |
| `BLAZEMETER_GET_INFO_VERSION` | Get Info Version | Tool to retrieve BlazeMeter service version information. Returns version details including git branch, commit hash, and build number. Use when you need to check the current version of the BlazeMeter service or verify which build is deployed. |
| `BLAZEMETER_GET_MASTERS_REPORTS_MAIN_SUMMARY` | Get Masters Reports Main Summary | Tool to retrieve request statistics summary for a master test run. Use when you need high-level performance metrics including response times, throughput, error rates, and percentiles for a completed or running test execution. |
| `BLAZEMETER_GET_MULTI_TEST` | Get Multi Test | Tool to retrieve details of a specific multi-test. Use after creating or listing multi-tests when you need full configuration and status. Minimal example: "Get multi-test 12345678 with populated tests." |
| `BLAZEMETER_GET_MULTI_TESTS` | Get Multi Tests | Retrieves a paginated list of multi-tests within a BlazeMeter workspace. Multi-tests allow you to run multiple test configurations together. Use this to list, filter by project, and paginate through available multi-tests. Requires workspaceId (obtain via GET_WORKSPACES). |
| `BLAZEMETER_GET_PRIVATE_LOCATIONS` | Get Private Locations | Tool to retrieve a list of private locations filtered by account or workspace. Use when you need to list available private locations for performance testing. |
| `BLAZEMETER_GET_PROJECT_DETAILS` | Get Project Details | Tool to retrieve detailed information about a specific project by its ID. Use when you need to fetch metadata for a single project including name, description, workspace association, and timestamps. |
| `BLAZEMETER_GET_PROJECTS` | Get Projects | Tool to retrieve a list of projects within a specified workspace. Use when you need to enumerate or page through projects under a given workspace. |
| `BLAZEMETER_GET_REGIONS` | Get Regions | Tool to retrieve a list of all available test regions for API monitoring. Use when you need to identify valid region codes for scheduling tests or determining where tests can run. |
| `BLAZEMETER_GET_SEARCH_METADATA` | Get Search Metadata | Retrieve metadata about searchable entities, fields, relationships, and operators in BlazeMeter's search API. Use when you need to understand available search entities, their fields, relationships between entities, or supported query operators. |
| `BLAZEMETER_GET_SHARED_FOLDERS` | Get Shared Folders | Tool to retrieve a list of shared folders within a specified workspace. Use when you need to list or enumerate shared folders for organizing tests and assets. |
| `BLAZEMETER_GET_TAGS` | Get Tags | Tool to retrieve a list of all tags from BlazeMeter Mock Services API. Use when you need to enumerate or page through tags for service virtualization. |
| `BLAZEMETER_GET_TEST_DETAILS` | Get Test Details | Tool to retrieve complete details of a specific test by its ID. Use when you need full information about a test including configuration, executions, tags, and metadata. |
| `BLAZEMETER_GET_TESTS` | Get Tests | Retrieve a list of performance tests filtered by workspace or project. Either workspaceId or projectId is required. Use this action to list all tests within a specific workspace or project, with support for pagination and sorting. Example: Get all tests in workspace 2225472: {"workspaceId": 2225472, "limit": 10} |
| `BLAZEMETER_GET_TESTS_FILES` | Get Tests Files | Tool to list all files associated with a test. Use when you need to view the files attached to a specific test, such as JMX scripts, CSV data files, or YAML configurations. The download links in the response are valid for 20 minutes. |
| `BLAZEMETER_GET_TEST_VALIDATIONS` | Get Test Validations | Tool to retrieve validation results for a specific test by its ID. Use after uploading or modifying test files to confirm file validation status. |
| `BLAZEMETER_GET_USER` | Get User | Retrieve the authenticated user's profile information including their default project and preferences. This tool fetches details about the currently authenticated BlazeMeter user, including: - Basic profile info (name, email, timezone) - Account status (enabled, roles) - Activity timestamps (created, last login, last access) - Default project and workspace configuration - User preferences and settings No parameters required - returns information based on the authentication credentials used. |
| `BLAZEMETER_GET_USER_ACTIVE_SESSIONS` | Get User Active Sessions | Tool to retrieve the list of active test sessions for the authenticated user. Use when you need to check which performance tests or functional tests are currently running for the user. Returns an empty list if no sessions are active. |
| `BLAZEMETER_GET_USER_INVITES` | Get User Invites | Tool to retrieve pending invites for the authenticated user. Use when checking for workspace or account invitations. |
| `BLAZEMETER_GET_USER_PROJECTS` | Get User Projects | Tool to retrieve all projects belonging to the authenticated user. Use when you need to list projects accessible by the current user across all workspaces. |
| `BLAZEMETER_GET_WORKSPACE_DETAILS` | Get Workspace Details | Tool to retrieve detailed information about a specific workspace by its ID. Use when you need to fetch workspace configuration, owner details, member count, allowances, available locations, and capabilities. |
| `BLAZEMETER_GET_WORKSPACE_PACKAGE` | Get Workspace Package | Tool to retrieve a specific package by its ID from a workspace in the BlazeMeter Asset Repository. Use when you need to fetch detailed information about a package, including its metadata, version, and optionally its dependencies. |
| `BLAZEMETER_GET_WORKSPACES` | Get Workspaces | Tool to retrieve a list of workspaces for a specified account. Use when you need to list or filter workspaces by account, status, or name. |
| `BLAZEMETER_GET_WORKSPACES_ASSETS` | Get Workspace Assets | Tool to retrieve all data models (assets) in a workspace for Test Data Management. Use when you need to list or search for test data assets within a specific workspace. |
| `BLAZEMETER_GET_WORKSPACES_ASSETS2` | Get Workspace Asset By ID | Tool to retrieve a specific asset by ID from the Test Data Management Asset Repository. Use when you need to fetch details of a single asset including metadata, data content, or dependencies. |
| `BLAZEMETER_GET_WORKSPACES_ASSETS_DATA` | Get Workspace Asset Data | Tool to retrieve data from a specific asset in a workspace's asset repository. Use when you need to fetch the actual content/data of an asset stored in BlazeMeter's Asset Repository. |
| `BLAZEMETER_GET_WORKSPACES_ASSETS_DEPENDENCIES` | Get Workspace Assets Dependencies | Tool to retrieve all dependencies for a given workspace with optional filtering criteria. Use when you need to understand asset relationships and dependencies within a workspace. |
| `BLAZEMETER_GET_WORKSPACES_ASSETS_DEPENDENCIES2` | Get Workspace Asset Dependency | Tool to retrieve a specific dependency by ID from a workspace's asset repository. Use when you need to fetch detailed information about a particular dependency asset. |
| `BLAZEMETER_GET_WORKSPACES_ASSETS_DEPENDENCIES3` | Get Asset Dependencies | Tool to retrieve dependencies for a specific asset in a workspace from the BlazeMeter Asset Repository. Use when you need to list dependencies of an asset. |
| `BLAZEMETER_GET_WORKSPACES_DATAMODELS2` | Get Workspace Data Model By ID | Tool to retrieve a specific data model by ID from a workspace in Test Data Management. Use when you need to fetch the schema and details of a particular data model for test data generation. |
| `BLAZEMETER_GET_WORKSPACE_SERVICE_MOCK_TEMPLATE_BY_ID` | Get Virtual Service Template by ID | Tool to get virtual service template details from a specific workspace. Use when you need to retrieve configuration and metadata for a specific service mock template by its ID. |
| `BLAZEMETER_GET_WORKSPACES_PACKAGES` | Get Workspace Packages | Tool to retrieve packages from a BlazeMeter workspace. Use when you need to list or filter packages within a specific workspace using the Asset Repository API. |
| `BLAZEMETER_GET_WORKSPACES_PACKAGES_DEPENDENCIES` | Get Workspace Package Dependencies | Tool to retrieve package dependencies for a specific package in a workspace. Use when you need to list dependencies for a package managed in BlazeMeter's artifact repository. |
| `BLAZEMETER_GET_WORKSPACES_SERVICE_MOCK_TEMPLATES` | Get Workspace Service Mock Templates | Tool to list virtual service templates available in a workspace. Use when you need to retrieve available service mock templates for service virtualization. |
| `BLAZEMETER_GET_WORKSPACES_TRANSACTIONS` | Get Workspace Transactions | Tool to list transactions for virtual services in a workspace. Use when you need to retrieve transactions (request/response pairs) for service virtualization. |
| `BLAZEMETER_GET_WORKSPACES_USERS` | Get Workspace Users | Tool to retrieve a list of users within a specified workspace. Use when you need to enumerate users, filter by roles, or check user status in a workspace. |
| `BLAZEMETER_IMPORT_WORKSPACE_PACKAGE` | Import Workspace Package | Import a package from a ZIP file into a BlazeMeter workspace. Use to upload and deploy test packages, with an optional force parameter to overwrite existing packages with the same name. |
| `BLAZEMETER_LIST_GENERATOR_CARD_ISSUERS` | List Generator Card Issuers | Tool to retrieve a list of available card issuers for test data generation. Use when you need to generate credit card test data and want to know which card issuer types are supported and their valid digit lengths. |
| `BLAZEMETER_PUBLISH_API_DATA` | Publish API Data | Publishes test data through the BlazeMeter Test Data Management API. This tool enables API Publishing to initialize test environments by reading, writing, or deleting data before executing tests. Use when preparing stateful test environments with HTTP requests mapped to data entities. |
| `BLAZEMETER_REGISTER_USER` | Register User | Tool to register a new user account in BlazeMeter. Use when creating a new user registration via API. This endpoint creates a new user with the provided credentials and returns the user details upon successful registration. |
| `BLAZEMETER_START_TEST` | Start Test | Tool to start a preconfigured performance load test. Use when you need to execute a test that has already been created and configured. Returns a masterId that can be used to track test status, stop the test, or retrieve results. |
| `BLAZEMETER_STOP_MASTER` | Stop Master | Gracefully stop a running BlazeMeter test execution (master) by its ID. The stop operation signals test sessions to close gracefully and archive test files. Use this to abort a running performance test. To find the master_id, use GET /masters endpoint filtered by testId or workspaceId. Note: This is a graceful stop - for immediate termination, use the terminate endpoint instead. |
| `BLAZEMETER_STOP_TEST` | Stop Test | Tool to stop all active masters (test executions) for a given test ID. Use when you need to terminate all running sessions associated with a test. For more selective control, use the stop master action with a specific masterId to avoid terminating instances launched by other users. |
| `BLAZEMETER_TERMINATE_USER_ACTIVE_SESSIONS` | Terminate User Active Sessions | Tool to immediately terminate active user sessions in BlazeMeter. Use when you need to forcefully stop running test sessions for the authenticated user. This is an immediate termination action - for graceful shutdown, use the stop endpoint instead. |
| `BLAZEMETER_TERMINATE_WORKSPACES_MASTERS` | Terminate Workspaces Masters | Tool to terminate all running masters in a BlazeMeter workspace. Use when you need to stop all active test executions in a workspace. Set dryRun=true to preview which masters would be terminated without actually stopping them. |
| `BLAZEMETER_UPDATE_API_MONITORING_SCHEDULE` | Update API Monitoring Schedule | Tool to update the configuration of an existing API monitoring schedule. Use when you need to enable or disable a schedule after confirming its ID. |
| `BLAZEMETER_UPDATE_PROJECT` | Update Project | Tool to update an existing BlazeMeter project by its ID. Use when you need to modify the name, description, or workspace association of a project. Only the fields you provide will be updated; all other fields remain unchanged. |
| `BLAZEMETER_UPDATE_TEST` | Update Test | Tool to update details of a specific test by its ID. Use when you need to modify test configuration or name of an existing test after confirming its ID. Example: "Update the test name to 'LoadTest' for test with ID '12345'." |
| `BLAZEMETER_UPDATE_WORKSPACES_ASSETS` | Update Workspace Asset | Tool to update an existing asset in a BlazeMeter workspace. Use when you need to modify asset properties such as name, display name, type, metadata, or data content. All fields are optional - provide only the fields you want to update. The asset is identified by workspace_id and asset_id. |
| `BLAZEMETER_UPDATE_WORKSPACES_ASSETS_DEPENDENCIES` | Update Workspaces Assets Dependencies | Tool to update asset dependencies in a BlazeMeter workspace. Use when you need to define or modify the dependency relationships between assets. The provided dependencies list replaces all existing dependencies for the specified asset. |
| `BLAZEMETER_UPDATE_WORKSPACES_PACKAGES` | Update Workspace Package | Tool to update an existing package in a BlazeMeter workspace. Use when you need to modify package properties such as name, display name, version, or dependencies. The package name field is required even when updating other fields. |
| `BLAZEMETER_UPDATE_WORKSPACES_PACKAGES_DEPENDENCIES` | Update Workspace Package Dependencies | Tool to update package dependencies for a specific package in a workspace. Use when you need to add, modify, or remove dependencies for a package managed in BlazeMeter's artifact repository. |
| `BLAZEMETER_UPDATE_WORKSPACES_SERVICE_MOCK_TEMPLATES` | Update Workspace Service Mock Template | Tool to update a virtual service template configuration (Service Virtualization). Use when you need to modify settings like name, description, live system configuration, endpoint preferences, or request handling behavior for an existing virtual service template. |
| `BLAZEMETER_UPDATE_WORKSPACE_USER` | Update Workspace User | Tool to update a user's role and status within a BlazeMeter workspace. Use when you need to change a user's permissions (tester, manager, or viewer) or enable/disable their access. Only ONE role should be assigned per user. Requires valid workspace and user IDs. |
| `BLAZEMETER_UPLOAD_TEST_FILES` | Upload Test Files | Upload a file asset (script, data file, or configuration) to a BlazeMeter test. Use after creating a test via CREATE_TEST to attach JMX scripts, CSV data files, YAML Taurus configs, or other test resources before execution. |
| `BLAZEMETER_UPLOAD_WORKSPACES_ASSETS_DATA` | Upload Workspace Asset Data | Tool to upload asset data to a BlazeMeter workspace. Use when you need to upload CSV, JSON, or other data files to workspace assets for test data or configuration. |
| `BLAZEMETER_VALIDATE_TEST` | Validate Test | Tool to validate a specific test by its ID. Use after creating or updating a test to ensure its configuration is valid. |
| `BLAZEMETER_VALIDATE_WORKSPACES_ASSETS` | Validate Workspace Asset | Tool to validate a data model asset in a workspace for test data management. Use when you need to verify that a data model configuration is correct and passes validation rules before using it in tests. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

The Blazemeter MCP server is an implementation of the Model Context Protocol that connects your AI agent to Blazemeter. It provides structured and secure access so your agent can perform Blazemeter operations on your behalf through a secure, permission-based interface.
With Composio's managed implementation, you don't have to create your own developer app. For production, if you're building an end product, we recommend using your own credentials. The managed server helps you prototype fast and go from 0-1 faster.

## Step-by-step Guide

### 1. Prerequisites

Before starting, make sure you have:
- Composio API Key and OpenAI API Key
- Primary know-how of OpenAI Agents SDK
- A live Blazemeter project
- Some knowledge of Python or Typescript

### 1. Getting API Keys for OpenAI and Composio

OpenAI API Key
- Go to the [OpenAI dashboard](https://platform.openai.com/settings/organization/api-keys) and create an API key. You'll need credits to use the models, or you can connect to another model provider.
- Keep the API key safe.
Composio API Key
- Log in to the [Composio dashboard](https://dashboard.composio.dev?utm_source=toolkits&utm_medium=framework_docs).
- Go to Settings and copy your API key.

### 2. Install dependencies

Install the Composio SDK and the OpenAI Agents SDK.
```python
pip install composio_openai_agents openai-agents python-dotenv
```

```typescript
npm install @composio/openai-agents @openai/agents dotenv
```

### 3. Set up environment variables

Create a .env file and add your OpenAI and Composio API keys.
```bash
OPENAI_API_KEY=sk-...your-api-key
COMPOSIO_API_KEY=your-api-key
USER_ID=composio_user@gmail.com
```

### 4. Import dependencies

What's happening:
- You're importing all necessary libraries.
- The Composio and OpenAIAgentsProvider classes are imported to connect your OpenAI agent to Composio tools like Blazemeter.
```python
import asyncio
import os
from dotenv import load_dotenv

from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider
from agents import Agent, Runner, HostedMCPTool, SQLiteSession
```

```typescript
import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';
```

### 5. Set up the Composio instance

No description provided.
```python
load_dotenv()

api_key = os.getenv("COMPOSIO_API_KEY")
user_id = os.getenv("USER_ID")

if not api_key:
    raise RuntimeError("COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key")

# Initialize Composio
composio = Composio(api_key=api_key, provider=OpenAIAgentsProvider())
```

```typescript
dotenv.config();

const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;

if (!composioApiKey) {
  throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
  throw new Error('USER_ID is not set');
}

// Initialize Composio
const composio = new Composio({
  apiKey: composioApiKey,
  provider: new OpenAIAgentsProvider(),
});
```

### 6. Create a Tool Router session

What is happening:
- You give the Tool Router the user id and the toolkits you want available. Here, it is only blazemeter.
- The router checks the user's Blazemeter connection and prepares the MCP endpoint.
- The returned session.mcp.url is the MCP URL that your agent will use to access Blazemeter.
- This approach keeps things lightweight and lets the agent request Blazemeter tools only when needed during the conversation.
```python
# Create a Blazemeter Tool Router session
session = composio.create(
    user_id=user_id,
    toolkits=["blazemeter"]
)

mcp_url = session.mcp.url
```

```typescript
// Create Tool Router session for Blazemeter
const session = await composio.create(userId as string, {
  toolkits: ['blazemeter'],
});
const mcpUrl = session.mcp.url;
```

### 7. Configure the agent

No description provided.
```python
# Configure agent with MCP tool
agent = Agent(
    name="Assistant",
    model="gpt-5",
    instructions=(
        "You are a helpful assistant that can access Blazemeter. "
        "Help users perform Blazemeter operations through natural language."
    ),
    tools=[
        HostedMCPTool(
            tool_config={
                "type": "mcp",
                "server_label": "tool_router",
                "server_url": mcp_url,
                "headers": {"x-api-key": api_key},
                "require_approval": "never",
            }
        )
    ],
)
```

```typescript
// Configure agent with MCP tool
const agent = new Agent({
  name: 'Assistant',
  model: 'gpt-5',
  instructions:
    'You are a helpful assistant that can access Blazemeter. Help users perform Blazemeter operations through natural language.',
  tools: [
    hostedMcpTool({
      serverLabel: 'tool_router',
      serverUrl: mcpUrl,
      headers: { 'x-api-key': composioApiKey },
      requireApproval: 'never',
    }),
  ],
});
```

### 8. Start chat loop and handle conversation

No description provided.
```python
print("\nComposio Tool Router session created.")

chat_session = SQLiteSession("conversation_openai_toolrouter")

print("\nChat started. Type your requests below.")
print("Commands: 'exit', 'quit', or 'q' to end\n")

async def main():
    try:
        result = await Runner.run(
            agent,
            "What can you help me with?",
            session=chat_session
        )
        print(f"Assistant: {result.final_output}\n")
    except Exception as e:
        print(f"Error: {e}\n")

    while True:
        user_input = input("You: ").strip()
        if user_input.lower() in {"exit", "quit", "q"}:
            print("Goodbye!")
            break

        result = await Runner.run(
            agent,
            user_input,
            session=chat_session
        )
        print(f"Assistant: {result.final_output}\n")

asyncio.run(main())
```

```typescript
// Keep conversation state across turns
const conversationSession = new OpenAIConversationsSession();

// Simple CLI
const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  prompt: 'You: ',
});

console.log('\nComposio Tool Router session created.');
console.log('\nChat started. Type your requests below.');
console.log("Commands: 'exit', 'quit', or 'q' to end\n");

try {
  const first = await run(agent, 'What can you help me with?', { session: conversationSession });
  console.log(`Assistant: ${first.finalOutput}\n`);
} catch (e) {
  console.error('Error:', e instanceof Error ? e.message : e, '\n');
}

rl.prompt();

rl.on('line', async (userInput) => {
  const text = userInput.trim();

  if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
    console.log('Goodbye!');
    rl.close();
    process.exit(0);
  }

  if (!text) {
    rl.prompt();
    return;
  }

  try {
    const result = await run(agent, text, { session: conversationSession });
    console.log(`\nAssistant: ${result.finalOutput}\n`);
  } catch (e) {
    console.error('Error:', e instanceof Error ? e.message : e, '\n');
  }

  rl.prompt();
});

rl.on('close', () => {
  console.log('\n👋 Session ended.');
  process.exit(0);
});
```

## Complete Code

```python
import asyncio
import os
from dotenv import load_dotenv

from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider
from agents import Agent, Runner, HostedMCPTool, SQLiteSession

load_dotenv()

api_key = os.getenv("COMPOSIO_API_KEY")
user_id = os.getenv("USER_ID")

if not api_key:
    raise RuntimeError("COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key")

# Initialize Composio
composio = Composio(api_key=api_key, provider=OpenAIAgentsProvider())

# Create Tool Router session
session = composio.create(
    user_id=user_id,
    toolkits=["blazemeter"]
)
mcp_url = session.mcp.url

# Configure agent with MCP tool
agent = Agent(
    name="Assistant",
    model="gpt-5",
    instructions=(
        "You are a helpful assistant that can access Blazemeter. "
        "Help users perform Blazemeter operations through natural language."
    ),
    tools=[
        HostedMCPTool(
            tool_config={
                "type": "mcp",
                "server_label": "tool_router",
                "server_url": mcp_url,
                "headers": {"x-api-key": api_key},
                "require_approval": "never",
            }
        )
    ],
)

print("\nComposio Tool Router session created.")

chat_session = SQLiteSession("conversation_openai_toolrouter")

print("\nChat started. Type your requests below.")
print("Commands: 'exit', 'quit', or 'q' to end\n")

async def main():
    try:
        result = await Runner.run(
            agent,
            "What can you help me with?",
            session=chat_session
        )
        print(f"Assistant: {result.final_output}\n")
    except Exception as e:
        print(f"Error: {e}\n")

    while True:
        user_input = input("You: ").strip()
        if user_input.lower() in {"exit", "quit", "q"}:
            print("Goodbye!")
            break

        result = await Runner.run(
            agent,
            user_input,
            session=chat_session
        )
        print(f"Assistant: {result.final_output}\n")

asyncio.run(main())
```

```typescript
import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';

const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;

if (!composioApiKey) {
  throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
  throw new Error('USER_ID is not set');
}

// Initialize Composio
const composio = new Composio({
  apiKey: composioApiKey,
  provider: new OpenAIAgentsProvider(),
});

async function main() {
  // Create Tool Router session
  const session = await composio.create(userId as string, {
    toolkits: ['blazemeter'],
  });
  const mcpUrl = session.mcp.url;

  // Configure agent with MCP tool
  const agent = new Agent({
    name: 'Assistant',
    model: 'gpt-5',
    instructions:
      'You are a helpful assistant that can access Blazemeter. Help users perform Blazemeter operations through natural language.',
    tools: [
      hostedMcpTool({
        serverLabel: 'tool_router',
        serverUrl: mcpUrl,
        headers: { 'x-api-key': composioApiKey },
        requireApproval: 'never',
      }),
    ],
  });

  // Keep conversation state across turns
  const conversationSession = new OpenAIConversationsSession();

  // Simple CLI
  const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
    prompt: 'You: ',
  });

  console.log('\nComposio Tool Router session created.');
  console.log('\nChat started. Type your requests below.');
  console.log("Commands: 'exit', 'quit', or 'q' to end\n");

  try {
    const first = await run(agent, 'What can you help me with?', { session: conversationSession });
    console.log(`Assistant: ${first.finalOutput}\n`);
  } catch (e) {
    console.error('Error:', e instanceof Error ? e.message : e, '\n');
  }

  rl.prompt();

  rl.on('line', async (userInput) => {
    const text = userInput.trim();

    if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
      console.log('Goodbye!');
      rl.close();
      process.exit(0);
    }

    if (!text) {
      rl.prompt();
      return;
    }

    try {
      const result = await run(agent, text, { session: conversationSession });
      console.log(`\nAssistant: ${result.finalOutput}\n`);
    } catch (e) {
      console.error('Error:', e instanceof Error ? e.message : e, '\n');
    }

    rl.prompt();
  });

  rl.on('close', () => {
    console.log('\nSession ended.');
    process.exit(0);
  });
}

main().catch((err) => {
  console.error('Fatal error:', err);
  process.exit(1);
});
```

## Conclusion

This was a starter code for integrating Blazemeter MCP with OpenAI Agents SDK to build a functional AI agent that can interact with Blazemeter.
Key features:
- Hosted MCP tool integration through Composio's Tool Router
- SQLite session persistence for conversation history
- Simple async chat loop for interactive testing
You can extend this by adding more toolkits, implementing custom business logic, or building a web interface around the agent.

## How to build Blazemeter MCP Agent with another framework

- [Claude Agent SDK](https://composio.dev/toolkits/blazemeter/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/blazemeter/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/blazemeter/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/blazemeter/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/blazemeter/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/blazemeter/framework/hermes-agent)
- [CLI](https://composio.dev/toolkits/blazemeter/framework/cli)
- [Google ADK](https://composio.dev/toolkits/blazemeter/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/blazemeter/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/blazemeter/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/blazemeter/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/blazemeter/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/blazemeter/framework/crew-ai)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.
- [Appveyor](https://composio.dev/toolkits/appveyor) - AppVeyor is a cloud-based continuous integration service for building, testing, and deploying applications. It helps developers automate and streamline their software delivery pipelines.
- [Backendless](https://composio.dev/toolkits/backendless) - Backendless is a backend-as-a-service platform for mobile and web apps, offering database, file storage, user authentication, and APIs. It helps developers ship scalable applications faster without managing server infrastructure.
- [Baserow](https://composio.dev/toolkits/baserow) - Baserow is an open-source no-code database platform for building collaborative data apps. It makes it easy for teams to organize data and automate workflows without writing code.
- [Bench](https://composio.dev/toolkits/bench) - Bench is a benchmarking tool for automated performance measurement and analysis. It helps you quickly evaluate, compare, and track your systems or workflows.
- [Better stack](https://composio.dev/toolkits/better_stack) - Better Stack is a monitoring, logging, and incident management solution for apps and services. It helps teams ensure application reliability and performance with real-time insights.
- [Bitbucket](https://composio.dev/toolkits/bitbucket) - Bitbucket is a Git-based code hosting and collaboration platform for teams. It enables secure repository management and streamlined code reviews.
- [Blocknative](https://composio.dev/toolkits/blocknative) - Blocknative delivers real-time mempool monitoring and transaction management for public blockchains. Instantly track pending transactions and optimize blockchain interactions with live data.
- [Bolt iot](https://composio.dev/toolkits/bolt_iot) - Bolt IoT is a platform for building and managing IoT projects with cloud-based device control and monitoring. It makes connecting sensors and actuators to the internet seamless for automation and data insights.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Blazemeter MCP?

With a standalone Blazemeter MCP server, the agents and LLMs can only access a fixed set of Blazemeter tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Blazemeter and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with OpenAI Agents SDK?

Yes, you can. OpenAI Agents SDK fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Blazemeter tools.

### Can I manage the permissions and scopes for Blazemeter while using Tool Router?

Yes, absolutely. You can configure which Blazemeter scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Blazemeter data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
