datarobot_genai.drmcpbase.fastmcp_transforms.utils
utils
get_header_value
Read a header by lowercase name (FastMCP normalizes keys; scan only as fallback).
Source code in datarobot_genai/drmcpbase/fastmcp_transforms/utils.py
parse_bool_header
Parse an optional boolean header; unrecognized values fall back to default.
Source code in datarobot_genai/drmcpbase/fastmcp_transforms/utils.py
parse_disabled_categories
Resolve the category-gate headers to the set of disabled category names.
Every gate defaults to enabled; only an explicit false disables its
category for this request.
Source code in datarobot_genai/drmcpbase/fastmcp_transforms/utils.py
get_tool_category
Category name stamped by the providers, or None for untagged (built-in) tools.
Source code in datarobot_genai/drmcpbase/fastmcp_transforms/utils.py
is_category_disabled_for_request
Return True when a category gate disables category_name for the current request.
Safe to call from providers, including outside an HTTP request (startup retrospection, in-process clients): any failure to read the request context means "no gates", preserving the default-enabled behavior.