Package apiserving.mcp

Index

McpToolVisibility

Profile describing the visibility restriction of an MCP tool. Key: "google.com/tool.profiles/visibility.restriction"

Fields
visibility_restriction

string

The visibility restriction labels for the tool itself (e.g., "PRODUCER_DEFINED_PREVIEW"). Multiple labels can be provided as a comma-separated string.

field_visibility[]

FieldVisibility

A list of field-level visibility restrictions.

visibility_enforcement_strategy

VisibilityEnforcementStrategy

The strategy used to enforce visibility restrictions. DO NOT USE. This field is not yet implemented.

FieldVisibility

Visibility rules for individual tool parameters (fields). This allows producers to hide specific fields in tools/list and tools/call.

Fields
selector

string

The name of the parameter in the input_schema or output_schema.

restriction

string

The visibility restriction labels for this field (comma-separated).

VisibilityEnforcementStrategy

Strategy for enforcing visibility restrictions.

Enums
VISIBILITY_ENFORCEMENT_STRATEGY_UNSPECIFIED Default. Equivalent to COMBINE.
COMBINE The principal must satisfy both API-level tool-level) visibility restrictions.
OVERRIDE Bypasses the API-level visibility restrictions check; access is determined solely by the tool-level visibility restrictions.