{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grepr/json-schema/grepr-tool-descriptor-schema.json",
  "title": "ToolDescriptor",
  "description": "A user-selectable agent tool, surfaced so a UI can offer the set of tools an agent may enable.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grepr-agents-api-openapi.yml#/components/schemas/ToolDescriptor",
  "properties": {
    "description": {
      "description": "A short, human-readable summary of what the tool does.",
      "type": "string"
    },
    "label": {
      "description": "The tool's name as people read it, such as \"Query logs\", or null where a catalog has none; left out of the JSON when null.",
      "type": "string"
    },
    "name": {
      "description": "The tool name, matching what the worker registers and validates against an agent's `enabledTools`.",
      "type": "string"
    }
  },
  "type": "object"
}