Validating an agent

Validate an agent in the agent editor to find configuration problems before you publish it in

Validation returns a report that contains an overall status and a list of issues. The checks cover the following areas of an agent bundle:

  • The agent configuration (config.json) and its schema
  • The prompt
  • Guardrails (guardrails.yaml)
  • Keys
  • The mcp.json file and MCPB tool folders (manifest.json)
  • Skills
  • Sub-agents
  • Wheelhouse content for air-gapped clusters
  • Scope
  • Make sure that your user has the Admin or Builder role. For more information, see User roles and capabilities.
  • Make sure that the agent exists in the Agent Catalog, either as a published agent or as a draft.
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click Assets > Agent Catalog.
  3. In the list of agents, open the Actions menu of your agent, and then click Edit.
    The agent editor opens. The progress indicator in the header shows the Build, Validate, Test, and Publish stages.
  4. In the header of the agent editor, click Validate.
    The Validation report dialog opens.
  5. Review the report.
    • If all checks pass, the report shows All checks passed and No issues reported.
    • If the checks find problems, the report shows Validation found issues and lists each issue. Each issue shows an Error or Warning label, the rule that the issue breaks, the path of the affected file, and a message that describes the problem.
  6. Click Close.
    If the report lists issues, fix each issue in the agent editor, and then repeat steps 3 to 5 until the report shows no errors.

An agent that passes validation is ready to publish. An issue with the Error label blocks publishing. An issue with the Warning label does not block publishing.

Validation runs automatically when you publish a version. If a published version fails validation, Agent Studio rejects it with a validation error. A draft skips validation, so a draft can contain issues that appear later when you publish.