Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Media library query documents
SANITY_MCP_MEDIA_LIBRARY_QUERY_DOCUMENTSQuery a Media Library using GROQ. Assets, collections, folders, and aspect definitions are all queryable. The result count reflects the query result set, not the library total; use a `count()` query for totals.
Query documents
SANITY_MCP_QUERY_DOCUMENTSQuery documents from Sanity using GROQ. Pass only the GROQ string in query. Do not include JavaScript imports, template wrappers, or defineQuery(). When using variables, set params to a JSON object such as {"type":"post"}. Results are not truncated. A result larger than 64 KiB is rejected with an error instead. Use field projections and GROQ slices to request only what you need, and fetch large result sets in batches, for example by slicing ordered by _id and filtering with _id > $after. For unfamiliar GROQ syntax, functions, or query patterns, fetch get_sanity_rules({rules: ["groq"]}) before proceeding.
Read docs
SANITY_MCP_READ_DOCSRead a specific Sanity documentation article
Schema type get
SANITY_MCP_SCHEMA_TYPE_GETRead one type from the current MCP-managed or Studio-deployed schema before calling a granular schema edit tool. Returns the current schemaVersion required for concurrency control and a reconstructed editable definition. Legacy-only and Blueprint-managed schemas cannot be edited with these tools.
Search docs
SANITY_MCP_SEARCH_DOCSSearch Sanity docs
Semantic search
SANITY_MCP_SEMANTIC_SEARCHPerform a semantic search on an embeddings index
Usage history get
SANITY_MCP_USAGE_HISTORY_GETGet metered usage for a project, organization or media library as a series of daily, monthly or yearly data points. For the current period total, use usage_snapshot_get.
Usage snapshot get
SANITY_MCP_USAGE_SNAPSHOT_GETGet metered usage totals, such as API requests, CDN requests, documents and assets, for a project, organization or media library over one billing period. For trends over time, use usage_history_get.
Whoami
SANITY_MCP_WHOAMIReturns the currently authenticated Sanity account. Use it first for access or account troubleshooting and report the returned name, email, provider, and MCP authentication method so the user can verify which identity is active.