# Send Mcp Integration to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-mcp-plugin",
    "name": "Mcp Integration",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lunarpulse/openclaw-mcp-plugin",
    "canonicalUrl": "https://clawhub.ai/lunarpulse/openclaw-mcp-plugin",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-mcp-plugin",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-mcp-plugin",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "config/openclaw.plugin.json",
      "docs/API.md",
      "docs/CONFIGURATION.md",
      "docs/EXAMPLES.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-mcp-plugin",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T10:18:17.862Z",
      "expiresAt": "2026-05-12T10:18:17.862Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-mcp-plugin",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-mcp-plugin",
        "contentDisposition": "attachment; filename=\"openclaw-mcp-plugin-0.1.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-mcp-plugin"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-mcp-plugin"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-mcp-plugin",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-mcp-plugin",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-mcp-plugin/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-mcp-plugin/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-mcp-plugin/agent.md"
  }
}
```
## Documentation

### Overview

Use the MCP integration plugin to discover and execute tools provided by external MCP servers. This skill enables you to access legal databases, query APIs, search databases, and integrate with any service that provides an MCP interface.

The plugin provides a unified mcp tool with two actions:

list - Discover available tools from all connected servers
call - Execute a specific tool with parameters

### 1.1 Check Available Tools

Always start by listing available tools to see what MCP servers are connected and what capabilities they provide.

Action:

{
  tool: "mcp",
  args: {
    action: "list"
  }
}

Response structure:

[
  {
    "id": "server:toolname",
    "server": "server-name",
    "name": "tool-name", 
    "description": "What this tool does",
    "inputSchema": {
      "type": "object",
      "properties": {...},
      "required": [...]
    }
  }
]

### 1.2 Understand Tool Schemas

For each tool, examine:

id: Format is "server:toolname" - split on : to get server and tool names
description: Understand what the tool does
inputSchema: JSON Schema defining parameters

properties: Available parameters with types and descriptions
required: Array of mandatory parameter names

### 1.3 Match Tools to User Requests

Common tool naming patterns:

search_* - Find or search operations (e.g., search_statute, search_users)
get_* - Retrieve specific data (e.g., get_statute_full_text, get_weather)
query - Execute queries (e.g., database:query)
analyze_* - Analysis operations (e.g., analyze_law)
resolve_* - Resolve references (e.g., resolve_citation)

### 2.1 Validate Parameters

Before calling a tool:

Identify all required parameters from inputSchema.required
Verify parameter types match schema (string, number, boolean, array, object)
Check for constraints (minimum, maximum, enum values, patterns)
Ensure you have necessary information from the user

### 2.2 Construct Tool Call

Action:

{
  tool: "mcp",
  args: {
    action: "call",
    server: "<server-name>",
    tool: "<tool-name>",
    args: {
      // Tool-specific parameters from inputSchema
    }
  }
}

Example - Korean legal search:

{
  tool: "mcp",
  args: {
    action: "call",
    server: "kr-legal",
    tool: "search_statute",
    args: {
      query: "연장근로 수당",
      limit: 5
    }
  }
}

### 2.3 Parse Response

Tool responses follow this structure:

{
  "content": [
    {
      "type": "text",
      "text": "JSON string or text result"
    }
  ],
  "isError": false
}

For JSON responses:

const data = JSON.parse(response.content[0].text);
// Access data.result, data.results, or direct properties

### 3.1 Chain Tool Calls

For complex requests, execute multiple tools in sequence:

Example - Legal research workflow:

Search - search_statute to find relevant laws
Retrieve - get_statute_full_text for complete text
Analyze - analyze_law for interpretation
Precedents - search_case_law for related cases

Each step uses output from the previous step to inform the next call.

### 3.2 Maintain Context

Between tool calls:

Extract relevant information from each response
Use extracted data as parameters for subsequent calls
Build up understanding progressively
Present synthesized results to user

### 4.1 Common Errors

"Tool not found: server:toolname"

Cause: Server not connected or tool doesn't exist
Solution: Run action: "list" to verify available tools
Check spelling of server and tool names

"Invalid arguments for tool"

Cause: Missing required parameter or wrong type
Solution: Review inputSchema from list response
Ensure all required parameters provided with correct types

"Server connection failed"

Cause: MCP server not running or unreachable
Solution: Inform user service is temporarily unavailable
Suggest alternatives if possible

### 4.2 Error Response Format

Errors return:

{
  "content": [{"type": "text", "text": "Error: message"}],
  "isError": true
}

Handle gracefully:

Explain what went wrong clearly
Don't expose technical implementation details
Suggest next steps or alternatives
Don't retry excessively

### Step 1: Discover tools

{tool: "mcp", args: {action: "list"}}

Response shows kr-legal:search_statute with:

Required: query (string)
Optional: limit (number), category (string)

### Step 2: Execute search

{
  tool: "mcp",
  args: {
    action: "call",
    server: "kr-legal",
    tool: "search_statute",
    args: {
      query: "연장근로 수당",
      category: "노동법",
      limit: 5
    }
  }
}

### Step 3: Parse and present

const data = JSON.parse(response.content[0].text);
// Present data.results to user

User-facing response:

Found 5 Korean statutes about overtime pay:

1. 근로기준법 제56조 (연장·야간 및 휴일 근로)
   - Overtime work requires 50% premium
   
2. 근로기준법 제50조 (근로시간)
   - Standard working hours: 40 hours per week

Would you like me to retrieve the full text of any statute?

### List Tools

{tool: "mcp", args: {action: "list"}}

### Call Tool

{
  tool: "mcp",
  args: {
    action: "call",
    server: "server-name",
    tool: "tool-name",
    args: {param1: "value1"}
  }
}

### Essential Patterns

Tool ID parsing: "server:toolname" → split on : for server and tool names

Parameter validation: Check inputSchema.required and inputSchema.properties[param].type

Response parsing: JSON.parse(response.content[0].text) for JSON responses

Error detection: Check response.isError === true

### Core Documentation

Plugin README: README.md - Installation and configuration
Real Example: REAL_EXAMPLE_KR_LEGAL.md - Working kr-legal setup
API Reference: API.md - Technical API details
Configuration: CONFIGURATION.md - Server configuration guide
Troubleshooting: TROUBLESHOOTING.md - Common issues and solutions

### Usage Examples

Examples Collection: EXAMPLES.md - 13 real-world examples including:

Legal research workflows
Database queries
Weather service integration
Multi-step complex workflows
Error handling patterns

Remember: Always start with action: "list" when uncertain about available tools.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lunarpulse
- Version: 0.1.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T10:18:17.862Z
- Expires at: 2026-05-12T10:18:17.862Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-mcp-plugin)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-mcp-plugin/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-mcp-plugin/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-mcp-plugin/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-mcp-plugin)