> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gumloop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get MCP server prompt

> Render one prompt template with arguments and return its messages.



## OpenAPI

````yaml post /mcp/servers/{server_id}/prompts/get
openapi: 3.0.0
info:
  title: Public API
  version: 1.0.0
servers:
  - url: https://api.gumloop.com/api/v1
security: []
paths:
  /mcp/servers/{server_id}/prompts/get:
    post:
      tags:
        - MCP
      summary: Get MCP server prompt
      description: Render one prompt template with arguments and return its messages.
      operationId: getMcpServerPrompt
      parameters:
        - in: path
          name: server_id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Prompt name from List MCP server prompts.
                arguments:
                  type: object
                  additionalProperties: true
                  description: Argument values for the template.
                team_id:
                  type: string
                  description: Scope the lookup to a single team.
      responses:
        '200':
          description: The rendered prompt.
          content:
            application/json:
              schema:
                type: object
                required:
                  - server_id
                  - name
                  - messages
                properties:
                  server_id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
                    nullable: true
                  messages:
                    type: array
                    items:
                      type: object
                      required:
                        - role
                      properties:
                        role:
                          type: string
                          example: user
                        content:
                          type: object
                          additionalProperties: true
                          description: >-
                            An MCP content block, for example `{"type": "text",
                            "text": "..."}`.
        '400':
          description: Invalid request body.
        '401':
          description: Unauthorized — missing or invalid Gumloop API credentials.
        '403':
          description: >-
            Forbidden — the caller cannot use agents in the team, or the server
            is disabled by organization policy.
        '404':
          description: Server not found.
        '409':
          description: The server is not connected.
        '502':
          description: The MCP server could not be reached or returned an error.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >
            curl
            'https://api.gumloop.com/api/v1/mcp/servers/gumloop_notion/prompts/get'
            \
              -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
              -H 'Content-Type: application/json' \
              -d '{"name": "summarize_page", "arguments": {"page_id": "2f1a9c7e"}, "team_id": "YOUR_TEAM_ID"}'
        - lang: python
          label: Python
          source: >
            from gumloop import Gumloop


            client = Gumloop(access_token="YOUR_ACCESS_TOKEN")


            response = client.mcp.get_prompt("gumloop_notion", "summarize_page",
            {"page_id": "2f1a9c7e"}, team_id="YOUR_TEAM_ID")

            for message in response.messages:
                print(message.role, message.content)
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A personal API key or an [OAuth 2.0](/api-reference/oauth) access token.
        Personal API keys also require the `x-auth-key` header with your user
        ID.

````