# Get application configuration schema

`application_definitions.get_config_schema`

Read the exact application-definition JSON Schema plus schemas and defaults for selected block kinds. Public MCP callers may alternatively read levr://application-definitions/config-schema; internal application-builder agents should call this tool.

[Application definitions guide](https://docs.levr.ai/mcp/resources/application_definitions.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "block_kinds": {
      "description": "Block kinds whose exact schemas and defaults should be returned in block_catalog. Request only the kinds relevant to the current task so the authoring context stays focused.",
      "items": {
        "enum": [
          "text",
          "long_text",
          "integer",
          "decimal",
          "boolean",
          "dropdown",
          "multiselect",
          "catalog_select",
          "date",
          "datetime",
          "email",
          "url",
          "address",
          "file",
          "signature",
          "group",
          "list",
          "heading",
          "paragraph",
          "banner"
        ],
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array",
      "uniqueItems": true
    }
  },
  "required": [
    "block_kinds"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "block_catalog": {
          "description": "Exact schemas and defaults for the requested application block kinds.",
          "items": {
            "additionalProperties": false,
            "properties": {
              "accepts_children": {
                "type": "boolean"
              },
              "allowed_child_families": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "available_slots": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "block_kind": {
                "type": "string"
              },
              "config_schema": {
                "type": "object"
              },
              "default_config": {
                "type": "object"
              },
              "establishes_data_scope": {
                "type": "boolean"
              },
              "family": {
                "type": "string"
              },
              "supports_repetition": {
                "type": "boolean"
              }
            },
            "required": [
              "block_kind",
              "family",
              "accepts_children",
              "supports_repetition",
              "establishes_data_scope",
              "available_slots",
              "allowed_child_families",
              "config_schema",
              "default_config"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "schema": {
          "description": "Top-level JSON Schema for a complete application definition config.",
          "type": "object"
        }
      },
      "required": [
        "schema",
        "block_catalog"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
