Skip to main content
Glama
ivo-toby

Contentful GraphQL MCP Server

graphql_query

Execute a GraphQL query against Contentful's GraphQL API to retrieve content flexibly and efficiently, supporting variables and optional space or environment overrides.

Instructions

IMPORTANT: Before using this tool, you MUST first use graphql_list_content_types and graphql_get_content_type_schema to understand the available content types and their structure. Execute a GraphQL query against the Contentful GraphQL API. This tool allows you to use Contentful's powerful GraphQL interface to retrieve content in a more flexible and efficient way than REST API calls. The space ID and CDA token are automatically retrieved from environment variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe GraphQL query string to execute (must be a valid GraphQL query)
variablesNoOptional variables for the GraphQL query
spaceIdNoOptional override for the space ID (defaults to SPACE_ID environment variable)
environmentIdNoOptional override for the environment ID (defaults to ENVIRONMENT_ID environment variable or 'master')
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided. The description does not disclose behavior beyond executing a query. It fails to mention error handling, rate limits, whether the query is read-only, or any side effects. With no annotations, the description carries full burden but adds minimal behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, which is efficient. The first sentence is crucial usage guidance, and the second explains the benefit. A bit more detail on what the GraphQL interface offers could improve, but overall it avoids unnecessary text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should ideally hint at return structure, but it does not. The prerequisite guidance and parameter info are adequate for a query tool with 4 well-documented parameters. Missing details on response format or pagination limit completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the description adds little meaningful info beyond what is in the schema. It mentions that space ID and CDA token are auto-retrieved, which is helpful context but does not deepen understanding of parameter semantics beyond schema definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool executes GraphQL queries against Contentful API, emphasizing flexibility. The verb 'execute' and resource 'GraphQL query' are specific. However, it could differentiate more from sibling tools like smart_search or build_search_query.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly instructs to first use graphql_list_content_types and graphql_get_content_type_schema before using this tool. This provides clear, actionable guidance on when and how to use the tool, distinguishing it from alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivo-toby/contentful-mcp-graphql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server