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

# Deactivate a tool

> Sets the tool inactive. Requires tools:publish.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml post /tools/{id}/deactivate
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /tools/{id}/deactivate:
    post:
      tags:
        - tools
      summary: Deactivate a tool
      description: Sets the tool inactive. Requires tools:publish.
      parameters:
        - name: id
          in: path
          description: Tool ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/api.ToolResponse'
        '403':
          description: Forbidden
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '404':
          description: Not Found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api.ToolResponse:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/api.ToolResponseAttributes'
        governed_metadata:
          type: object
          description: Governed metadata (Enterprise); see LLMResponse.
        governed_metadata_status:
          type: string
        id:
          type: string
        type:
          type: string
      description: Tool response model
    api.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string
      description: Error response model
    api.ToolResponseAttributes:
      type: object
      properties:
        active:
          type: boolean
        allow_internal_host:
          type: boolean
          description: >-
            AllowInternalHost: the tool's own API hosts may be internal
            addresses

            (an administrator's switch).
        app_grantable:
          type: boolean
        auth_key:
          type: string
        auth_schema_name:
          type: string
        dependencies:
          type: array
          items:
            $ref: '#/components/schemas/api.ToolResponse'
        description:
          type: string
        file_stores:
          type: array
          items:
            $ref: '#/components/schemas/api.FileStoreResponse'
        filters:
          type: array
          items:
            $ref: '#/components/schemas/api.FilterResponse'
        has_auth_key:
          type: boolean
        mcp_access_enabled:
          type: boolean
        mcp_endpoint_url:
          type: string
        name:
          type: string
        namespace:
          type: string
        oas_spec:
          type: string
        operations:
          type: array
          items:
            type: string
        privacy_score:
          type: integer
        rest_access_enabled:
          type: boolean
          description: >-
            Access methods. Chat is always available and is not listed.

            AppGrantable is false for a chat-only tool, which cannot be bound to
            an

            App.
        rest_endpoint_url:
          type: string
          description: >-
            Gateway URLs of the two access methods, built from TOOL_DISPLAY_URL
            (or

            PROXY_URL) and the slug. Empty for client tools and when no base URL
            is

            configured. They say where a method is served, not whether it is on.
        slug:
          type: string
          description: >-
            Slug is the path segment the gateway serves the tool under. It is

            computed server-side (with transliteration), so clients must not
            derive

            it from the name.
        tool_type:
          type: string
        tracing_content_mode_max:
          type: string
          description: Agent tracing content mode cap (Enterprise); "" is no cap.
        workspace_id:
          type: integer
          description: WorkspaceID is the Workspace that owns the tool (admin responses).
    api.FileStoreResponse:
      type: object
      properties:
        attributes:
          type: object
          properties:
            description:
              type: string
            file_name:
              type: string
            last_processed_on:
              type: string
            length:
              type: integer
            workspace_id:
              type: integer
              description: |-
                WorkspaceID is the Workspace that owns the entry (Enterprise
                Workspaces); a stored 0 reads as the Default.
        id:
          type: string
        type:
          type: string
      description: FileStore response model
    api.FilterResponse:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/api.FilterAttributes'
        id:
          type: string
        type:
          type: string
      description: Filter response model
    api.FilterAttributes:
      type: object
      properties:
        config:
          type: object
          additionalProperties: true
        description:
          type: string
        kind:
          type: string
        name:
          type: string
        namespace:
          type: string
        response_filter:
          type: boolean
        script:
          type: array
          items:
            type: integer
        workspace_id:
          type: integer
          description: WorkspaceID is the Workspace that owns the filter.
      description: Filter attributes
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````