Agent Context Protocol Skills and Tasks: A Practical Guide to Collaborative Execution
This article explains how to move AI agents beyond simple tool calls toward reliable business execution using protocol-level skills, background tasks, mid-execution elicitation, direct file upload, permissions, observability, and failure recovery. It covers how to define executable skills, separate long-running work from conversation control, pause tasks for human authorization, keep large files out of model context, and roll out a minimal collaborative workflow. The article also outlines practical evaluation metrics and why open protocol semantics matter more than binding to a single client.
For an agent to enter real business operations, the hard part is rarely whether it can call an API. The harder question is whether it can complete a task according to business rules. Traditional tool descriptions explain which actions a server exposes, but they rarely explain the required sequence in a given scenario, the constraints that apply, or when the agent must stop and ask a human. As a result, models either retry through trial and error or stuff long instruction manuals into context, which consumes tokens and increases drift. Making domain knowledge, multi-step procedures, background execution, and in-flight authorization into protocol-level capabilities is key to turning external systems from function libraries into collaborative execution entities.
From Tool Lists to Executable Skills
Tool names and descriptions solve discoverability: the model knows which capabilities can be called. Skills solve applicability: for a given type of user, organization, or business state, how should those capabilities be combined?
A qualified skill usually contains four layers of information. The first is applicability conditions, such as enabling a skill only for store initialization, permission changes, or data repair scenarios. The second is domain knowledge, including field meanings, compliance boundaries, and common failure causes. The third is best practices, such as read-before-write, validate-before-submit, and mandatory second confirmation for destructive operations. The fourth is a workflow skeleton that arranges multiple tool calls into checkable steps instead of leaving the model to improvise.
Skills should also support organization-specific customization. The same server capabilities can carry different operating guides for different tenants: one enterprise may prohibit automatic publishing, while another may require all write operations to include a ticket number. The protocol layer is responsible only for discovery, loading, and version synchronization; the specific rules are expressed in the skill content. This way, the model does not need to be retrained for every customer, and the server does not need to put every customer difference into tool descriptions.
Loading on demand is more important than injecting everything at once. At session start, keep only a skill index and very short summaries. When user intent matches a type of task, fetch the corresponding skill body. This has three benefits: context is shorter and irrelevant rules do not interfere with reasoning; skills can be updated with the server without users installing them separately; and permissions can be bound to skills so unauthorized procedures never enter the model’s view.
For implementation, make skills versioned documents rather than scattered prompt text. Record the skill identifier and version on every call so that later explanations can show which procedure the model relied on at the time. Skill bodies should be short, decidable, and light on adjectives. Change “consider suggesting” into “if the approval ticket number is missing, stop and ask.”
Background Tasks: Move Waiting Out of the Conversation
Early model calls were synchronous: send a request, wait for the result, then continue reasoning. That is sufficient for query APIs but unsuitable for builds, batch processing, or cross-system orchestration. Users see long periods without a response, and the model fills context with waiting itself.
The core of task capability is separating time-consuming work from conversational control. The model submits a task description, input references, and completion conditions to the server and immediately receives a task identifier. The server executes in the background while the model can continue answering other questions, issue other read-only queries, or organize existing results. When the task finishes, fails, or needs human intervention, the status is returned through events or polling.
Task interfaces should at least define these states: accepted, running, waiting for input, succeeded, failed, and canceled. Each state should have a machine-readable reason, not just a natural-language sentence. Inputs should use references rather than inline large objects, such as file keys in object storage, query conditions for a data table, or a commit range in a code repository. Outputs should also return references and summaries, avoiding stuffing an entire report back into context.
Idempotency and cancellation are the baseline for background tasks. Repeating the same business request should not create two sets of side effects. Users or upstream systems should be able to cancel incomplete write operations by task identifier. Long-running tasks also need heartbeats and timeouts to prevent a task from “looking alive” while actually being stuck.
Work suitable for background execution includes batch data cleaning, report generation, multi-step environment setup, codebase-level analysis, and external approvals that require queuing. Work unsuitable for backgrounding includes very short queries where the next sentence must be decided immediately from the result. The test is simple: if a human colleague would say “start on it and call me when it is done,” it should be a task, not a synchronous tool call.
A neutral illustrative structure does not need to bind to any vendor:
submit_task(skill_id, inputs_ref, constraints) -> task_idget_task(task_id) -> {state, progress, result_ref, pending_question}cancel_task(task_id) -> {state}
The model side consumes only states and summaries. The actual execution logs remain on the server for retrieval by audit systems.
Mid-Execution Elicitation: Keep Humans at Key Decision Points
Even a complete skill cannot exhaust every authorization in advance. Creating resources that incur costs, performing irreversible data changes, deleting important assets, or accessing data beyond the current scope should allow the server to pause the task and ask the user.
Elicitation is not throwing an error back to the model and asking it to “figure something out.” It is a protocol-supported suspension point. The server provides a structured question: the action to confirm, the scope of impact, available answers, a deadline, and the minimum information needed to resume execution. Users can respond through a form, a confirmation button, or a one-time link. After a valid response, the task continues from the interruption point rather than restarting from the beginning.
Good elicitation has three characteristics. The scope is narrow: ask only about the decision missing for the current step, not the entire requirement again. The evidence is sufficient: explain what will change, who is affected, and whether rollback is possible. The response is verifiable: for high-risk operations, require the user to repeat the resource name or enter an explicit confirmation phrase to avoid accidental clicks.
Typical scenarios include confirming budget and owner before creating billable resources; showing affected row counts and requiring confirmation before executing destructive data statements; requiring the full repository name before deleting a code repository; and selecting an environment before publishing content to an external system. Elicitation results should be written to the audit log and linked to the task identifier, skill version, and operator identity.
Elicitation must also be prevented from being overused. If every step interrupts the user, the experience falls back to manual operation. Skills should state which steps can continue automatically and which must pause. Read-only, reversible actions with small impact should be allowed by default. Irreversible, cross-tenant, cost-incurring, or sensitive-data actions should require elicitation by default.
Direct File Upload: Keep Large Files Out of the Model
Business collaboration almost always involves files: spreadsheets, images, contract scans, log bundles, and design drafts. Putting all file contents into model context quickly fills the window and increases sensitive-data exposure. A more reasonable path is to carry intent through the conversation channel and files through the data channel.
File upload capability should allow the model or client to hand files directly to the execution server. The server validates type, size, virus scanning, and access policy, then passes the file reference to subsequent skills or tasks. The model sees only the file name, type, summary, and necessary structured fields. When content understanding is needed, a server-side parser generates a controlled summary rather than returning the original text by default.
In practice, note the following: split upload and task submission into two steps, obtaining the file reference first and then binding it to the task; set tenant isolation and expiration for files; verify file hashes before write operations to prevent replacement during transfer; and log only references and checksums, not full text. Images and spreadsheets are suitable for direct upload, while short text explanations can remain in the conversation.
Permissions, Observability, and Failure Recovery
Once skills, tasks, elicitation, and files are enabled together, system complexity increases, and a single control plane must cover them.
For permissions, authorize at four layers: identity, tenant, skill, and action. Model visibility does not equal executability. The server should recheck before actually writing data and should not trust the model’s claim that “the user has agreed.” Passing elicitation authorizes only that step; it does not automatically expand to later steps.
For observability, retain for each task: who initiated it, which skill version was loaded, which actions were called, where it paused, how the user responded, and which resources were ultimately written. When troubleshooting, inspect the state machine first, then the business logs. Progress information should be understandable by both humans and models, but detailed stack traces do not need to enter the conversation.
For failure recovery, distinguish retryable errors from business rejections. Network jitter and downstream timeouts can be retried under idempotency. Validation failures, insufficient permissions, and user rejection should terminate and provide the next step. For partial success, explicitly list completed and incomplete steps to prevent the model from repeating write operations that have already taken effect.
Rolling Out a Collaborative Workflow
Start with a minimal closed loop on a real path rather than connecting every capability at once.
First, choose a scenario with clear boundaries, such as “initialize a configuration from a spreadsheet.” Write the steps as a skill: read the spreadsheet reference, validate required columns, generate a change preview, request confirmation, submit, and return a result summary.
Second, move time-consuming validation and batch writes into background tasks. Keep only the preview and task identifier in the conversation, and push a summary when the task completes.
Third, insert elicitation at cost-incurring or irreversible points. The confirmation text should be generated by the server to ensure it matches the parameters that will actually be executed, avoiding cases where the model rewrites it and “what is said differs from what is done.”
Fourth, use direct file upload for spreadsheets and images. The model should make decisions only based on summaries and validation results.
Fifth, add audit, cancellation, timeout, and versioning. After a skill is updated, new tasks use the new version, while running tasks continue with the version loaded at start unless the change is a security fix and hot updates are explicitly allowed.
For evaluation, do not look only at call success rate. More useful metrics include invalid retry count, the proportion of actions blocked that should not have run automatically, abandonment rate after elicitation, average context length, time from task submission to an explainable result, and whether audit records can independently reproduce the decision basis at the time.
Open Protocols Matter More Than a Single Client
The value of these capabilities lies in conventions, not in one conversational product. How skills are declared, how tasks are suspended and resumed, how elicitation is structured, and how file references are passed should be implementable by different clients and different servers. Once servers work according to the same semantics, switching to another compatible agent entry point should still leave user confirmation records and task states readable.
For enterprises, this means external systems keep their business authority: pricing rules, permissions, data changes, and files remain in the original system. The agent is responsible for understanding intent, selecting skills, orchestrating steps, and explaining to people. For developers, this means less hardcoding of business processes into prompts and more versionable procedures, state machines, and audit records delegated to the protocol.
When tools expose only capabilities, agents can only try. When skills explain how to act, tasks carry time-consuming work, elicitation protects authorization, and files do not detour through context, an agent looks more like a rule-following collaborator and less like a chat window that can call APIs.
