Skip to main content
Glama

run_prompt_completion

Execute prompt templates with variables to generate model responses, requiring billing metadata for cost attribution.

Instructions

Execute a prompt template with variables and get the model completion response. REQUIRES billing metadata (client_id, app, env).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prompt_idYesPrompt ID or slug to execute
variablesYesVariable values to substitute into the template
metadataYesBilling metadata - client_id, app, env are REQUIRED for cost attribution
hyperparametersNoOverride default hyperparameters
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-b-e-n-s-o-n/portkey-admin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server