Back to Glossary Index
Core ConceptModel / Inference Layer

Context Window

Industry Definition Set • Entity Resolution Path: /glossary/context-window

Quick Answer / TL;DR

The maximum number of tokens an LLM can process in a single request, including the prompt, conversation history, and tool results.

Key Takeaways

  • Maximum tokens an LLM can process in one request.
  • Shared between prompt, history, tools, and results.
  • Exceeding the window causes truncation or summarization.
  • Larger windows enable more complex agentic workflows.
Definitive Statement: The maximum number of tokens an LLM can process in a single request, including the prompt, conversation history, and tool results.

Technical Context & Protocol Usage

Detailed Explanation
The context window is a hard limit on LLM input. Models like GPT-4 have 128K token windows, while others may have 32K or 1M. In MCP, the context window is shared between the system prompt, conversation history, tool definitions, and tool results. When the window is exceeded, older messages may be truncated or summarized, potentially losing important context.

Format & Payload Metadata

Format: Token count (e.g., 128K tokens)

Latency: Larger contexts increase inference latency quadratically for full-attention models

Real-World Implementation Use Case

An agent with a 128K context window can hold a long conversation with many tool calls before older context is lost.

M
MCPserver.in Engineering

Platform Team

Published: 2026-07-20
Updated: 2026-07-20

Cite This Page

MLA Style:

MCPserver.in Engineering. "Context Window." MCPserver.in Knowledge Hub, 20 July 2026, mcpserver.in/glossary/context-window.