---
updatedAt: 2025-08-11T17:51:01.000Z
agentTools:
  projectIndex: https://netra-apex.readme.io/llms.txt
---

# Check tool permissions

Check if user has permission to use a specific tool

This is useful for UI elements to show/hide tool options dynamically.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Netra AI Optimization Platform API",
    "version": "1.0.0",
    "description": "Enterprise-grade system for optimizing AI workloads. This API provides endpoints for agent orchestration, workflow management, and AI optimization tools.",
    "contact": {
      "name": "Netra Support",
      "email": "support@netra.ai",
      "url": "https://netra.ai/support"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://netra.ai/license"
    }
  },
  "paths": {
    "/api/tools/permissions/{tool_name}": {
      "get": {
        "tags": [
          "unified-tools"
        ],
        "summary": "Check tool permissions",
        "description": "Check if user has permission to use a specific tool\n\nThis is useful for UI elements to show/hide tool options dynamically.",
        "operationId": "check_tool_permissions_api_tools_permissions__tool_name__get",
        "parameters": [
          {
            "name": "tool_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool Name"
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Action to check",
              "default": "execute",
              "title": "Action"
            },
            "description": "Action to check"
          },
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Response Check Tool Permissions Api Tools Permissions  Tool Name  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "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"
      }
    }
  },
  "servers": [
    {
      "url": "http://localhost:8000",
      "description": "Local development server"
    },
    {
      "url": "https://api.netra.ai",
      "description": "Production server"
    },
    {
      "url": "https://staging-api.netra.ai",
      "description": "Staging server"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKey": []
    }
  ]
}
```