Skip to content
Arxo Arxo

analyze_architecture

Run architecture analysis on your project. Returns agent architecture metrics (reliability, governance, safety, coordination for agent and LLM-powered code) and OpenClaw architecture metrics (config security, skill governance, observability, supply chain). The response includes composite scores, per-detector findings with evidence (file, line, reason), and recommendations.

ParameterTypeRequiredDescription
project_pathstringYesAbsolute or relative path to the project root directory
config_pathstringNoPath to a custom arxo.yaml configuration file
output_formatstringNojson (default) or openarch

The tool runs the published metrics:

  • agent_architecture — Composite scores (overall agent health, reliability, governance readiness, safety protocol score, coordination maturity), per-detector findings (loop guards, schema validation, observability, MCP governance) with file, line, and recommendation
  • openclaw_architecture — Config security, skill governance, observability, and supply chain scores and findings

Returns a JSON summary with computed metrics, findings, and any policy violations.

{
"results": [
{
"id": "agent_architecture",
"version": "string",
"data": [ { "key": "string", "value": { "kind": "number", "v": 0.0 } } ],
"findings": [ ]
},
{
"id": "openclaw_architecture",
"version": "string",
"data": [ ],
"findings": [ ]
}
],
"violations": [ ],
"violations_count": 0,
"ui_schemas": { }
}

results[].data includes entries such as agent_architecture.overall_agent_health, openclaw_architecture.overall_openclaw_health, and per-detector gap scores. findings list evidence with file, line, and recommendation.

Request:

{
"project_path": "."
}

Response (summary):

{
"results": [
{
"id": "agent_architecture",
"version": "1.0.0",
"data": [
{ "key": "agent_architecture.overall_agent_health", "value": { "kind": "number", "v": 0.72 } },
{ "key": "agent_architecture.agent_reliability_score", "value": { "kind": "number", "v": 75.0 } }
],
"findings": [
{
"rule_id": "arxo/agent-loop-guard-absence",
"severity": "warning",
"evidence": [ { "file": "src/agent.py", "line": 42, "reason": "No max_steps or timeout" } ],
"recommendation": "Add step or time limit to prevent runaway loops."
}
]
}
],
"violations": [],
"violations_count": 0
}
ErrorCauseSolution
missing required parameter: project_pathproject_path not providedInclude project_path in request
No such file or directoryInvalid project pathVerify path exists and is accessible
Failed to load configInvalid YAML in config fileCheck YAML syntax in config_path
  • Caching: Results are cached by (project_path, config). Repeated calls with the same parameters return cached results until the TTL expires.
  • Cache TTL: Default 300 seconds (5 minutes). Configure via --cache-ttl in the MCP server args.
  • arxo_config_help — Config schema and examples
  • arxo_config_validate — Validate arxo.yaml before analysis
  • arxo_config_suggest — Generate a suggested config for the project
Terminal window
arxo analyze