Start with safe defaults
Use these defaults unless you have a good reason not to:cloudeval capabilities --format jsoncloudeval doctor --format jsoncloudeval doctor --mcp --format jsonbefore MCP client setup--format json--non-interactive--profile <name>--print-url --no-open- stored
cloudeval login --headlessauth, or--machinewhen service-principal credentials are configured --output <file>when the result must be persisted
Stdout and stderr contract
For machine-readable commands:- stdout is the data channel
- stderr is for prompts, warnings, auth flow text, and browser-open messages
setup, config, doctor, status, models,
sessions, projects, reports, ask, agents, connections, billing,
validate, rules, or open.
CLI profiles for agents
Use named profiles when multiple agents, environments, or workspaces share the same host. A profile can hold default CloudEval service URL, app URL, project, model, and output preferences.Agent Profiles
Agent Profiles are CloudEval-owned reviewer roles. They help the same project evidence produce different kinds of answers without every client rebuilding its own prompt logic. Use Agent Profiles when the question is not just “what did CloudEval find?” but “who is reading this, and what decision are they trying to make?”Architecturereviews topology, dependencies, blast radius, availability, and Well-Architected tradeoffs.Costreviews spend drivers, waste signals, savings confidence, and cost validation checks.Triagereviews likely failure domains, impact, containment, and rollback signals.Remediationturns findings into ordered fixes with owners, dependencies, rollout cautions, and validation checks.
architecture, cost, triage, and
remediation. Architecture includes the Well-Architected review lens, so there
is no separate Well-Architected Agent Profile.
Agent Profiles work across the web app, CLI, and MCP. CloudEval applies the
profile on the backend, so clients do not need to maintain separate prompt
templates or local fallback logic.
agents run:
- An Agent Profile is the reviewer role sent to CloudEval:
architecture,cost,triage, orremediation. - A CLI config profile is local machine configuration: CloudEval service URL, app URL, default project, model, output format, and local hooks.
How Agent Profiles behave
CloudEval owns the profile catalog. Chat, CLI, and MCP all use the same public profile ids, labels, starter prompts, capability hints, and server-side answer contracts.How profiles shape a run
Agent Profiles do not create a separate product workflow. They shape the normal CloudEval review path:- The user chooses
architecture,cost,triage, orremediation. - CloudEval keeps the selected profile separate from selected resources.
- CloudEval applies the profile’s focus, starter prompt, response style, output contract, and tool priorities.
- The run uses the same project evidence, grounding rules, and safety checks as normal chat.
- The final answer is shaped by the selected role without overriding user intent, accuracy, or citation expectations.
Default as a profile id.
Same question, different lens
Use the same plain-English question and choose a different profile when the decision context changes.
For example, a generic question such as “Can we trust this readout?” should not
produce four copies of the same response:
architectureshould explain whether the topology and dependency evidence is enough to trust the architecture conclusion.costshould explain whether the spend or savings evidence is strong enough to trust the financial conclusion.triageshould explain whether the evidence is enough to act during an incident or investigation.remediationshould explain whether the evidence is strong enough to assign work, sequence fixes, and validate completion.
Web app report prompts
Report prompt chips in the web app can launch chat with a profile already selected. The visible chat message should stay short, such as:
For report-triggered prompts, prefer one-shot controls: apply the profile, mode,
project, and hidden context to that request, then return the chat input to the
user’s previous selection.
Starter prompts by project source and mode
When a user launches a profile from the Developer workspace or runscloudeval agents run <profile-id> without a prompt, CloudEval picks a starter
prompt based on the selected project source and selected mode.
CloudEval can expose multiple starter variants for each source/mode pair. The
Developer workspace randomizes the visible launch prompt when opening a profile.
The CLI stays deterministic so scripts are repeatable and uses the first
matching variant when no explicit prompt is passed.
Pass an explicit prompt when you want the profile behavior but not the default
starter text:
MCP tools
MCP-compatible agents can use the same catalog without shelling out to the CLI. The public tools are:agent_profiles_listagent_profiles_getagent_profiles_run
Common mistakes
- Do not send
defaultas an Agent Profile id. Leave the profile selector empty for the normal chat flow. - Do not create a separate Well-Architected profile in integrations. Use
architecture. - Do not confuse
--profile codexwithagents run cost. The first selects local CLI config. The second selects CloudEval reviewer behavior. - Do not paste long report contracts into visible chat messages. Send the short question as the message and attach report details as context.
- Do not assume local hooks are CloudEval-hosted automation. Hooks run on the
CLI host only and can be bypassed with
--no-hooks.
Local CLI hooks
Local hooks are opt-in commands stored in the active CLI config profile. They run on the local machine only; CloudEval does not store, execute, or report hook runs in v1. Supported hook events:cli.command.beforecli.command.aftercli.command.erroragent_profile.run.beforeagent_profile.run.afteragent_profile.run.error
--no-hooks on supported commands to bypass local hook execution for one
run. Hook output goes to stderr so JSON and NDJSON stdout remain parseable.
MCP server for agents
Usecloudeval mcp serve when your agent framework already supports MCP and
you want CloudEval as a live tool server instead of a shell command wrapper.
Check local MCP discovery first:
mcp setup --toolset accepts all, readonly, projects, reports, or billing.
Use mcp serve --toolset graph or --toolset validation when the agent needs those surfaces.
Use generic for MCP-compatible clients that expect an mcpServers JSON
entry. For Ollama-powered agents, configure the MCP host launched by Ollama with
that generated CloudEval stdio entry.
Use focused toolsets when an agent only needs part of the CloudEval surface:
- The server uses
stdio. - Authenticate with stored
cloudeval logincredentials, storedcloudeval login --headlesscredentials, or--machine. - Run login before starting
mcp serve; stdin is reserved for MCP protocol messages. - Treat MCP tool results as the same CloudEval data contract you would expect from the CLI: stable envelopes, returned IDs, and explicit errors.
- Prefer focused MCP toolsets for assistants that should only inspect projects, reports, billing, or read-only data.
- MCP clients that support resources and prompts can discover CloudEval capabilities, project context, billing summaries, latest reports, and review-oriented prompt templates.
- Agent Profile MCP tools are
agent_profiles_list,agent_profiles_get, andagent_profiles_run; they use the samearchitecture,cost,triage, andremediationids as the CLI.
Graph and validation automation
Use graph commands for project intelligence that should not require opening the workspace UI:--parameters-file is optional for both validation and parsing. Agents should
pass it when a parameter file is present and omit it when defaults are enough.
Use rules search or rules show to resolve check ids, then pass repeatable
--rule values when an automation should run only specific checks.
Use --wait for deployment gates that need final validation results instead of
only a queued job id, and include --wait-timeout so the gate fails instead of
hanging indefinitely.
Add --progress stderr when a human should see queued/running/completed status
while the command waits. Progress is written to stderr; final JSON remains on
stdout for automation. Completed progress includes failing check/test details
when the backend returns message, recommendation, severity, and location fields.
Worker-local temp file paths are replaced with the submitted template filename
so automation logs do not point at inaccessible backend files.
Do not block automation solely because a parameters file is missing.
Stable JSON envelope
CloudEval uses a stable JSON envelope for machine-readable success and error responses:warningsfilesWrittentraceId
ndjson, arrays are emitted one JSON object per line instead of one wrapped array payload.
Ask mode vs agent mode
CloudEval supports two practical usage patterns:ASKmode is best for one grounded answer, usually throughcloudeval ask.AGENTmode is best for multi-step workflows that may inspect projects, run reports, open deeplinks, or create CloudEval artifacts when explicitly requested.
- ASK flows should stay read-first and should not silently create or change CloudEval artifacts.
- AGENT workflows can be broader, but they still need explicit intent before taking write actions.
- Do not claim CloudEval mutates customer cloud infrastructure unless a separately verified feature explicitly supports that behavior.
Session continuity for agents
Successfulask runs create local, profile-scoped session history. Use it when
an agent needs to find or continue recent CloudEval work on the same machine.
- Session history is local to the machine and scoped by profile.
- Use
sessions searchbefore assuming a thread ID. - Use
sessions renameto make important threads easy to find later. - Use
ask --threadonly when a one-shot follow-up should stay attached to an existing conversation.
Grounding model
CloudEval answers are expected to be grounded in the data the product actually has access to. That can include:- project metadata
- connection metadata
- ARM or Bicep-derived ARM template content
- resource graph and diagram relationships
- saved cost reports
- saved architecture or Well-Architected reports
- report history and trend data where available
- pricing and product metadata
- chat thread history
- local CLI session history for one-shot
askruns
Authentication and permissions
cloudeval loginuses a browser-based login flow.cloudeval login --headlessuses a device-code flow for headless sessions.- Browser-based CLI login is restricted to loopback redirect targets on the local machine.
- Use
cloudeval login --headlessfor SSH, containers, or remote terminals. - Use stored login state or
--machinewhen you runcloudeval mcp serve. - Always use IDs returned by CloudEval responses. Do not guess project, report, connection, or thread IDs.
Practical limits
- Azure is the primary supported provider today.
- ARM JSON is the strongest current IaC path.
- AWS and GCP should not be treated as full-parity live sync or reporting paths unless current capabilities confirm it.
- Diagram freshness depends on the latest successful import or sync.
- Cost outputs can be estimates, not final billing truth.
- Architecture and security findings are evaluations, not compliance attestations.
- Some browser workflows are still easier or only available in the web app.
Verification before production use
Before shipping a new integration:- Run
cloudeval capabilities --format json. - Run
cloudeval doctor --format jsonfor the profile or environment you will use. - Run
cloudeval doctor --mcp --format jsonif an MCP client is part of the workflow. - Test the exact commands you plan to automate with
--format json --non-interactive. - Confirm the target project, report, connection, or thread IDs come from CloudEval output.
- Check that your workflow handles auth-required, service-unavailable, and not-found failures cleanly.