# How to connect PromptLayer to Grok Bot

```json
{
  "title": "How to connect PromptLayer to Grok Bot",
  "toolkit": "PromptLayer",
  "toolkit_slug": "promptlayer",
  "framework": "Grok Bot",
  "framework_slug": "grok-bot",
  "url": "https://composio.dev/toolkits/promptlayer/framework/grok-bot",
  "markdown_url": "https://composio.dev/toolkits/promptlayer/framework/grok-bot.md",
  "updated_at": "2026-11-19T07:03:04.588Z"
}
```

## Introduction

Grok is xAI's assistant, and its bot builder lets you create a personal agent that holds context, runs skills, and connects to the apps you already use through plugins.
This guide explains how to connect PromptLayer to a Grok bot using Composio Connect, which handles OAuth, token refresh, and reliability so you do not have to. You add Composio as a plugin, authenticate once, then ask your bot to work with PromptLayer in plain language.
For exact tool slugs and parameter tables, see the [tool catalog in the Composio docs](https://docs.composio.dev/toolkits/promptlayer).

## TL;DR

Composio exposes 2,000+ apps to your Grok bot through a single connection, so you get:
- Connect to 2,000+ apps with on-demand tool loading, so you do not fill your context window with unnecessary tool definitions.
- Use programmatic tool calling through a remote workbench, letting the model write its own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
- Handle large tool responses outside the model context to keep conversations lean.

## Connect PromptLayer to Grok Bot

### Connecting PromptLayer to Grok Bot
Once Grok Bot is set up, you connect PromptLayer entirely from its interface, and the whole flow takes under a minute.
### Set up Grok Bot
Get access. Grok Bot is included with Cursor Ultra, Cursor Premium Teams, and SuperGrok Heavy. Get the desktop app for macOS or Windows from [x.ai/bot](https://x.ai/bot) and sign in. An iPhone companion app is also available, and your bots sync across devices.
Create a bot. Pick a suggested role or define your own, then give it a short name, one primary job, and a short description of how it should work. Focused bots work best, because a clear role gives the bot more useful context over time.
### Connect PromptLayer
### 1. Add the Composio plugin
Click the button. The Composio listing on x.ai opens and launches Grok Bot for you. If the app does not open on its own, click Add to Grok Bot.
[Add to Grok Bot](https://x.ai/bot/plugin/32661537)
Grok Bot opens the Composio plugin, showing its connector and skills. Click Add.
### 2. Authenticate
Go to the Installed section and click the Composio entry. You'll see its connector and skills listed.
Click Authenticate. You'll be taken to the Composio consent screen. Review the access it requests and click Authorize. Composio handles the OAuth handshake for you, so you never touch API keys or tokens.
### 3. Connect your PromptLayer account
Back in the chat, ask your bot to connect to PromptLayer or give it any PromptLayer task.
For example, ask it to:
- "List failed PromptLayer requests today"
- "Compare prompt versions by evaluation score"
- "Run saved PromptLayer prompt with variables"
It will prompt you to authenticate and authorize access.
That's it. Composio's tools are now available in your Grok bot, and your PromptLayer account is ready to use.

## What is Grok Bot?

Grok is xAI's assistant, available as a chat interface and a bot builder for creating personal agents that run skills and connect to external apps.
With Composio Connect, your Grok bot can securely access apps like PromptLayer through MCP without you sharing account credentials directly with the agent.

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

The PromptLayer MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your PromptLayer account. It provides structured and secure access to your prompts, request logs, workflows, tools, skill collections, and tables, so your agent can find prompt templates, inspect LLM activity, browse workflows, review registered resources, and analyze table data on your behalf.
- Prompt discovery and inspection: Have your agent search prompt templates and retrieve specific versions, messages, model settings, snippets, or release details for review.
- Request monitoring and analysis: Instruct your agent to search LLM request logs and inspect recorded inputs, outputs, timing, usage, metadata, tags, and scores.
- Workflow and tool exploration: Let the agent find workflows and registered tools, then retrieve their definitions without running them.
- Skill and workspace browsing: Direct your agent to browse folders, registry items, and skill collections, including the files stored in a selected collection.
- Table data review: Have your agent find tables, inspect their sheets and columns, and read rows with optional schema and execution summaries.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `PROMPTLAYER_ADD_TABLE_ROWS` | Add Table Rows | Append one or more rows to a PromptLayer Table sheet in the API key's workspace. Text-column values can be set immediately; non-text cells are created stale and need a separate recalculation. |
| `PROMPTLAYER_ATTACH_FOLDER_EXTERNAL_ID` | Attach Folder External ID | Attach an external-system identifier to an existing PromptLayer folder. Supply the folder ID, the external system's source namespace, and its identifier for the folder. |
| `PROMPTLAYER_ATTACH_PROMPT_TEMPLATE_EXTERNAL_ID` | Attach Prompt Template External ID | Attach an external system identifier to an existing PromptLayer prompt template. Supply the template ID, external namespace (source), and external ID. Returns the attached mapping; a mapping assigned to another entity conflicts. |
| `PROMPTLAYER_ATTACH_REGISTERED_TOOL_EXTERNAL_ID` | Attach Registered Tool External ID | Attach an external-system identifier to an existing PromptLayer registered tool. Supply its tool ID, source namespace, and external identifier. Returns the attached mapping; does not execute the registered tool. |
| `PROMPTLAYER_ATTACH_SKILL_COLLECTION_EXTERNAL_ID` | Attach Skill Collection External ID | Attach an external system identifier to a PromptLayer skill collection by UUID. Returns the attached source and external ID mapping; conflicting mappings return an error. |
| `PROMPTLAYER_ATTACH_WORKFLOW_EXTERNAL_ID` | Attach Workflow External ID | Attach an external-system identifier to an existing PromptLayer workflow. Supply the workflow ID, the external system's source namespace, and its identifier for the workflow. |
| `PROMPTLAYER_CANCEL_TABLE_SHEET_OPERATION` | Cancel Table Sheet Operation | Cancel an active PromptLayer Table sheet recalculation operation. The Table, sheet, and operation must belong to the API key's workspace. A successful response can mean no active operation was found: inspect cancelled_cell_count and message rather than treating success alone as proof of cancellation. |
| `PROMPTLAYER_CANCEL_TABLE_SHEET_SCORECARD` | Cancel Table Sheet Scorecard | Cancel queued or running scorecard work for a PromptLayer table sheet. Optionally restrict cancellation to row indices and scorecard step IDs. The table and sheet must belong to the API key's workspace. Inspect cancelled_count to distinguish cancellation from a no-op. |
| `PROMPTLAYER_CLOSE_TRACE` | Close Trace | Close a PromptLayer trace, permanently preventing further span ingestion for that trace through spans-bulk or OTLP /v1/traces. An already closed trace returns a conflict. The provider documents this endpoint, but its public API returned route-not-found during live verification; closure availability is unverified. |
| `PROMPTLAYER_CONFIGURE_TABLE_SHEET_SCORE` | Configure Table Sheet Score | Configure scoring for a PromptLayer Table sheet using columns, boolean or numeric scoring, or custom code. Updates configuration and reports whether recalculation is required; does not queue or execute score calculation. All resource IDs must belong to the API key's workspace. |
| `PROMPTLAYER_CONFIGURE_TABLE_SHEET_SCORECARD` | Configure Table Sheet Scorecard | Create or update the active scorecard for a PromptLayer table sheet. Set its name, evaluated columns, evaluation steps, and aggregation settings. This configures the scorecard; calculation is queued separately. Resource IDs must belong to the API key's workspace. |
| `PROMPTLAYER_CREATE_FOLDER` | Create Folder | Create a PromptLayer folder at the workspace root or inside a parent folder, optionally attaching external identifiers. The name must be unique within its parent. Uses the API key's workspace unless workspace_id is supplied. |
| `PROMPTLAYER_CREATE_PROMPT_TEMPLATE_LABEL` | Create Prompt Template Label | Create a release label for a specific version of a PromptLayer prompt template. Supply the template ID, version number, and label name. This labels stored content without executing an LLM. |
| `PROMPTLAYER_CREATE_REGISTERED_TOOL` | Create Registered Tool | Create a PromptLayer registered tool and its initial version in the API key's workspace using an OpenAI function-calling definition. Optionally set a folder, external identifiers, and a sandbox-executable implementation. Returns the created tool and version; does not test-execute the tool. |
| `PROMPTLAYER_CREATE_REGISTERED_TOOL_ENV_VAR` | Create Registered Tool Environment Variable | Create an environment variable scoped to a registered PromptLayer tool, identified by numeric ID or name. Supply a value or leave it empty to create a placeholder. An existing key on the same tool returns a conflict; use the update action to change it. |
| `PROMPTLAYER_CREATE_REGISTERED_TOOL_VERSION` | Create Registered Tool Version | Create a new version of an existing PromptLayer registered tool by numeric ID or name using an OpenAI function-calling definition. Optionally configure a sandbox-executable body and commit message. Returns the new version; does not invoke or test-execute the registered tool. |
| `PROMPTLAYER_CREATE_SKILL_COLLECTION` | Create Skill Collection | Create a PromptLayer skill collection in the API key's workspace, optionally with initial text files, a destination folder, provider, and external IDs. Uses the JSON creation endpoint; ZIP uploads are not supported by this action. |
| `PROMPTLAYER_CREATE_TABLE` | Create Table | Create a PromptLayer Table in the API key's workspace, optionally in a folder. By default creates Sheet 1 with a Column A text column and one empty row; set create_default_sheet to false to create a table without sheets. |
| `PROMPTLAYER_CREATE_TABLE_COLUMN` | Create Table Column | Add a column to a PromptLayer Table sheet in the API key's workspace. Provide a title and column type, with type-specific config and dependency edges when needed. Non-text columns generate cells for all existing rows. |
| `PROMPTLAYER_CREATE_TABLE_SHEET` | Create Table Sheet | Create a sheet in a PromptLayer Table in the API key's workspace. Omit source for a blank sheet with Column A and one empty row (201), or import a base64 CSV/JSON file or request log history asynchronously (202). For imports, poll the returned operation_id using the table operation endpoint to track completion. |
| `PROMPTLAYER_CREATE_TABLE_SHEET_OPERATION` | Create Table Sheet Operation | Queue recalculation of a PromptLayer Table sheet, optionally selecting columns, zero-based rows, and cell statuses. Text columns cannot be recalculated. Returns operation and execution IDs for asynchronous work, a zero cell count for no-op, or a confirmation token to resend when confirmation is required. IDs must belong to the API key's workspace. Computed columns may incur costs. |
| `PROMPTLAYER_CREATE_TABLE_SHEET_VERSION` | Create Table Sheet Version | Create a named snapshot of a PromptLayer Table sheet, or restore an existing version while creating a new version. Provide name for a snapshot; provide source_version_id to restore, optionally with name. Restoring changes the sheet's current contents. All IDs must belong to the API key's workspace. |
| `PROMPTLAYER_CREATE_WORKFLOW` | Create Workflow | Create a PromptLayer workflow, or a new version of an existing workflow. Use name for a new workflow (omit to auto-generate), or workflow_id or workflow_name to version an existing workflow. Supply the complete node list with at least one output node; optionally attach conditional edges, release labels, external identifiers, and required input variables. |
| `PROMPTLAYER_CREATE_WORKSPACE_ENV_VAR` | Create Workspace Environment Variable | Create a workspace environment variable in the API key's workspace. Supply a unique key and optionally a value, or create an empty placeholder. Returns the variable ID and metadata, including only the value suffix. |
| `PROMPTLAYER_DELETE_FOLDER_ENTITIES` | Delete Folder Entities | Delete PromptLayer registry entities by ID and type. Folders must be empty unless cascade is true, which recursively deletes their contents. Returns the affected entity count in moved_count. |
| `PROMPTLAYER_DELETE_FOLDER_EXTERNAL_ID` | Delete Folder External ID | Detach an external identifier from a PromptLayer folder using its folder ID, source namespace, and external ID value. Removes only the external-ID mapping; the folder and its contents remain. |
| `PROMPTLAYER_DELETE_PROMPT_TEMPLATE_EXTERNAL_ID` | Delete Prompt Template External ID | Detach an external identifier from a PromptLayer prompt template using its template ID, source namespace, and external ID value. Removes only the external-ID mapping; the prompt template remains. |
| `PROMPTLAYER_DELETE_PROMPT_TEMPLATE_LABEL` | Delete Prompt Template Label | Delete a PromptLayer prompt template release label by its label ID. Removes the label without deleting the prompt template or its versions. Use Get Prompt Template Labels to find the label ID. Returns no content. |
| `PROMPTLAYER_DELETE_REGISTERED_TOOL_ENV_VAR` | Delete registered tool environment variable | Delete one tool-scoped environment variable from a PromptLayer registered tool identified by its ID or name. Requires the environment variable's integer ID. This removes the stored variable, not the registered tool or workspace-scoped variables. |
| `PROMPTLAYER_DELETE_REGISTERED_TOOL_EXTERNAL_ID` | Delete Registered Tool External ID | Detach an external identifier from a PromptLayer registered tool using its tool ID, source namespace, and external ID value. Removes only the external-ID mapping; the registered tool remains. |
| `PROMPTLAYER_DELETE_SKILL_COLLECTION_EXTERNAL_ID` | Delete Skill Collection External ID | Detach one external ID mapping from a PromptLayer skill collection by its UUID, source, and external ID. Removes the mapping without deleting the collection. |
| `PROMPTLAYER_DELETE_TABLE` | Delete Table | Soft delete a PromptLayer Table by UUID, removing it from active list responses. The Table must belong to the workspace associated with the API key. |
| `PROMPTLAYER_DELETE_TABLE_COLUMN` | Delete Table Column | Delete a column and its cells from a PromptLayer Table sheet. Creates a new sheet version and may mark downstream dependent cells as stale. The Table, sheet, and column must belong to the API key's workspace. |
| `PROMPTLAYER_DELETE_TABLE_SHEET` | Delete Table Sheet | Soft delete a sheet from a PromptLayer Table, removing it from active sheet list responses. Both IDs must belong to the API key's workspace, and edit permission is required. |
| `PROMPTLAYER_DELETE_TABLE_SHEET_SCORECARD` | Delete Table Sheet Scorecard | Soft-delete the active scorecard for a PromptLayer table sheet. The table and sheet must belong to the API key's workspace. This removes the scorecard, not the table or sheet. |
| `PROMPTLAYER_DELETE_WORKFLOW_EXTERNAL_ID` | Delete Workflow External ID | Detach an external identifier from a PromptLayer workflow using its workflow ID, source namespace, and external ID value. Removes only the external-ID mapping; the workflow remains. |
| `PROMPTLAYER_DELETE_WORKSPACE_ENV_VAR` | Delete workspace environment variable | Delete a PromptLayer workspace environment variable by its integer ID. The variable must belong to the workspace associated with the API key. |
| `PROMPTLAYER_GET_PROMPT_SNIPPET_USAGE` | Get Prompt Snippet Usage | Get the prompts, version numbers, and labels using a prompt-template snippet by name or numeric ID. Optionally check usage for a specific snippet version. |
| `PROMPTLAYER_GET_PROMPT_TEMPLATE` | Get Prompt Template | Retrieve a prompt template version, release label, messages, model metadata, snippets, and optionally provider-ready kwargs without executing it. |
| `PROMPTLAYER_GET_REGISTERED_TOOL` | Get Registered Tool | Retrieve a PromptLayer registered tool definition by ID or name at a selected version or release label without test execution. |
| `PROMPTLAYER_GET_REQUEST_ANALYTICS` | Get Request Analytics | Read aggregated PromptLayer request-log analytics, including costs, tokens, latency percentiles, time series, and usage breakdowns. Optionally narrow results with text search or recursive filters; no request logs are modified. |
| `PROMPTLAYER_GET_REQUEST_LOG` | Get Request Log | Retrieve one PromptLayer request log with its recorded input, output, timing, usage, metadata, tags, and scores. |
| `PROMPTLAYER_GET_REQUEST_SEARCH_SUGGESTIONS` | Get Request Search Suggestions | Get autocomplete suggestions for a PromptLayer request-log search field. Optionally filter by a case-insensitive prefix or JSON-encoded filter group. Value fields require metadata_key; prompt_id only filters the prompt field. |
| `PROMPTLAYER_GET_SKILL_COLLECTION` | Get Skill Collection | Retrieve a PromptLayer skill collection and its files as JSON at a selected version or release label. |
| `PROMPTLAYER_GET_TABLE` | Get Table | Retrieve one PromptLayer Table's metadata and per-sheet row counts by UUID. |
| `PROMPTLAYER_GET_TABLE_CELL` | Get Table Cell | Retrieve a single cell by UUID from a PromptLayer Table sheet. Returns its value, computation status, and available request metrics for prompt-template cells. All IDs must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SCORECARD_CALCULATION` | Get Table Scorecard Calculation | Get a single scorecard calculation for a PromptLayer table sheet by its calculation UUID. Returns execution status, available aggregate score and verdict, criterion summaries, and drift metadata. The table, sheet, and calculation must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SCORECARD_ROW` | Get Table Scorecard Row | Get the row-level scorecard breakdown for a zero-based row index in a PromptLayer table sheet, including aggregate score, verdict, step results, and drift or staleness metadata. Defaults to the latest calculation; provide calculation_id to read a specific calculation. |
| `PROMPTLAYER_GET_TABLE_SHEET` | Get Table Sheet | Get metadata for one sheet in a PromptLayer Table, including its row count, display order, and current version. Both IDs must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SHEET_IMPORT_OPERATION` | Get Table Sheet Import Operation | Poll the status of an asynchronous PromptLayer Table sheet import using its operation ID. Returns progress, row counts, and completion or failure details. The Table and operation must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SHEET_OPERATION` | Get Table Sheet Operation | Poll a PromptLayer Table sheet recalculation operation by its operation ID. Returns progress, cell status counts, and completion or failure status. The Table, sheet, and operation must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SHEET_SCORE` | Get Table Sheet Score | Retrieve the current score payload for a PromptLayer table sheet, including calculation status, scoring configuration, per-column results, and aggregate scores. Does not configure or recalculate scores. The table and sheet must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SHEET_SCORECARD` | Get Table Sheet Scorecard | Get the active scorecard for a PromptLayer table sheet, including its evaluation steps, latest and display calculation metadata, summaries, and progress. Returns a null scorecard when none is configured. The table and sheet must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SHEET_SCORE_HISTORY` | Get Table Sheet Score History | Retrieve score-history points across saved versions of a PromptLayer table sheet, with optional history range, resolution, and maximum point count. Returns points and sampling metadata. The table and sheet must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TABLE_SHEET_VERSION` | Get Table Sheet Version | Retrieve one saved PromptLayer Table sheet version, including its snapshot and recorded changes. Table, sheet, and version IDs must belong to the API key's workspace. |
| `PROMPTLAYER_GET_TRACE` | Get Trace | Retrieve a PromptLayer trace by its trace ID, including its spans and any associated request-log IDs. |
| `PROMPTLAYER_GET_WORKFLOW` | Get Workflow | Retrieve a PromptLayer workflow definition by ID or name at a specific version or release label without running it. |
| `PROMPTLAYER_GET_WORKFLOW_EXECUTION_RESULTS` | Get Workflow Execution Results | Retrieve results of an already-started PromptLayer workflow execution. Returns the main output by default, or each output node's value, status, and errors with return_all_outputs=true. In-progress executions are also returned; inspect node statuses and retrieve again later. Does not run a workflow. |
| `PROMPTLAYER_IMPORT_TABLE_SHEET_FILE` | Import Table Sheet File | Start an asynchronous CSV import into an existing PromptLayer Table sheet. Provide the CSV filename and base64-encoded content. A queued response does not mean the import is complete; poll the returned status_url. The Table and sheet must belong to the API key's workspace. |
| `PROMPTLAYER_IMPORT_TABLE_SHEET_REQUEST_LOGS` | Import Request Logs Into Table Sheet | Start an asynchronous request-history import into an existing PromptLayer Table sheet. Provide specific request_log_ids or a structured filter_group to select logs in the API key's workspace. Returns an operation_id and status_url to poll; acceptance does not mean the rows have finished importing. |
| `PROMPTLAYER_INGEST_OTLP_TRACES` | Ingest OTLP Traces | Ingest OpenTelemetry traces using OTLP JSON, optionally gzip-compressed. Returns partialSuccess rejection details when some spans are rejected. Set close_after to close the submitted traces and reject subsequent writes. |
| `PROMPTLAYER_INGEST_SPANS` | Ingest Spans | Persist a batch of OpenTelemetry-style observability spans and optional associated request logs in PromptLayer without invoking a model. Supply nanosecond span timestamps. Optionally close all traces in the batch to reject subsequent writes. Inspect rejected_span_ids, rejected_trace_ids and rejection_reason for dropped spans, even when success is true. |
| `PROMPTLAYER_LIST_FOLDER_ENTITIES` | List Folder Entities | Browse or search PromptLayer folders and registry entities in the API-key workspace, optionally recursively and with metadata. |
| `PROMPTLAYER_LIST_FOLDER_EXTERNAL_IDS` | List Folder External IDs | List all external identifier mappings attached to a PromptLayer folder by its folder ID. Returns each mapping's source namespace and external ID, or an empty list when the folder has no external IDs. |
| `PROMPTLAYER_LIST_PROMPT_TEMPLATE_EXTERNAL_IDS` | List Prompt Template External IDs | List all external system identifiers attached to a PromptLayer prompt template by its numeric ID. Returns each mapping's source namespace and external ID. This endpoint returns the complete list without pagination. |
| `PROMPTLAYER_LIST_PROMPT_TEMPLATE_LABELS` | List Prompt Template Labels | List all release labels for a prompt template by name or numeric ID, including each label's associated version ID and version number. |
| `PROMPTLAYER_LIST_PROMPT_TEMPLATES` | List Prompt Templates | Search and page through PromptLayer prompt templates and snippets without executing a model. |
| `PROMPTLAYER_LIST_REGISTERED_TOOL_ENV_VARS` | List Registered Tool Environment Variables | List environment variables for a PromptLayer registered tool by ID or name. Returns names, masked value suffixes and placeholder status, not full values. |
| `PROMPTLAYER_LIST_REGISTERED_TOOL_EXTERNAL_IDS` | List Registered Tool External IDs | List all external identifier mappings attached to a registered PromptLayer tool by its tool ID. Returns each mapping's source namespace and external ID, or an empty list when none are attached. Does not execute the tool. |
| `PROMPTLAYER_LIST_REGISTERED_TOOLS` | List Registered Tools | List and filter tools defined in PromptLayer's tool registry without executing them. |
| `PROMPTLAYER_LIST_SKILL_COLLECTION_EXTERNAL_IDS` | List Skill Collection External IDs | List all external system identifier mappings attached to a PromptLayer skill collection by UUID. Returns each mapping's source and external ID. |
| `PROMPTLAYER_LIST_SKILL_COLLECTIONS` | List Skill Collections | List and filter PromptLayer skill collections available in the API-key workspace. |
| `PROMPTLAYER_LIST_TABLE_COLUMNS` | List Table Columns | List one page of user and optionally system columns for a PromptLayer Table sheet. |
| `PROMPTLAYER_LIST_TABLE_ROWS` | List Table Rows | Read one page of rows and cells from a PromptLayer Table sheet, with optional schema and execution aggregates. |
| `PROMPTLAYER_LIST_TABLES` | List Tables | Search and page through PromptLayer Tables by folder, name, or referenced prompt. |
| `PROMPTLAYER_LIST_TABLE_SCORECARD_ROWS` | List Table Scorecard Rows | List one page of row-level scorecard summaries for a PromptLayer table sheet. Defaults to the latest calculation; optionally select a calculation or filter by aggregate verdict. Pass the returned next_cursor as cursor to continue. |
| `PROMPTLAYER_LIST_TABLE_SHEET_OPERATIONS` | List Table Sheet Operations | List active recalculation operations and cell status counts for a PromptLayer Table sheet in the API key's workspace. Returns the sheet version, total and pending cell counts, and progress for active operations. |
| `PROMPTLAYER_LIST_TABLE_SHEETS` | List Table Sheets | List one page of sheets in a PromptLayer Table, optionally filtering by referenced prompt. |
| `PROMPTLAYER_LIST_TABLE_SHEET_VERSIONS` | List Table Sheet Versions | List one page of saved versions for a PromptLayer Table sheet in the API key's workspace. Returns version details and pagination metadata. To continue, pass pagination.next_cursor as cursor with the same sort and order. |
| `PROMPTLAYER_LIST_WORKFLOW_EXTERNAL_IDS` | List Workflow External IDs | List all external system identifiers attached to a PromptLayer workflow by its numeric ID. Returns each mapping's source namespace and external ID. This endpoint returns the complete list without pagination. |
| `PROMPTLAYER_LIST_WORKFLOW_LABELS` | List Workflow Labels | List all release labels for a PromptLayer workflow by ID or name, including the version ID and version number each label points to. |
| `PROMPTLAYER_LIST_WORKFLOWS` | List Workflows | Search and page through PromptLayer workflows without running them. |
| `PROMPTLAYER_LIST_WORKSPACE_ENV_VARS` | List Workspace Env Vars | List environment variables for the API key's PromptLayer workspace. Returns keys, scope IDs, timestamps, empty-value flags, and only the last four characters of stored values, rather than plaintext values. |
| `PROMPTLAYER_LOG_REQUEST` | Log Request | Log an existing model request and response in PromptLayer with timing, usage, cost, tags, metadata, and optional prompt association. This records supplied data without invoking an LLM. Chat message content must be an array of content blocks, not a plain string. Returns the created request log ID. |
| `PROMPTLAYER_MIGRATE_TABLE_SHEET_LEGACY_SCORE` | Migrate Table Sheet Legacy Score | Convert a PromptLayer Table sheet's existing legacy score configuration into scorecard criteria. Optionally delete the legacy score configuration after conversion. Returns the scorecard, converted count, skipped scores, and sheet version. Resource IDs must belong to the API key's workspace. |
| `PROMPTLAYER_MOVE_FOLDER_ENTITIES` | Move Folder Entities | Move PromptLayer registry entities into a destination folder or to the workspace root. Supply each entity's ID and type; omit folder_id or set it to null to move to the root. Returns the number of moved entities. |
| `PROMPTLAYER_MOVE_PROMPT_TEMPLATE_LABEL` | Move Prompt Template Label | Move an existing PromptLayer release label to a different version of the same prompt template. Supply the label ID and destination version number; the label's name and identity are preserved. |
| `PROMPTLAYER_PATCH_PROMPT_TEMPLATE_VERSION` | Patch Prompt Template Version | Create a new version of an existing PromptLayer template by patching its latest version, a specific version, or a release label. Patch chat messages/tools/functions or completion content by index or replace whole arrays, tune model parameters, and optionally move release labels. Omitted fields are preserved; explicit null removes supported settings. This stores a new version without executing an LLM or modifying the base version. |
| `PROMPTLAYER_PATCH_WORKFLOW` | Patch Workflow | Partially update a PromptLayer workflow by ID or name, creating a new version from the latest or a specified base version. Add, deep-merge, or remove nodes; replace dependencies, inputs, or edges; and attach release labels. The resulting workflow must retain an output node. Does not execute the workflow. |
| `PROMPTLAYER_PUBLISH_PROMPT_TEMPLATE` | Publish Prompt Template | Publish a PromptLayer registry prompt template and a new version of its chat or completion content. Creates a template or adds a version to the existing prompt name. Optionally attach tags, model metadata, release labels, and external IDs. This stores the prompt without executing an LLM. |
| `PROMPTLAYER_QUERY_REQUEST_ANALYTICS` | Query Request Analytics | Read custom aggregate analytics over PromptLayer request logs. Compute counts, numeric aggregates, percentiles, grouped or time-series charts, and multi-series ratio insights, optionally narrowed with search and recursive filters. Does not modify request logs or save charts. |
| `PROMPTLAYER_QUERY_TRACE_ANALYTICS` | Query Trace Analytics | Read custom aggregate analytics over PromptLayer traces and spans with recursive filters. Compute counts, costs, tokens, durations, percentiles, grouped charts, histograms, or multi-series results. Each chart must use exclusively trace-level or span-level fields; span charts cannot use timeSeries. No traces or saved charts are modified. |
| `PROMPTLAYER_RECALCULATE_TABLE_CELL` | Recalculate Table Cell | Trigger recalculation for one PromptLayer Table cell. Returns an execution ID when recalculation starts, or a message when no cells need recalculation. All IDs must belong to the API key's workspace. Computed columns may incur execution costs depending on their type. |
| `PROMPTLAYER_RECALCULATE_TABLE_CELLS` | Recalculate Table Cells | Trigger recalculation for a batch of PromptLayer Table cells by ID. Returns an execution ID when recalculation starts, or a message when no cells need recalculation. All IDs must belong to the API key's workspace. Computed columns may incur execution costs depending on their type. |
| `PROMPTLAYER_RECALCULATE_TABLE_SHEET_SCORE` | Recalculate Table Sheet Score | Queue recalculation of an existing PromptLayer Table sheet score configuration. Scoring must already be configured; this action does not configure scoring or wait for calculation to finish. The Table and sheet must belong to the API key's workspace. |
| `PROMPTLAYER_RECALCULATE_TABLE_SHEET_SCORECARD` | Recalculate Table Sheet Scorecard | Queue recalculation of an existing PromptLayer table sheet scorecard, optionally limited to row indices and step UUIDs. The scorecard must already be configured. Returns a calculation ID and status without waiting for completion. Resources must belong to the API key's workspace. |
| `PROMPTLAYER_RENDER_PROMPT_TEMPLATE` | Render Prompt Template | Retrieve a prompt template by name or ID and render provider-ready llm_kwargs with input_variables using POST. Optionally select a version or release label and obtain provider-specific llm_kwargs with model parameter overrides. Does not execute an LLM call or save a template version. Use GET_PROMPT_TEMPLATE for the raw template read without input-variable substitution. The prompt_template response may retain raw placeholders; the substituted content is in llm_kwargs. |
| `PROMPTLAYER_RESOLVE_FOLDER_ID` | Resolve Folder ID | Resolve a PromptLayer folder's ID from its dot-separated folder path within a specified workspace. Returns the folder ID for subsequent folder operations; a nonexistent path returns a not-found error. |
| `PROMPTLAYER_RUN_WORKFLOW` | Run Workflow | Start an execution of a PromptLayer workflow by name, using its latest version or one specified label or version number. Returns an execution ID, not the completed output; retrieve results with Get Workflow Execution Results. Optionally supply inputs, metadata, or an HTTP callback URL for asynchronous delivery. |
| `PROMPTLAYER_SAVE_SKILL_COLLECTION_VERSION` | Save Skill Collection Version | Create a new saved version of a PromptLayer skill collection by UUID, name, or root path. Send file text updates, path moves, and deletions as JSON, with an optional commit message and release label. |
| `PROMPTLAYER_SEARCH_REQUEST_LOGS` | Search Request Logs | Search PromptLayer request logs by text or structured filters and return one rate-limited page sorted by operational fields. |
| `PROMPTLAYER_TEST_EXECUTE_REGISTERED_TOOL` | Test Execute Registered Tool | Execute a PromptLayer registered tool's code in its sandbox by ID or name, optionally selecting a version or label and testing unsaved code or a tool definition. Executes real code and may cause its configured side effects. User-code failures are returned as result.status='error' in a successful HTTP response. |
| `PROMPTLAYER_TRACK_GROUP` | Track Group | Associate an existing PromptLayer request log with an existing group using their integer IDs. Returns confirmation of the association. |
| `PROMPTLAYER_TRACK_METADATA` | Track Metadata | Associate custom metadata with an existing PromptLayer request log using its request ID. Returns a confirmation message. |
| `PROMPTLAYER_TRACK_PROMPT` | Track Prompt | Associate an existing PromptLayer request log with a named prompt template, optionally specifying its version or release label and the variables used to render it. This updates the log's prompt association; it does not run a model. |
| `PROMPTLAYER_TRACK_SCORE` | Track Score | Record a score from 0 to 100 on an existing PromptLayer request log. Supply the request_id returned by logging a request and optionally a score name; omitting the name records the default score. |
| `PROMPTLAYER_UPDATE_FOLDER` | Update Folder | Rename an existing PromptLayer folder by ID. The new name must be unique within its parent folder. Returns the updated folder metadata. |
| `PROMPTLAYER_UPDATE_REGISTERED_TOOL_ENV_VAR` | Update Registered Tool Environment Variable | Replace the stored value of an existing PromptLayer registered tool environment variable by tool ID or name and variable ID. Requires a non-empty value and leaves the variable name unchanged. Returns metadata and the value's last four characters, not the full stored value. |
| `PROMPTLAYER_UPDATE_SKILL_COLLECTION` | Update Skill Collection | Rename a PromptLayer skill collection identified by UUID, name, or root path. |
| `PROMPTLAYER_UPDATE_TABLE` | Update Table | Update a PromptLayer Table's title or folder by UUID. The table and folder must belong to the API key's workspace. Omitted fields remain unchanged. |
| `PROMPTLAYER_UPDATE_TABLE_CELL` | Update Table Cell | Edit the display value or structured value of a PromptLayer table cell. Only text-column cells can be edited directly; computed cells recalculate automatically. All IDs must belong to the API key's workspace. |
| `PROMPTLAYER_UPDATE_TABLE_COLUMN` | Update Table Column | Update a PromptLayer Table sheet column's title, configuration, or dependencies. Returns whether existing cell values require recalculation and affected column IDs. All IDs must belong to the API key's workspace. |
| `PROMPTLAYER_UPDATE_TABLE_SHEET` | Update Table Sheet | Update a PromptLayer Table sheet's title or zero-based display position. The Table and sheet must belong to the API key's workspace. |
| `PROMPTLAYER_UPDATE_WORKSPACE_ENV_VAR` | Update Workspace Environment Variable | Replace the stored value of an existing PromptLayer workspace environment variable by ID. Requires a non-empty value; returns metadata and the value's last four characters, not the full value. The variable's name is unchanged. |
| `PROMPTLAYER_UPSERT_PROMPT_TEMPLATE_BY_EXTERNAL_ID` | Upsert Prompt Template by External ID | Create or update a PromptLayer registry prompt template identified by an external source and ID. Creates the template when the mapping does not exist; otherwise publishes a new version of the same template. Supply registry metadata and chat or completion content, with optional release labels and additional external IDs. Stores the prompt without executing an LLM. |

## Supported Triggers

None listed.

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

Once connected, your Grok bot can access the PromptLayer MCP server through Composio to run the actions you authorize, using plain language in the chat.

## Complete Code

None listed.

## Conclusion

### Way Forward
Now that PromptLayer is connected, extend your setup by connecting the other apps you already use every day, so your Grok bot can run true cross-app workflows end to end.
- Connect Calendar to turn threads into scheduled meetings automatically.
- Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
- Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
- Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.
Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single connection, your bot can coordinate multiple tools safely and reliably in one conversation.

## How to build PromptLayer MCP Agent with another framework

None listed.

## Related Toolkits

- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.
- [Composio search](https://composio.dev/toolkits/composio_search) - Composio search is a unified web search toolkit spanning travel, e-commerce, news, financial markets, images, and more. It lets you and your apps tap into up-to-date web data from a single, easy-to-integrate service.
- [Perplexityai](https://composio.dev/toolkits/perplexityai) - Perplexityai delivers natural, conversational AI models for generating human-like text. Instantly get context-aware, high-quality responses for chat, search, or complex workflows.
- [Browser tool](https://composio.dev/toolkits/browser_tool) - Browser tool is a virtual browser integration that lets AI agents interact with the web programmatically. It enables automated browsing, scraping, and action-taking from any AI workflow.
- [Ai ml api](https://composio.dev/toolkits/ai_ml_api) - Ai ml api is a suite of AI/ML models for natural language and image tasks. It provides fast, scalable access to advanced AI capabilities for your apps and workflows.
- [Aivoov](https://composio.dev/toolkits/aivoov) - Aivoov is an AI-powered text-to-speech platform offering 1,000+ voices in over 150 languages. Instantly turn written content into natural, human-like audio for any application.
- [All images ai](https://composio.dev/toolkits/all_images_ai) - All-Images.ai is an AI-powered image generation and management platform. It helps you create, search, and organize images effortlessly with advanced AI capabilities.
- [AllModels](https://composio.dev/toolkits/allmodels) - AllModels is a unified API for text-to-speech, speech-to-text, realtime voice, and voice cloning across AI providers. It gives developers one consistent way to build and manage voice features.
- [AltTextLab](https://composio.dev/toolkits/alt_text_lab) - AltTextLab is an AI service that generates accessible, SEO-aware alt text for images. It helps teams make image content easier to understand, index, and publish.
- [Anthropic administrator](https://composio.dev/toolkits/anthropic_administrator) - Anthropic administrator is an API for managing Anthropic organizational resources like members, workspaces, and API keys. It helps you automate admin tasks and streamline resource management across your Anthropic organization.
- [Artificial Analysis](https://composio.dev/toolkits/artificial_analysis) - Artificial Analysis is an independent benchmarking platform for AI models and API providers. Use it to compare model intelligence, coding, math, pricing, latency, throughput, and arena rankings.
- [AssemblyAI](https://composio.dev/toolkits/assemblyai) - AssemblyAI is a speech-to-text and audio intelligence API for uploaded or hosted media. Use it to turn audio and video into accurate transcripts, summaries, and insights.
- [Astica ai](https://composio.dev/toolkits/astica_ai) - Astica ai provides APIs for computer vision, NLP, and voice synthesis. Integrate advanced AI features into your app with a single API key.
- [Avoma](https://composio.dev/toolkits/avoma) - Avoma is an AI meeting assistant for recording, transcribing, analyzing, and managing meetings, calls, notes, scorecards, and conversation intelligence. It helps teams turn conversations into searchable notes, follow-ups, coaching insights, and revenue intelligence.
- [Bigml](https://composio.dev/toolkits/bigml) - BigML is a machine learning platform that lets you build, train, and deploy predictive models from your data. Its intuitive interface and robust API make machine learning accessible and efficient.
- [Black Forest Labs](https://composio.dev/toolkits/bfl) - Black Forest Labs provides hosted FLUX models for generating and editing images and videos. It offers fast, flexible media creation with asynchronous processing and fine-tuning support.
- [Bland AI](https://composio.dev/toolkits/bland_ai) - Bland AI is a conversational AI platform for building voice agents, phone calls, messaging, and communication workflows. Use it to automate calling, evaluate conversations, and run voice operations at scale.
- [Botbaba](https://composio.dev/toolkits/botbaba) - Botbaba is a platform for building, managing, and deploying conversational AI chatbots across messaging channels. It streamlines chatbot automation, making it easier to integrate AI into customer interactions.
- [BotMape](https://composio.dev/toolkits/botmape) - BotMape is an API platform for building AI agents, knowledge bases, conversations, and messages. Use it to manage agent workflows and track usage analytics from one place.
- [Botpress](https://composio.dev/toolkits/botpress) - Botpress is an open-source platform for building, deploying, and managing chatbots. It helps teams automate conversations and deliver rich, interactive messaging experiences.

## Frequently Asked Questions

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

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

### Can I use Tool Router MCP with Grok Bot?

Yes, you can. Grok Bot 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 PromptLayer tools.

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

Yes, absolutely. You can configure which PromptLayer 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 PromptLayer data and credentials are handled as safely as possible.

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