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

# Get a tool schema

> Read a public tool's metadata, input schema, and output schema.



## OpenAPI

````yaml /openapi.json get /v1/tools/{tool_key}
openapi: 3.1.0
info:
  title: Mouter API
  version: '1.0'
  description: Discover tools, submit tasks, and read results and charges.
servers:
  - url: https://api.mouter.ai
    description: Production
security: []
paths:
  /v1/tools/{tool_key}:
    get:
      tags:
        - Tools and prices
      summary: Get a tool schema
      description: Read a public tool's metadata, input schema, and output schema.
      operationId: get_tool
      parameters:
        - name: tool_key
          in: path
          required: true
          description: The public tool key.
          schema:
            type: string
            pattern: ^[a-z][a-z0-9_]{0,63}$
            example: image_compress
      responses:
        '200':
          description: Get a tool schema
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    $ref: '#/components/schemas/ToolDetail'
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
        '400':
          $ref: '#/components/responses/Error400'
        '404':
          $ref: '#/components/responses/Error404'
        '503':
          $ref: '#/components/responses/Error503'
components:
  schemas:
    ToolDetail:
      type: object
      properties:
        tool_key:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,63}$
        display_name:
          type: string
        description:
          type: string
        status:
          type: string
          enum:
            - active
            - disabled
        category_key:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,63}$
        category_name:
          type: string
        subcategory:
          anyOf:
            - type: string
            - type: 'null'
        subcategory_name:
          anyOf:
            - type: string
            - type: 'null'
        input_schema:
          type: object
          description: Public JSON Schema for tool inputs.
        output_schema:
          type: object
          description: Public JSON Schema for the task result.
      required:
        - tool_key
        - display_name
        - description
        - status
        - category_key
        - category_name
        - subcategory
        - subcategory_name
        - input_schema
        - output_schema
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - code
        - message
        - data
        - request_id
  responses:
    Error400:
      description: Invalid request parameters, headers, or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error404:
      description: The resource is unavailable to this caller.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: The operation is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.