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

# Get Tool Registry

Retrieve a tool from the Tool Registry by ID or name. Optionally resolve a specific version using the `label` or `version` query parameter. If neither is specified, the latest version is returned.

The `identifier` can be either:

* A numeric tool ID (e.g., `123`)
* A tool name (e.g., `get_weather`)


## OpenAPI

````yaml GET /api/public/v2/tool-registry/{identifier}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/tool-registry/{identifier}:
    get:
      tags:
        - tool-registry
      summary: Get Tool Registry
      operationId: get_tool_registry
      parameters:
        - name: identifier
          in: path
          required: true
          schema:
            type: string
            description: Tool ID (numeric) or name
        - name: label
          in: query
          required: false
          schema:
            type: string
            description: Resolve version by label name (e.g. production)
        - name: version
          in: query
          required: false
          schema:
            type: string
            description: Resolve by specific version number
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  tool_registry:
                    type: object
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      workspace_id:
                        type: integer
                      labels:
                        type: array
                        items:
                          type: object
                      version:
                        type: object
                        nullable: true
                      tool_definition:
                        type: object
                        nullable: true
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  responses:
    UnauthorizedError:
      description: Unauthorized - missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ValidationError:
      description: Validation error - request parameters or body are invalid.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/HTTPValidationError'
              - $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          default: false
          description: Indicates that the request failed.
        message:
          type: string
          description: Human-readable error message.
        error:
          type: string
          description: Machine-readable or fallback error message.
      additionalProperties: true
      description: >-
        Standard error response. Some legacy endpoints may return either message
        or error.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````