This topic provides sample configuration snippets that demonstrate how to enable OpenAPI visibility features and control per-tool context behavior.

Enable all visibility features

The following example shows how to enable all visibility enrichment features, including filter examples, parameter examples, and per-tool context. It also sets limits for context files and character size. Use this configuration when you want to activate all visibility features::
{
  "openapi_visibility": {
  "add_filter_examples": true,
  "add_param_examples": true,
    "per_tool_context_enabled": true,
    "per_tool_context_max_files": 12,
    "per_tool_context_char_limit": 600,
    "context_dir": "./context"
  }
}

Enable only per-tool context

The following example shows a minimal configuration that enables per-tool context enrichment without activating other visibility features. Use this configuration when you want to enable only per-tool context:
{
  "openapi_visibility": {
    "per_tool_context_enabled": true,
    "context_dir": "./context"
  }
}

Example _index.json file with operation priorities

The _index.json file allows you to control global formatting defaults and set priorities for specific operations. Higher priority values ensure that those operations are enriched first. The following example shows how to set global defaults and elevate two operations using priority values:
{
  "defaults": {
    "priority": 0,
    "preserve_newlines": true,
    "max_lines": 5,
    "char_limit": 500
  },
  "operations": {
    "CreateOrder": { "priority": 90 },
    "SearchOrders": { "priority": 70 }
  }
}