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

# Validate Tool



## OpenAPI

````yaml POST /admin/tool/custom/validate
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /admin/tool/custom/validate:
    post:
      tags:
        - public
      summary: Validate Tool
      operationId: validate_tool
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateToolRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateToolResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    ValidateToolRequest:
      properties:
        definition:
          additionalProperties: true
          type: object
          title: Definition
      type: object
      required:
        - definition
      title: ValidateToolRequest
    ValidateToolResponse:
      properties:
        methods:
          items:
            $ref: '#/components/schemas/MethodSpec'
          type: array
          title: Methods
      type: object
      required:
        - methods
      title: ValidateToolResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MethodSpec:
      properties:
        name:
          type: string
          title: Name
        summary:
          type: string
          title: Summary
        path:
          type: string
          title: Path
        method:
          type: string
          title: Method
        spec:
          additionalProperties: true
          type: object
          title: Spec
      type: object
      required:
        - name
        - summary
        - path
        - method
        - spec
      title: MethodSpec
    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:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````