Skip to main content

Module dynamic_tools

Module dynamic_tools 

Source

Structs§

DeprecatedAlias
A deprecated tool that has been folded into a primary tool (#509 Phase 1).
DynamicToolState

Enums§

ToolCategory

Constants§

INTERNAL_HOST_TOOLS
Host-integration hooks: called by a host extension (the Claude Code mod’s $.mcp.call), never by an agent. Advertising them would only spend prompt tokens on a tool the model must not use.
LOCAL_COLLABORATION_COMPATIBILITY_TOOLS
Local collaboration substrate that remains callable for installed users but is excluded from every public MCP tool surface.

Functions§

categorize_tool
deprecated_alias
Single source of truth for read-cluster deprecations (#509). Returns the replacement + migration hint when name is a deprecated alias, else None.
deprecation_notice
The one-line deprecation notice prepended to a deprecated alias’s output. Stable per tool (no timestamps/counters) so provider-side prompt caching stays byte-stable (#498).
global
init_all_enabled
init_from_config
Initializes the global state from user config (env var > config.toml > default). Call once during server startup after config is loaded. If the global was already initialized (e.g. by a concurrent global() call), applies the categories to the existing state instead.
is_deprecated_alias
Whether name is a deprecated alias hidden from tools/list (#509).
is_local_collaboration_compatibility_tool
Whether a registered tool is retained only for local compatibility and must never be advertised from a public tool-definition path.
is_publicly_advertised_tool
Whether a registered tool belongs on a public MCP tool surface.
is_readonly_tool