Skip to main content
Glama

KAT / 한국AI통신

get_usage

Read-only

사용량 집계 조회 — 통화(발신/수신/전환)·문자·전사·요약·AMD 를 미터별로 합산한다. ⚠️ 사용량을 묻는 질문에는 반드시 이 도구를 쓴다. list_calls 를 받아 직접 합산하면 종료 후 정정·청구 주기 경계가 반영되지 않고 문자·전사·요약은 통화 목록에 아예 없어, 그럴듯하지만 청구서와 다른 값이 나온다. from·to 는 함께 지정한다(UTC, 최대 92일). 생략하면 현재 청구 주기 전체를 집계한다. groupBy 로 축을 쪼갠다 — 최종이용자별 정산 단위는 linkId 다(번호는 반납 후 재배정되므로 정산 키로 쓰지 말 것). records 는 기본 50행까지만 싣는다 (전체 행 수는 meta.total, 더 받으려면 page). totals 는 페이지와 무관하게 구간 전체 합계이며, billableMinutes 가 청구와 같은 규칙의 분이다. 금액(amount·unitPriceHint)은 아직 제공하지 않는다(항상 null) — 요금은 추정해 말하지 말 것.

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": "get_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
pageNo
meterNo
groupByNo
pageSizeNo
includeTodayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/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. The description adds substantial non-obvious behavior: from/to default to the current billing cycle, range is UTC and capped at 92 days, records are truncated to 50 rows while totals span the full range, billableMinutes follows billing rules, and amount/unitPriceHint are always null. That last point is important because it prevents the agent from quoting prices.

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

Conciseness4/5

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

Purpose is front-loaded in the first clause, then warnings, then parameter semantics in rough priority order. It is dense and every sentence carries operational meaning; the length is justified by the number of behaviors disclosed. The number and nesting of parenthetical asides makes it slightly heavier than necessary.

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

Completeness4/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 still explains the response shape itself — records with a 50-row default, meta.total, totals independent of paging, and null monetary fields. Input semantics, defaults, timezone, and range limits are covered. Only includeToday and the pageSize ceiling are left undocumented.

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 description coverage is 0%, so the description must carry the load, and it does for the important parameters: from/to must be supplied together, are UTC, max 92 days, and default to the whole current billing cycle; groupBy explains that linkId is the settlement key while number is not reusable after release; page is tied to the 50-row default and meta.total. Gaps remain: includeToday is never explained and the pageSize maximum of 500 is left to the schema.

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

Purpose5/5

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

Names a specific verb and resource ('사용량 집계 조회') and enumerates exactly what is aggregated: outbound/inbound/transfer seconds, SMS/LMS/MMS/ATA/BMS, transcription, summary, and AMD, per meter. It explicitly separates itself from the sibling list_calls, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

States '반드시 이 도구' for any usage question and names the alternative (list_calls) together with the reason it is wrong: post-termination corrections and billing-cycle boundaries are lost, and messaging/transcription/summary rows are absent from call lists. This is an explicit when-to-use plus when-not-to-use with the alternative spelled out.

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