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
1
Fetch the schema first
Always use
get_content_type before creating content to understand the structure and constraints.2
Validate asset IDs
Use
search_assets to verify assets exist before referencing them.3
Check length limits
Review
maxLength constraints in the schema for all text fields.4
Use correct component types
Match component type names exactly as defined in the schema’s
definitions.5
Include all required fields
Check the schema’s
required arrays at each level of the structure.