Project Context Errors
NO_PROJECT_CONTEXT
Returned when no project context is set and noprojectId parameter is provided.
set_project with a valid project ID, or include projectId in the tool call.
PROJECT_ACCESS_DENIED
Returned when the user doesn’t have access to the specified project.list_projects to find projects you have access to.
Content Validation Errors
Thecreate_content and update_content tools validate all content against the content type’s JSON schema.
VALIDATION_ERROR
General validation failure with detailed error information.SCHEMA_STRUCTURE_ERROR
Using components or fields not allowed by the content type.REQUIRED_FIELD_ERROR
Missing mandatory fields.TYPE_MISMATCH_ERROR
Incorrect data types.CONSTRAINT_VIOLATION
Exceeding limits or breaking rules.ASSET_NOT_FOUND
Referencing non-existent assets.search_assets to find valid asset IDs.
MULTIPLE_VALIDATION_ERRORS
Multiple errors grouped and summarized.Recovery Strategies
When encountering validation errors:- Parse the suggestion field: Every error includes actionable guidance
- Review the schema: Use
get_content_typeto understand requirements - Fix asset issues: Use
search_assetsto find valid asset IDs - Handle length constraints: Split long content into multiple components
- Check component types: Ensure using only allowed component types
Error Prevention Best Practices
Fetch the schema first
Always use
get_content_type before creating content to understand the structure and constraints.Use correct component types
Match component type names exactly as defined in the schema’s
definitions.