Agent Protocol Upgrades: On-Demand Skill Loading and Background Task Execution

    This article explains how recent Model Context Protocol (MCP) upgrades address three structural gaps in agent tooling: on-demand skill loading, background task delegation, and interactive elicitation, along with a file transfer path that bypasses the model context. It covers how to package domain knowledge as versioned skill payloads, how to move long-running operations from synchronous blocking to an orchestrable task state machine, and how to embed human confirmation into irreversible steps. Practical guidance is included for implementing these capabilities on container platforms, message queues, object storage, and observability tooling.

    1. The Starting Problem: Tool Descriptions Say What, Not How

    Over the past two years, the Model Context Protocol (MCP) has become a common standard for connecting agents to external data and systems. It decouples the model side from the capability side: capability providers expose tools, resources, and prompt templates as servers, while clients handle discovery, orchestration, and invocation. The growth of the ecosystem confirms the value of this direction — public protocol SDKs are downloaded hundreds of millions of times per month, and a single mainstream client can connect to more than ten thousand connectors.

    In real business scenarios, however, one bottleneck keeps recurring: a tool’s name and description can only declare which capabilities it has. They cannot carry how to handle a specific business situation. A parameter schema constrains the shape of the input, but not the order of decisions, prerequisite validation, failure rollback strategy, or domain best practices. As a result, this implicit knowledge gets stuffed into system prompts or lengthy string templates, permanently occupying context budget, and it is hard to version and hard to differentiate per tenant.

    The recent protocol upgrades target exactly these three structural gaps: on-demand loading of skills, background delegation of tasks, and eliciting information during execution. They also fill in a file transfer path that does not go through the model context.

    2. Injecting Knowledge as Skills: Turning Operating Guides into Versionable Payloads

    The core idea is to strip domain expertise out of prompts and publish it as skill payloads that come from the same source as the tools. Skill content typically includes domain knowledge, best practices, and multi-step workflows, and takes the form of a structured document with a metadata declaration.

    1. name: storefront-theme-migration
    2. description: Use when the user asks to change the store theme or batch-adjust product detail page layouts
    3. version: 1.4.0
    4. entry: workflows/migrate.md
    5. requires: [tools.list_themes, tools.upsert_page]

    Four points are worth noting from an engineering perspective.

    First, on-demand loading. The client initially reads only the name and description of each skill for routing, and fetches the body only after a match, so the full body of knowledge never resides in context all the time. This aligns with retrieval-augmented thinking: treat context as a resource with a limited budget.

    Second, updates ship with the server. Skills do not depend on a separate user-side installation; when the capability provider publishes a new version, distribution is complete, which significantly reduces environment drift among long-tail customers.

    Third, tenant differentiation. The same server can serve customized operating guides to different users or organizations, achieving “one set of tools, multiple sets of behavior rules” — critical for multi-tenant SaaS and private deployments alike.

    Fourth, permission boundaries. A skill is knowledge, not authorization. Operations that write still have to go through independent authentication and confirmation flows; something being written in a skill is not a reason to allow it by default.

    3. Background Task Delegation: From Synchronous Blocking to an Orchestrable Execution Graph

    Before the upgrade, the invocation model was synchronous: the agent could only move to the next step after a tool call returned. For builds, batch syncs, and report generation that take several minutes or more, this wastes inference turns and degrades the session experience.

    With tasks, an agent can delegate a long-running operation, or even a complete sub-flow, to the server for background execution and continue with other work, then retrieve the result later using a task handle. Implementation needs to cover:

    • Task identifiers and idempotency keys: the submitting side carries an idempotency key to avoid duplicate side effects from retries;
    • State machine and progress queries: at minimum the five states of queued, running, succeeded, failed, and cancelled;
    • Result retrieval and expiry policy: define how long results are retained and how to re-fetch them once that limit is exceeded;
    • Cancellation and timeouts: allow the client or user to terminate actively, preventing zombie tasks from consuming resources.
    1. {
    2. "task_id": "t_9f2c",
    3. "status": "running",
    4. "progress": 0.62,
    5. "result_uri": "resource://reports/2026-08-26",
    6. "expires_in": 3600
    7. }

    Implementing this kind of background execution in the cloud usually falls into a few common categories: a container platform hosting stateless executors, a message queue for task distribution and peak shaving, object storage for large artifacts, and logging services plus monitoring and alerting for observability.

    4. Interactive Elicitation: Embedding Human Confirmation into the Execution Flow

    The more automated a system becomes, the more it needs human judgment inserted at key points. Elicitation lets a server pause during execution, ask the user for an opinion or authorization through a form or link, and then resume from where it stopped.

    Typical scenarios include confirming a budget before creating billable resources, a second check before an irreversible data change, and requiring the user to type the repository name manually before deleting a code repository to confirm intent. The design recommendation is to follow a minimum-necessary principle — elicit only information that cannot be inferred; set a timeout and a default-deny policy for each elicitation; and treat the user’s answer as a policy validation input that cannot be bypassed, rather than a suggestion that can be ignored.

    5. Direct File Transfer: Keeping Large Objects Out of the Context Window

    The context window should be reserved for reasoning, not for carrying binaries. The file upload capability lets a client transfer documents, spreadsheets, images, and similar files directly to the server, while the model side keeps only a reference and metadata. This saves tokens and avoids the information loss caused by truncating large files. In engineering practice this is usually combined with chunked upload, content type validation, and virus scanning, with a short-lived reference identifier linking the subsequent steps.

    6. Openness and Implementation Recommendations

    These capabilities belong to an open protocol specification and its extensions, not to a single client, and any compatible client can support them. To implement them in your own system:

    1. First, inventory the side effects of your tools and separate read-only from write operations;
    2. Extract domain knowledge scattered across prompts into skills, and bring it under version control;
    3. Add a task state machine, idempotency, and cancellation semantics for long-running operations;
    4. Wire elicitation and audit trails into irreversible points uniformly;
    5. Cover the call chain, task queues, and failure rates with an observability system.

    When building similar capabilities on Baidu AI Cloud, you can reuse common product categories such as containers, message queues, object storage, and monitoring and alerting, and decouple the protocol adaptation layer from the business execution layer. That yields the engineering benefits of distributable skills, background tasks, and confirmable critical operations without binding to a specific client.