GraphQL Operation Descriptions: How a Spec Update Solved Our MCP Problem
Blog post from Wundergraph
In September 2025, the GraphQL specification was updated to officially support operation descriptions, allowing queries, mutations, subscriptions, and fragments to have descriptions using the triple-quoted string syntax. This change resolved a documentation challenge faced by teams using the Cosmo MCP Gateway, which transforms trusted GraphQL operations into MCP tools for AI agents. Previously, teams had to rely on non-standard methods such as comments or custom directives to describe these operations. With the update, operation descriptions became standardized and portable, enhancing self-documentation without the need for additional configuration or custom parsing. This advancement simplifies the development of backend-for-frontends, improves AI tool selection, and reduces maintenance complexity across all GraphQL tools. The support for operation descriptions is available in Cosmo Router v0.262.0 and later, seamlessly integrating with WunderGraph's MCP Gateway to ensure consistent documentation and integration with AI systems.