Tools
tools
AXMTool surface over the config doctor.
:class:ConfigDoctorTool is the deterministic config_doctor tool: it wraps
:func:axm_config.doctor.config_doctor_data and shapes the result as a
:class:~axm.tools.base.ToolResult. All business logic lives in the central
function; this module only adds the MCP/CLI boundary (success/error shaping),
so CLI and MCP share the exact same provenance computation.
ConfigDoctorTool
Report config-key provenance (env/file/default), read-only.
Satisfies the :class:~axm.tools.base.AXMTool protocol structurally. The
tool is diagnostic: it never mutates any config layer, it only reports
which layer would win per key.
Source code in packages/axm-config/src/axm_config/tools.py
name
property
Unique tool identifier.
execute(*, namespace=None)
Return the provenance report for namespace (or all known).
On success, data is the {"<ns>.<key>": {layer, present}}
mapping from :func:config_doctor_data. Any failure is shaped into
ToolResult(success=False, error=...) at the MCP boundary.