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

# Get MCP tool schema

> Returns the arguments an MCP tool takes, both as a flat list of its top-level arguments and as its full JSON Schema. Call it before executing so the arguments match the tool's types.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json get /v1/stable/mcp-tool/{toolID}/schema
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/mcp-tool/{toolID}/schema:
    get:
      tags:
        - MCP Tool
      summary: Get MCP tool schema
      description: Returns the arguments an MCP tool takes, both as a flat list of its
        top-level arguments and as its full JSON Schema. Call it before
        executing so the arguments match the tool's types.
      operationId: StableMCPToolController_getSchema
      parameters:
        - name: toolID
          required: true
          in: path
          schema:
            type: string
          x-vf-doc:
            description: The ID of the MCP tool whose arguments to read.
          description: The ID of the MCP tool whose arguments to read.
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
        - name: environmentAlias
          required: true
          in: query
          schema:
            type: string
            description: The alias of the environment to operate on (e.g. `main`).
      responses:
        "200":
          description: Returns the ID of the MCP server the tool belongs to, its top-level
            arguments, and its full JSON Schema.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StableMCPToolSchemaReadResponse"
          x-vf-doc:
            description: Returns the ID of the MCP server the tool belongs to, its top-level
              arguments, and its full JSON Schema.
      security:
        - token: []
components:
  schemas:
    StableMCPToolSchemaReadResponse:
      type: object
      properties:
        serverID:
          type: string
          description: The ID of the MCP server the tool belongs to.
        inputs:
          type: array
          items:
            $ref: "#/components/schemas/StableExecuteInput"
          description: The tool's top-level arguments, read from its JSON Schema.
        inputSchema:
          type: object
          additionalProperties: {}
          description: The tool's full JSON Schema, for nested arguments the flat list
            cannot show.
      required:
        - serverID
        - inputs
        - inputSchema
    StableExecuteInput:
      type: object
      properties:
        name:
          type: string
          description: The input name, used as its key in `inputs` when executing.
        type:
          type: string
          description: The JSON type the value must have, such as `string`, `number` or
            `boolean`. Always `string` for a function or an API tool, and `any`
            when an MCP tool does not say.
        required:
          type: boolean
          description: Whether execute needs a value for this input.
        description:
          nullable: true
          description: What the input holds, as the tool describes it.
          type: string
      required:
        - name
        - type
        - required
        - description
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
