tencent cloud

Tencent Cloud Agent Development Platform

DokumentasiTencent Cloud Agent Development Platform

CallMCPTool

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-04 21:49:38

1. API Description

Domain name for API request: adp.intl.tencentcloudapi.com.

Tool call triggered by a user in the MCP App iframe.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CallMCPTool.
Version Yes String Common Params. The value used for this API: 2026-05-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
PluginId Yes String

Capacity boundary: one request can only call the tool on this plugin

ThreadId Yes String

thread on the agent-exec side

ToolName Yes String

Tool Name, used for locating the tool_id in the configured tool_list of the plugin

Arguments No String

JSON: Original tool input parameters, passed through to the MCP Server as-is

3. Output Parameters

Parameter Name Type Description
Result String

JSON: The complete original CallToolResult, including structuredContent / isError / _meta

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 MCP-APP tool call

Input Example

POST / HTTP/1.1
Host: adp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CallMCPTool
<Common request parameters>

{
    "PluginId": "418eee0b-4aa7-4aef-939b-3c48d404e846",
    "ThreadId": "73251347-32c8-49a1-bea5-32a6aeb82ebc",
    "ToolName": "overtime_view_state",
    "Arguments": "{\"viewUUID\":\"72e8f6a9-d87f-4067-b917-b5c7de90154f\"}"
}

Output Example

{
    "Response": {
        "Result": "{\"content\":[{\"type\":\"text\",\"text\":\"This form has not been submitted.\"}],\"structuredContent\":{\"submitted\":false}}",
        "RequestId": "8540d0bc-ed10-4c72-b04a-4bd441917434"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan