기간 비교 (이번 주 vs 지난주)
compare_periods이번 기간과 바로 앞 기간의 클릭·유니크, 채널별 증감을 서버에서 계산해 돌려줍니다. days=7이면 이번 주/지난주, 30이면 최근 30일/지난 30일입니다. link_id를 주면 그 링크만 비교합니다. 무료 플랜은 보관 7일이라 지난 기간을 집계할 수 없어 comparable=false로 응답합니다(0으로 채우지 않음). 응답의 summary 한 줄을 그대로 사용자에게 보여 줘도 됩니다.
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": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | 비교 기간(일) — 7 또는 30 | |
| link_id | No | 링크 ID (생략하면 전체 링크) |