Extending AI Agents in Practice: Integrating Tools, Services, and Skills

    This article explains why a model alone is not enough for real business use cases and presents a three-layer approach to extending AI agents: tools for atomic actions, standardized service protocols such as MCP for reusable integration, and skills for workflow orchestration and knowledge reuse. It covers design principles, configuration steps, security considerations, troubleshooting by layer, and a practical checklist for building observable and maintainable agent systems.

    1. Why the Model Alone Is Not Enough for Real Business

    A common mistake in real engineering projects is treating an agent’s capability as equal to the reasoning ability of the underlying model. Real business scenarios demand far more than “being able to think.” They also require the system to “query data,” “change state,” and “follow internal standards.” These three needs map to three capability gaps:

    • Context gap: The model only has general knowledge from its training data and cannot perceive real-time internal enterprise data, such as inventory, tickets, or monitoring metrics.
    • Execution gap: The model can only generate text and cannot directly trigger write operations, such as submitting changes, creating resources, or writing back to a database.
    • Standards gap: The model does not know the team’s internal process constraints or code style, so its output is often “correct but non-compliant.”

    The common industry approach is layered: treat the model as the decision-making core and split external capabilities into three pluggable layers. The tool layer handles atomic actions, the service protocol layer handles standardized integration, and the skill layer handles workflow orchestration and knowledge retention. The benefit of this separation is clear: the model does not need to know implementation details, tools do not need to care about business orchestration, and skills only define how to chain actions together.

    2. Layer One: Integrating Tools to Make Atomic Capabilities Explicit

    A tool is essentially a function with a clear signature that the model can call. A well-designed tool should have four characteristics: a single semantic purpose, minimal parameters, structured returns, and controllable side effects.

    A single semantic purpose means one tool does one thing. Combining “query, aggregate, and format” into one tool makes it hard for the model to decide when to call it. Minimal parameters mean exposing only necessary fields and documenting the meaning and value range of each field, because the model relies entirely on the description text to decide what to pass. Structured returns mean using stable field names and avoiding large blocks of natural language in return values, which would consume context budget. Controllable side effects mean adding confirmation mechanisms and idempotency design for write operations.

    An illustrative tool description can be written as follows:

    1. TOOL_SPEC = {
    2. "name": "query_order_status",
    3. "description": "Query the current fulfillment status by order ID. Read-only; does not modify any data.",
    4. "parameters": {
    5. "order_id": {"type": "string", "required": True, "desc": "Unique order identifier"},
    6. "with_timeline": {"type": "boolean", "required": False, "desc": "Whether to return the status change timeline"}
    7. }
    8. }
    9. def query_order_status(order_id: str, with_timeline: bool = False) -> dict:
    10. # Handles authentication, rate limiting, and field trimming internally
    11. return {"order_id": order_id, "status": "SHIPPED", "timeline": []}

    Engineering practice also needs three things that are often overlooked. First, timeouts and retries: tool calls must have limits to avoid the model waiting for a long time. Second, least privilege: decide visible fields based on the caller’s identity, and mask sensitive fields at the tool layer. Third, observability: record the duration, return code, and trace identifier of each call so you can trace back “why the model made this decision.”

    3. Layer Two: Configuring a Standardized Service Protocol (MCP-Type Capability) for Reuse Across Integrations

    When the number of external systems grows, writing a separate tool for each system quickly becomes unmanageable. At that point, you need a standardized service integration protocol that abstracts “how capabilities are discovered and invoked” into a unified specification. Such protocols typically include three primitives: resources (readable data), tools (executable actions), and prompt templates (reusable instruction skeletons).

    Configuration generally involves four steps:

    1. Declare the service endpoint and transport method, specifying whether it is local in-process communication or a remote call.
    2. Complete identity authentication configuration. Credentials should be injected through environment variables or a key management service, never written in plaintext in configuration files.
    3. Declare a capability allowlist, exposing only the resources and tools the business actually needs and denying everything else by default.
    4. Perform a connectivity and least-privilege check, using a read-only call to confirm the connection works before enabling write operations.

    An illustrative configuration structure is shown below (fields are generic expressions, not a specific product interface):

    1. service_registry:
    2. - name: internal_crm
    3. transport: remote
    4. auth:
    5. type: token
    6. source: env://CRM_TOKEN
    7. allow:
    8. resources: ["customer.profile"]
    9. tools: ["lookup_customer", "create_ticket"]
    10. limits:
    11. timeout_ms: 3000
    12. max_retries: 2

    Security must be emphasized: the openness of the protocol layer naturally creates an attack surface. Any endpoint exposed to the model should be treated as something that can be induced to be called, so three layers of protection are needed: network isolation, call auditing, and abnormal frequency alerts.

    4. Layer Three: Writing Skills to Solidify Workflows and Knowledge

    Tools solve “what can be done,” while skills solve “in what order to do it and what standards to follow.” A skill is essentially a structured operating manual, typically containing five parts: trigger conditions, pre-checks, execution steps, failure fallback, and acceptance criteria. Its value is turning best practices discovered through one-time exploration into reusable assets, avoiding making the model re-reason the workflow every time.

    A minimal usable skill definition example:

    1. # Skill: Pre-Release Self-Check
    2. Trigger: The user requests a code change submission or a release.
    3. Pre-checks: Confirm there are no unsaved changes in the workspace; confirm the target branch exists.
    4. Execution steps:
    5. 1. Run static checks and unit tests; if they fail, stop and output the failing cases.
    6. 2. Summarize the list of changed files and the impact scope.
    7. 3. Generate a draft change description and wait for user confirmation.
    8. Failure fallback: Do not continue if any step fails; preserve the logs.
    9. Acceptance criteria: All checks pass + user confirmation + complete change description.

    The most common mistake when writing skills is making them too much like prose. Skill descriptions should use decidable conditions and verifiable acceptance criteria so the model can clearly determine “whether it is done” rather than giving a vague conclusion.

    5. How the Three Layers Work Together: From a Capability List to Closed-Loop Execution

    At runtime, the three-layer structure forms a clear chain: the model parses user intent; if external knowledge is needed, it reads resources; if an action is needed, it selects a tool; if the task involves multiple steps and standards constraints, it loads a skill that orchestrates the order of tool calls and falls back according to a predefined strategy on failure.

    For troubleshooting, you can also locate problems by layer. An output of “does not know how to proceed” usually indicates a missing skill or an unclear description. Parameter passing errors are mostly caused by imprecise tool signatures and descriptions. Rejected or timed-out calls should lead you to check the protocol layer configuration, permissions, and rate limiting. Attributing a problem to a specific layer can significantly shorten debugging time.

    6. Engineering Best Practices Checklist

    • Minimize capabilities: Expose only necessary tools and fields, and deny unknown requests by default.
    • Descriptions are the interface: The tool’s description text is the model’s only manual and needs repeated refinement.
    • Separate reads from writes: Read-only operations can run automatically, while write operations introduce secondary confirmation and idempotency keys.
    • Full-chain traceability: Record intent, tool input and output parameters, and final results to form an auditable loop.
    • Version management: Put both tools and skills under version control, and route changes through review to avoid capability drift.
    • Cost awareness: Control return body size and the number of call rounds to reduce unnecessary context consumption.
    • Continuous regression: Build a sample set for skills and run a regression pass after each adjustment to prevent capability degradation.

    7. Conclusion

    The real competitiveness of an agent lies not in stacking model parameters, but in whether the extension system is clearly layered, has clear boundaries, and is observable and rollback-capable. By proceeding in the order of “tools for atomic actions, protocols for standardized integration, and skills for workflow orchestration,” teams can use relatively low cost to gradually turn a general-purpose model into an intelligent assistant tailored to their own business, while keeping the structure stable through later evolution. If you need to handle large-scale tool calls and audit data, you can combine general cloud capabilities such as container platforms, message queues, object storage, and log monitoring to strengthen elasticity and governance.