Ad attribution
ad_attributionWhich advertisement produced which conversation: ad id, creative, first-touch flag, and the lead it bound to. The per-click id is NOT returned — only whether one exists. An empty result means no ad-driven conversation has been recorded in the window, not that the tool failed. [scope: marketing:read]
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ad_attribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return. | |
| since | No | today | week | month | 30d | ISO timestamp (Asia/Dubai days). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | False when the call was refused or failed; see error. | |
| error | No | Machine-readable refusal code (a string), present only when ok is false. | |
| message | No | Human-readable explanation of a refusal (a string). |