Skip to main content

Metadata Schemas

MCP tools for the Metadata Schemas module. See the Metadata Schemas module docs for permissions and data model.

list-metadata-schemas​

List metadata schemas

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject public ID (proj_ prefix)
resource_typestringnoReturn only the declarations governing this resource.
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

create-metadata-schema​

Declare a metadata schema

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject the declaration governs. Optional for a project-scoped API key, which supplies it.
resource_typestringyesThe resource whose metadata this declaration governs. A type appears here once its write path reads the registry, so a declaration always has a door that enforces it.
path_prefixstringnoThe selector a document declaration must carry: the directory it governs.
schemaobjectyesA JSON Schema. Its keywords are its own vocabulary and are stored as written.

validate-metadata​

Check metadata against what is declared

Arguments​

ArgumentTypeRequiredDescription
project_idstringno—
pathstringyesThe path the document would be filed at, which decides which declaration governs it.
metadataanynoThe bag to judge. Absent or null is judged as an empty bag.

get-metadata-schema​

Get a metadata schema

Arguments​

ArgumentTypeRequiredDescription
metadata_schema_idstringyes—

update-metadata-schema​

Update a metadata schema

Arguments​

ArgumentTypeRequiredDescription
metadata_schema_idstringyes—
path_prefixstringnoThe declaration's new selector.
schemaobjectnoReplaces the declared JSON Schema.

delete-metadata-schema​

Delete a metadata schema

Arguments​

ArgumentTypeRequiredDescription
metadata_schema_idstringyes—