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.
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.
- Test the agent. See Testing an agent.
- Publish the agent. See Saving drafts and publishing an agent to the catalog.
