List prompts at a remote MCP endpoint
const url = 'https://example.com/v1/mcp/endpoints/example/prompts';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/mcp/endpoints/example/prompts \ --header 'Authorization: Bearer <token>'Bootstraps a per-request MCP client against the endpoint, calls prompts/list, and returns the descriptors verbatim.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”MCPEndpointId — deployment-stable string identifier chosen by the caller.
Responses
Section titled “Responses”MCP prompt descriptors.
object
object
object
Examplegenerated
{ "data": [ { "name": "example", "description": "example", "arguments": [ { "name": "example", "description": "example", "required": true } ] } ]}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No MCP endpoint with that id under this tenant.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Remote MCP endpoint failed to serve prompts/list.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}