PromptLayer MCP server integration for AI agents.
Connect AI agents to PromptLayer through 6 structured actions, including get prompt template, get request, and list prompt templates. Review authentication…
- ACTION CONTRACTS
- 6
- AUTHENTICATION
- API key
- SOURCE STATUS
- Provider-backed
CATALOG SOURCE REVIEWED AUGUST 23, 2026 / ACTION NAMES AND SCHEMAS DERIVED FROM WORKING MACHINES PROVIDER SOURCE
CAPABILITY PROFILE
What the PromptLayer integration exposes
The PromptLayer Agent App exposes 6 provider-backed actions for ai and developer tools work. Its current contract lets an authorized agent retrieve a promptlayer prompt template by name or id, retrieve a logged promptlayer request by request id, and list promptlayer prompt templates in the authenticated workspace. These operations are called through Working Machines as typed capabilities rather than through browser navigation or copied UI steps.
A connection uses API key. Before execution, the agent can inspect the selected action, its required fields, declared scopes, and expected output contract. Provider credentials remain inside the Working Machines runtime; the calling agent receives the capability and its structured result, not the underlying secret.
For reliable operation, start with the narrowest action that satisfies the task, resolve stable provider identifiers before changing state, and validate the returned object or status after execution. Availability still depends on the connected PromptLayer account, granted provider permissions, workspace policy, region, plan, and upstream API behavior.
VERIFIED ACTION SAMPLE
Real PromptLayer capabilities.
Showing 6 of 6 actions. Risk labels are conservative signals based on operation names, not substitutes for provider documentation or runtime policy.
get_prompt_templateREADRetrieve a PromptLayer prompt template by name or ID.
INPUTS: identifier / version / workspaceId / label / provider
get_requestREADRetrieve a logged PromptLayer request by request ID.
INPUTS: requestId
list_prompt_templatesREADList PromptLayer prompt templates in the authenticated workspace.
INPUTS: page / perPage / label / name / tags
list_table_sheet_rowsREADList rows for a PromptLayer Table sheet.
INPUTS: tableId / sheetId / includeSystemColumns / includeExecutionMetadataAggregates / cursor
list_table_sheetsREADList sheets for a PromptLayer Table.
INPUTS: tableId / cursor / limit / order / promptId
list_tablesREADList PromptLayer Tables in the authenticated workspace.
INPUTS: folderId / name / cursor / limit / order
INPUT CONTRACTS
Know what the action needs before it runs.
get_prompt_template
identifierREQUIRED- The prompt name or prompt ID to retrieve.
versionOPTIONAL- The prompt template version to retrieve.
workspaceIdOPTIONAL- The PromptLayer workspace ID to use for prompt retrieval.
labelOPTIONAL- The release label to retrieve, such as prod or dev.
providerOPTIONAL- The provider used when PromptLayer returns provider-specific LLM kwargs.
get_request
requestIdREQUIRED- The PromptLayer request ID to retrieve.
list_prompt_templates
pageOPTIONAL- The page number to retrieve.
perPageOPTIONAL- The number of prompt templates per page.
labelOPTIONAL- Filter prompt templates by release label.
nameOPTIONAL- Filter prompt templates by case-insensitive partial name.
tagsOPTIONAL- Tags that returned prompt templates must contain.
list_table_sheet_rows
tableIdREQUIRED- The PromptLayer Table UUID.
sheetIdREQUIRED- The PromptLayer sheet UUID.
includeSystemColumnsOPTIONAL- Whether to include system-managed metadata columns.
includeExecutionMetadataAggregatesOPTIONAL- Whether to include sheet-level and per-column execution metric aggregates.
cursorOPTIONAL- The pagination cursor returned by PromptLayer.
PROVIDER-SPECIFIC WORKFLOWS
Jobs this Agent App can support
Inspect Get Prompt Template
Retrieve a PromptLayer prompt template by name or ID. Use this as a bounded discovery step, retain the returned identifier, and avoid expanding the read beyond the task's stated scope.
get_prompt_templateVerify with Get Request
Retrieve a logged PromptLayer request by request ID. Compare the returned provider state with the intended outcome and preserve stable IDs or canonical links in the run record.
get_requestSAFETY BOUNDARY
Operate PromptLayer with explicit limits
- Authorize PromptLayer with API key and grant only the provider access required by the selected actions.
- The current action names appear read-oriented, but returned PromptLayer data may still be sensitive and should be minimized before it enters model context.
- Do not infer permission from catalog visibility. Workspace policy, connection identity, and upstream authorization still govern execution.
- No provider scope string is declared on the sampled actions. Verify the connected account's actual permissions in PromptLayer rather than assuming unrestricted access.
- After a call, inspect the structured result and execution record before reporting that the PromptLayer task completed successfully.
CONNECTION MODEL
API key
PromptLayer API key sent in the X-API-KEY header. Generate API keys from the API keys page in your PromptLayer dashboard: https://dashboard.promptlayer.com/.
Working Machines stores provider credentials behind the execution boundary. An agent can use an authorized connection identity, but catalog discovery alone does not reveal OAuth tokens, API keys, or provider secrets.
- READ SIGNALS
- 6
- WRITE SIGNALS
- 0
- HIGH IMPACT
- 0
- REVIEW SIGNALS
- 0
EVIDENCE AND AVAILABILITY
Provider reference
Action names, input fields, authentication types, and counts on this page are generated from the Working Machines provider catalog. Provider behavior, quotas, object semantics, account eligibility, and regional availability remain governed by PromptLayer.