---
title: "Render a prompt"
method: POST
path: "/projects/{projectId}/servers/{serverId}/prompts/get"
tags: ["Execution"]
---

# Render a prompt

`POST /projects/{projectId}/servers/{serverId}/prompts/get`

Renders a prompt with arguments and returns the MCP `GetPromptResult` directly (`description?`, `messages`).

## Path parameters

- `projectId` string, required
- `serverId` string, required

## Request body

- object
  - `promptName` string, required — Prompt name, exactly as returned by the prompts list.
  - `arguments` object — Prompt arguments. String, number, and boolean values.

## Response `200`

The MCP `GetPromptResult`.

- GetPromptResult — MCP prompt render result, returned verbatim from the server.
  - `description` string
  - `messages` object[], required
    - `role` 'user' | 'assistant', required
    - `content` unknown, required

## Other responses

- `400` — Malformed body or parameters.
- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `422` — The target server doesn't support this MCP capability.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.
- `502` — Could not connect to the target MCP server.
- `504` — The target MCP server connected but didn't respond in time.

---

[API](https://skmtc.net/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.net/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mcpjam/mcpjam-api/revisions/d3adfe49fbbf/schema)
