MCP Upgrade: On-Demand Skill Loading and Asynchronous Tasks
This article explains the latest upgrade to the Model Context Protocol (MCP) and how it addresses three bottlenecks of the traditional tool-calling model: context budget consumption, synchronous blocking, and the lack of human confirmation. It covers on-demand skill loading, background tasks, in-execution elicitation, and direct file uploads, and closes with practical recommendations for developers building controllable and auditable agent integrations.
1. Background: Three Bottlenecks in the Tool-Calling Model
The Model Context Protocol (MCP) is an open specification that connects AI agents with external systems. Over the past two years it has become a common industry approach. It standardizes how a model discovers capabilities, invokes them, and receives results, allowing AI coding tools, conversational clients, and external services to integrate in a decoupled way. However, once the number of connected services grows from a handful to dozens, the early practice of injecting all tool definitions into the context at once starts to break down. The problems fall into three areas.
First, tool definitions eat into the context budget. Names, descriptions, and parameter structures all consume tokens. The more services and the more granular the tools, the larger the static manifest grows, leaving less room for actual business data. The model’s attention is also diluted, which lowers selection accuracy.
Second, calls are synchronously blocking. The traditional model is a serial “issue, wait, return” flow. A single slow operation stalls the entire reasoning chain, so the agent cannot move other subtasks forward in parallel.
Third, there is no human confirmation step. For destructive actions such as billing, deletion, or overwriting, the flow cannot pause midway to collect the user’s input, which leaves the risk uncontrolled.
The new round of protocol upgrades targets these three points directly: capability descriptions shift from full injection to on-demand loading, execution shifts from synchronous waiting to background tasks, and interaction shifts from one-way execution to pausable consultation. It also adds a channel for sending large files directly to the server without passing through the model context.
2. On-Demand Skill Loading: Treating Context as a Limited Budget
Skills are a layer of abstraction on top of tools. The server can declare callable functions and also publish packages containing domain knowledge, best practices, step-by-step procedures, and even guidance tailored to specific users or enterprises. At the start of a session, the client loads only a lightweight skill index. Once an intent matches, it fetches the full definition and procedure of the relevant skill, and releases it when the task is done.
This “index plus lazy loading” structure delivers two direct benefits. First, context usage drops significantly. The official figures indicate that in scenarios with multiple connected services, the space taken by tool definitions can be reduced by more than 80%. Second, behavior becomes more controllable, because the process constraints fixed in skills reduce out-of-bounds operations caused by the model improvising.
A schematic layered structure is shown below (pseudocode that only expresses loading timing and does not represent any specific interface):
session.start():index = server.list_skill_index() # name + one-line description onlycontext += indexon_intent_matched(skill_id):skill = server.load_skill(skill_id) # fetch the full text only after a matchcontext += skill.definitionrun(skill.flow)on_task_done():context.release(skill_id) # reclaim budget promptly
In engineering practice, three rules are recommended. Keep skill descriptions distinguishable but concise so the index itself does not bloat. Annotate each skill with its applicable boundaries and prerequisites to reduce incorrect loading. For long workflows, load skills in segments and place only the description of the current step into the context.
3. Background Tasks: From Synchronous Blocking to a Concurrent Execution Model
The Tasks capability decouples execution from waiting. Time-consuming operations, or even a complete agent workflow, can be submitted to the server to run in the background. The client immediately receives a task identifier and continues with other work, then queries the status or retrieves the result by that identifier later.
This yields four states: submitted, running, completed, and failed or canceled. Around these states, the client needs three foundational capabilities:
- Status query and result retrieval, with support for pagination or incremental fetching to avoid feeding a large result back into the context all at once;
- Timeout, retry, and idempotency, with a business-side idempotency key carried on submission to prevent side effects from repeated execution;
- Cancellation and resource reclamation, since long tasks must have a termination path and the data consistency semantics after termination must be defined.
After parallelization, the context holds only the task list and summaries, while the actual intermediate artifacts stay on the server and are passed by reference rather than in full. This is an extension of the same budget-governance approach used for on-demand loading.
4. In-Execution Elicitation: Making Human Confirmation a First-Class Part of the Flow
Elicitation allows the server to pause during execution and collect input and authorization from the user through a structured form or a signed link, then resume from the breakpoint rather than rolling back and starting over. Typical scenarios include confirming the billing basis before creating a paid resource, a second check before running deletion or overwrite statements, confirming repository or dataset names, and confirming permission scope and validity period.
Four points matter in the design. The request must be self-describing, stating what will be done, the scope of impact, and how irreversible it is. The default option should be the safest one. Each elicitation request needs a unique identifier and an expiration time to prevent stale authorization from being reused. Timeout or rejection must have a clear fallback branch so the flow can end safely. Resuming from a breakpoint also requires the server to persist completed side effects, so the client can determine which steps do not need to be replayed.
5. Direct File Upload and Rollout Pace
The upcoming file upload capability lets clients pass documents, spreadsheets, and images directly to the server for processing, without the files first going through the model context window. This avoids binary content consuming the budget and leaves heavy work such as parsing, extraction, and conversion to a more suitable executor, while the model receives only a structured summary or a reference.
In terms of rollout, such capabilities are typically first opened for testing on the developer side and in AI coding tools, then gradually extended by account tier. Team and enterprise scenarios often also require an administrator to explicitly enable them, along with supporting audit policies. It is worth emphasizing that these mechanisms belong to an open specification and its extensions, not to any single client, so compatible clients and compliant servers can work with each other. As for ecosystem scale, this type of specification has accumulated two years of adoption, with more than 700 million monthly SDK downloads and over 10,000 available connectors, which means the marginal cost of reusing capabilities is very low.
6. Practical Recommendations for Developers
- Start with a capability inventory, classifying tools as “high-frequency and lightweight” or “low-frequency and heavy workflow,” and convert the latter into skill packages first.
- Define context budget metrics, measuring tool definition usage, full skill text usage, and task summary usage separately, with threshold alerts, observable through monitoring, alerting, and logging services.
- Route all destructive operations through elicitation and auditing, retain authorization credentials and operation records, and archive artifacts in object storage when necessary.
- Separate long tasks from real-time question answering onto different pipelines, and deliver asynchronous results through a message queue or callback notifications to avoid polling storms.
- Apply least privilege, granting skills and connectors only the minimum scope required, and review them periodically.
In related practice at Baidu AI Cloud, this pattern typically forms a closed loop with server-side services running on a container platform, file artifacts stored in object storage, and a logging and monitoring system, helping teams build agent integrations into an operable and auditable engineering system at a controllable cost.
