Agent Protocol Upgrades: Skill Delegation and Background Task Execution
This article explains how the agent protocol is evolving beyond simple tool calling to support real task collaboration. It covers skills as loadable knowledge units, background task delegation for long-running operations, interactive confirmation for high-risk actions, and direct file transfer that bypasses the context window. It also outlines engineering challenges in multi-server setups and practical governance recommendations for adoption.
1. Introduction: From Calling Tools to Getting Work Done
Over the past two years, the way agents connect to external systems has converged on a unified pattern: external services expose capability descriptions, and the model selects and invokes them on demand during reasoning. This solved the “can we connect” problem, but it quickly hit a new bottleneck — the protocol is good at expressing “what capabilities I have” but poor at expressing “how this kind of business work should actually be done.”
The latest protocol evolution targets exactly this gap, with three core changes: delivering domain expertise as loadable “skills” alongside the service; turning long-running execution into delegable “background tasks”; and standardizing in-flight human confirmation and authorization. In addition, the file transfer path has been improved so that large documents no longer have to crowd the model’s context. The sections below break down the technical meaning and engineering practice layer by layer.
2. Skill-Based Capability Description: Expressing Both “What” and “How”
2.1 Limits of Traditional Capability Description
Early capability lists were essentially “function signatures plus natural-language notes.” They could tell the model that a query endpoint or a write endpoint exists and what its parameters are, but they could not carry business process knowledge: what to validate first, how to roll back on conflict, which branch a certain customer type should take, which fields are sensitive and must not be returned. As a result, the model had to fill in business logic with general common sense, producing unstable behavior, ever-growing prompt stacks, and heavy consumption of the context budget.
2.2 Skills as Distributable Content Units
The new pattern extracts “operating guides” into standalone content units published together with capability declarations. A skill typically contains domain knowledge, best practices, multi-step workflows, constraints, and failure-handling strategies, and can offer differentiated versions per user or organization. From an engineering standpoint, treat it as a versioned document asset maintained centrally on the server side:
server manifest├── capability: query_catalog / update_inventory / ...└── skills├── skill: storefront_layout version: 3├── skill: onboarding_checklist version: 2└── skill: org_specific_policy version: 7 (scope: tenant)
2.3 On-Demand Loading and Context Budget
The key design is lazy loading: at session start, only each skill’s name and short description are injected, and the model pulls the full body once it judges the skill relevant. This yields two direct benefits. First, context usage is decoupled from the total number of skills, so a server can mount dozens or hundreds of skills without blowing the window. Second, behavior updates require no user action — publishing a new version on the server takes effect immediately, avoiding the drift caused by clients each maintaining local copies.
Engineering advice: write skill descriptions with both “when to use” and “when not to use,” otherwise misloading introduces noise; keep the body short enough to read in one pass, and split overly long flows into a main skill plus sub-skills referenced by link rather than concatenated in full.
3. Background Task Delegation: From Sync Blocking to Async Orchestration
3.1 The Cost of Blocking Calls
Under the synchronous model, until one capability call returns, the whole reasoning chain stalls there. For time-consuming operations such as building indexes, bulk migrations, or long-chain analysis, this shows up as long periods with no output, timeout retries, and duplicate submissions — hurting both user experience and resource utilization.
3.2 Delegation Semantics
The improved protocol allows handing a time-consuming operation, or even an entire sub-flow, to an external service running in the background while the model continues other work and retrieves the result on completion. The state machine abstracts to:
submit -> accepted(task_id) -> running -> succeeded(result)|-> failed(error)|-> canceled
With this semantics, the client needs three basic capabilities: persisting the task identifier, polling or event-subscribing to status, and idempotently consuming results. Sample code:
task = mcp.submit("rebuild_index", {"scope": "catalog", "full": True})# Non-blocking; keep handling the user's other requestswhile True:state = mcp.task_status(task.id)if state.status in ("succeeded", "failed", "canceled"):breaksleep(backoff())result = mcp.task_result(task.id) # Idempotent read, safe to call repeatedly
3.3 Idempotency and Recoverability
Going asynchronous inevitably introduces a window where “submission succeeded but the result was lost.” In practice, the submit endpoint must support idempotency keys, result reads must be repeatable, and tasks need timeouts and a cancellation entry point. Observability is equally non-negotiable: task identifiers, per-stage durations, and retry counts should flow into logging and monitoring/alerting so you can pinpoint execution flows stuck at a given stage.
4. Interactive Elicitation: Embedding Human Confirmation in the Execution Flow
High-risk operations should not be decided by the model alone. The interactive elicitation mechanism lets a service pause mid-execution, present a form or a redirect link to collect the user’s input and authorization, and then resume from the interruption point. Typical scenarios: confirming quota before creating billing resources, a second check before an irreversible data change, and requiring the user to type the repository name manually before deleting a code repository.
There are four design points. First, pause points must be explicit and enumerable — list the “actions requiring human intervention” rather than scattering them through the flow. Second, requests must carry enough context (the action to be performed, the scope of impact, whether it is irreversible) so users do not confirm blindly. Third, set a timeout and a default-deny policy; no response must never mean approval. Fourth, keep a full trail to form auditable authorization records. In essence, this shifts the permission boundary from “one-time up-front configuration” to “per-operation confirmation in flight,” consistent with the principle of least privilege.
5. Direct File Transfer: Letting Large Objects Bypass the Context Window
Relaying PDFs, spreadsheets, or images through the model’s context is both expensive and lossy. The new approach supports transferring files directly to an external service while the model handles only references and metadata. Engineering practice typically reuses established industry patterns: the client obtains upload credentials, writes the object to object storage, then passes a reference identifier to the service; the service side pulls, parses, and returns a structured summary on demand.
client --(1) request upload credentials--> serverclient --(2) upload file directly to object storage--> object storeclient --(3) submit reference identifier--> servermodel <--> server exchanges only references and structured results
You also need to define: file type and size limits, lifecycle and cleanup policies, encryption in transit and at rest, and tenant isolation for access permissions. A direct-transfer path without a cleanup policy quickly turns into runaway storage cost and compliance risk.
6. Open Specification and Ecosystem Implications
These capabilities belong to an open protocol and its extensions, not to one client’s exclusive feature set: any compatible client that supports the corresponding capability can interoperate with a service implementing it. This matters for technology selection — it deposits “capability” on the service side, keeps clients replaceable, and avoids deep lock-in to a single tool. The protocol’s SDKs currently see hundreds of millions of downloads per month, and more than ten thousand external connectors are available, indicating the ecosystem has crossed the usability threshold and moved into a phase of governance and quality competition.
7. Engineering Challenges with Multiple Servers
When a session mounts several external services at once, the question shifts from “can it call” to “will it call the wrong thing.” Common risks include capability name collisions and semantic overlap, contradictory skill content, cross-service unauthorized access to task and file references, and one service’s elicitation popup interrupting another service’s flow. Practical countermeasures: establish capability registration and deduplication conventions, set scope and priority for skills, require explicit authorization for cross-service references, unify the queuing and display order of elicitation events, and enforce rate limiting and quotas at the gateway layer.
8. Adoption and Governance Recommendations
- Govern before scaling: establish naming conventions, versioning policies, and deprecation processes for capabilities and skills, so nobody is afraid to change them six months later.
- Layer skills and prompts: put stable business constraints in skills and temporary user preferences in session context to prevent prompt bloat.
- Default-deny high-risk actions: route all irreversible operations through elicitation, and keep rollback plans and operation audits.
- Make async tasks observable end to end: carry the task identifier through logs, metrics, and alerts, and set timeouts, retry limits, and dead-letter handling.
- Put file and data compliance first: define retention periods, encryption methods, cross-tenant isolation, and deletion mechanisms.
- Use canary releases and evaluation: roll out skill updates gradually per tenant and regress critical flows against a fixed evaluation set to prevent “silent degradation.”
9. Conclusion
The essence of this round of evolution is upgrading the relationship between agents and external systems from “function calls” to “task collaboration”: knowledge is distributed as skills and loaded on demand, execution is delegated asynchronously as tasks, risk is confirmed in flight through elicitation, and data bypasses the context as references. For enterprises, the real barrier is no longer protocol integration but governance of capability assets, permission and audit design, and whether the observability stack keeps up with the growing complexity of execution chains. In general engineering practice on platforms such as Baidu AI Cloud, these capabilities typically build on foundational categories like container platforms, object storage, message queues, and monitoring/alerting, combined as needed to support the architecture described above.
