Build with AI

Context MCP tools

Every tool Context MCP serves, by mode, with what each one returns and when an agent reaches for it.

Context MCP serves a different tool set depending on the mode the endpoint runs in. GROQ mode exposes tools for reading your schema and querying documents; Knowledge Base mode exposes tools for searching and reading pre-built entries. The initial_context tool is served in both. Most agents use several over the course of a single conversation.

GROQ mode tools

ToolPurpose
initial_contextCompressed schema overview plus instructions for querying your content. The /initial-context HTTP endpoint can replace it
schema_explorerReturns detailed schema information for a specific type, including fields and references
groq_queryExecutes a GROQ query against the dataset, subject to any groqFilter in effect
array_field_readerReads large array fields and Portable Text content from a single document

Knowledge Base mode tools

ToolPurpose
initial_contextThe outline of each Knowledge Base the endpoint serves. The /initial-context HTTP endpoint can replace it
knowledge_base_readReads the full content of one or more entries, by Knowledge Base id (the kb… value on the "Knowledge base id:" line above its outline in initial_context) and entry paths from the outline. Accepts up to 20 paths in one call
knowledge_base_searchSearches entry content by keyword and returns ranked entry paths, or the full entries. Use it when the outline alone doesn't show where an answer lives

Paths in the outline may carry a [core] or [peripheral] tag marking how central the entry is; untagged entries are standard. Read paths back verbatim. When several entries look relevant, read them in one call rather than sequentially. See Knowledge Bases for how a Knowledge Base is built and what the outline is.

Choose which tools your agent sees

An endpoint serves every tool its mode offers. To give your agent fewer, filter them in your client. The common case is dropping initial_context after inlining its payload into your system prompt; see Inline initial context into your system prompt.

List the tools on an endpoint

A successful response returns a JSON object with a result.tools array listing the tools available on that endpoint. A 401 means the token is missing or malformed. A 403 contextGrantRequired means the token is not an organization API token with Context Viewer permissions. Create one under Manage > API > Tokens at the organization level. See Content access and security.

Was this page helpful?