direct_rpc
Call any Yandex Direct API service.method directly using JSON parameters. Use for operations not covered by typed tools; write operations require allow_write=true.
Instructions
Escape hatch: call any Direct API service.method with params JSON. Prefer typed tools. Methods add/update/delete/suspend/resume/set/moderate require allow_write=true. service e.g. campaigns, keywords, ads, adgroups, bidmodifiers, keywordbids, clients, dictionaries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service": "<service>",
"method": "<method>"
},
"name": "direct_rpc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| params | No | API params object | |
| service | Yes | ||
| allow_write | No | Required for mutating methods |