Defines and validates the cache hints required by modern MCP results.
The method set is pinned to the CacheableResult implementors in the
vendored 2026-07-28 schema. A schema-sync test derives that set directly
from schema.json, so a future spec update cannot silently leave this
runtime table stale.
This module validates wire metadata only. It does not store or reuse responses.
Summary
Functions
Returns whether a method has a cacheable complete result in MCP 2026-07-28.
Returns the schema-defined methods whose complete results carry cache hints.
Validates cache hints for a classified modern result.
Types
Functions
Returns whether a method has a cacheable complete result in MCP 2026-07-28.
@spec methods() :: [String.t()]
Returns the schema-defined methods whose complete results carry cache hints.
@spec validate(term(), result_kind(), map()) :: :ok | {:error, validation_error()}
Validates cache hints for a classified modern result.