GCORE_TOOLS environment variable controls which tools are exposed by the server, reducing context consumption and improving tool selection accuracy.
Tool filtering overview
Gcore MCP Server provides approximately 720 tools covering the full API surface. Loading all tools consumes significant context window space, leaving less room for conversation. When too many similar tools are available, models may select incorrect tools or produce slower responses due to schema processing overhead. Claude Code handles large tool sets through deferred loading—tool schemas load on demand rather than at startup. Other clients require explicit filtering to function properly.Filter syntax
TheGCORE_TOOLS variable accepts predefined toolset names, wildcard patterns, and exact tool names. These can be combined in a single value separated by commas.
Predefined toolsets are named collections of related tools:
*:
Predefined toolsets
Gcore MCP Server includes predefined toolsets that group related operations. Using toolsets simplifies configuration compared to listing individual tools.Pattern matching
Patterns use* as a wildcard to match tool name prefixes. The pattern cdn.* matches all CDN tools including cdn.cdn_resources.list, cdn.cdn_resources.create, and cdn.origins.list. More specific patterns like cdn.cdn_resources.* match only the CDN resource tools, excluding origin and other CDN tools.
Multiple products combine with commas:
GCORE_TOOLS="cdn.*,dns.*" exposes all CDN and DNS tools. Nested filtering narrows scope: GCORE_TOOLS="cloud.gpu_baremetal.clusters.*" exposes GPU bare metal cluster tools without including other cloud tools.
Default behavior
WhenGCORE_TOOLS is not set, the server applies default toolsets based on transport mode. Stdio transport defaults to the management toolset, while HTTP transport defaults to management,instances. These defaults provide minimal tools for basic exploration without overwhelming the client.
Priority and combination
When combining toolsets and patterns, toolset tools are included first, pattern-matched tools are added second, and duplicates are removed. Toolset definitions take precedence over pattern matches. WithGCORE_TOOLS="instances,cloud.volumes.*", all instances toolset tools load first, then volume tools from the pattern are added. If the same tool appears in both, it appears once in the final set.
Configuration examples
Verify active tools
After configuring, verify which tools are exposed using MCP Inspector. Connect with the desiredGCORE_TOOLS value and view the Tools panel to count and verify the tool list.
Server logs also indicate loaded tools at startup. Running GCORE_TOOLS="cdn.*" gcore-mcp-server 2>&1 | head -50 displays startup messages including the tool count.