Expand description
Declarative tool-binding contracts from SPEC-0023.
This module is deliberately side-effect free: parsing resources and registering trusted factories does not load scripts, start processes, open a database, or resolve secrets.
Structsยง
- Binding
Restrictions - Core
Factory ๐ - Host
Tool Authority - Host-issued authority. Resource declarations can only narrow these grants.
- Loaded
Tool Resource - Resolved
Tool Binding - Resolved
Tool Resource - Scoped
File ๐Read - Scoped
Retrieval ๐ - Tool
Binding Request - Owned input to a trusted implementation factory.
- Tool
Binding Resource - A versioned standalone tool resource.
- Tool
Binding Settings - Tool
Implementation Catalog - Tool
Implementation Descriptor - Immutable, side-effect-free metadata supplied by a trusted implementation.
Enumsยง
Constantsยง
Traitsยง
- Tool
Implementation Factory - Trusted executable registration. Binding may initialize local resources but discovery and descriptor access remain side-effect free.
Functionsยง
- bind_
resources - binding_
metadata ๐ - cli_
resource_ directories - compatibility_
binding_ ๐metadata - compatibility_
binding_ ๐metadata_ versioned - core_
catalog - core_
metadata_ catalog - Backwards-compatible name for callers that only inspect descriptors.
- derive_
public_ ๐schema - inspection_
value - inspection_
values - is_
secret_ ๐reference - load_
named_ resource - load_
resources - Load sorted layers and replace whole resources only when explicitly requested.
- load_
resources_ ๐selected - mcp_
reference - normalize_
resource_ ๐path - reserved_
public_ ๐name - resolve_
mcp_ binding - resolve_
resources - resolve_
unprepared_ ๐mcp_ binding - resource_
directories - Choose tool resource paths using the same explicit-config isolation as agents.
- sanitize_
metadata ๐ - schema_
properties ๐ - toml_
table_ ๐to_ json - valid_
environment_ ๐name - validate_
binding_ arguments - Validate arguments against the strict, side-effect-free schema subset used by declarative binding descriptors.
- validate_
fixed ๐ - validate_
identifier ๐ - validate_
mcp_ ๐declaration - validate_
object_ ๐schema - validate_
schema_ ๐value - Validate the strict schema subset used by built-in descriptors. Factories remain responsible for semantic checks and any additional Draft 2020-12 keywords.