Skip to main content
Glama

기간 비교 (이번 주 vs 지난주)

compare_periods
Read-only

이번 기간과 바로 앞 기간의 클릭·유니크, 채널별 증감을 서버에서 계산해 돌려줍니다. 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

NameRequiredDescriptionDefault
daysNo비교 기간(일) — 7 또는 30
link_idNo링크 ID (생략하면 전체 링크)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered, but the description adds substantial context on top: computation happens server-side, free-plan retention of 7 days yields comparable=false rather than zero-filled values, and the response's summary line is safe to surface verbatim. That is real behavioral disclosure beyond the annotations, though the response shape itself (fields beyond summary) is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with what the tool computes, then parameter meaning, then the free-plan edge case and the output hint. Nothing is redundant with the schema or annotations, and every sentence carries actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by explaining the comparable=false outcome and the summary line, which are the two things an agent would otherwise get wrong when relaying results. For a two-parameter, read-only comparison tool, this is complete enough to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning: it translates each enum value (7, 30) into the concrete period boundaries it represents, and clarifies that omitting link_id means all links are compared. This is semantic value the schema's one-line parameter descriptions do not carry.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: server-side computation of click/unique and per-channel deltas between the current and immediately preceding period. It is clear the tool is a comparison engine rather than a raw report, though it never names or contrasts itself with siblings like channel_breakdown or get_analytics_summary, leaving some ambiguity for an agent choosing among analytics tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is spelled out concretely: days=7 yields this-week-vs-last-week, days=30 yields last-30-vs-prior-30, and supplying link_id narrows the comparison to a single link. It also states the free-plan precondition that makes a comparison impossible. It stops short of explicitly naming an alternative tool for when a plain (non-comparative) breakdown is wanted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources