Skip to main content
Glama

광고 매출 연결 계산

marketing__lead_to_revenue__reconcile

고객이 입력한 광고비, 매출, 신규 유료 고객 수, 기여이익으로 ROAS(광고비 대비 매출), 마케팅 ROI(포함 비용 대비 기여이익), CAC(신규 유료 고객 1명당 광고비)를 계산합니다. 필수 입력은 보고 기간과 광고비뿐이고, 나머지는 넣은 만큼 계산하며 없는 지표는 값 대신 사유를 돌려줍니다. 입력한 숫자로 계산만 하고 매출 원장을 보관하지 않습니다. 외부 기관이나 광고 계정을 부르지 않으며 로그인이나 연동이 필요 없습니다. 로그인한 호출이면 첫 요청 전에 request_idempotency_key 값을 만들어 저장하세요. 응답을 받지 못한 그 요청을 되찾을 때만 같은 인자와 함께 그 값을 다시 보내고, 새로 실행할 때는 새 값을 쓰세요. 이 값 없이 다시 부르면 새 요청이 됩니다. 계정 없이 맛보기로 부를 때는 이 선택 칸을 쓸 수 없습니다. 기관 업무에 따로 있는 idempotency_key 칸은 다른 칸이니 그대로 두세요. 호출마다 토큰 2소진 요청 처리 시 XBOSS 작업을 생성하고 처리 결과를 저장합니다. 기관 원본의 조회 여부와 별개로 이 호출은 순수 읽기 전용이 아닙니다. 기관 데이터 변경은 도구별 실행 내용과 기존 확인 절차를 따릅니다.

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": {
      "report_period": "<report_period>",
      "ad_cost": "<ad_cost>"
    },
    "name": "marketing__lead_to_revenue__reconcile"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_costYes보고 기간 광고비(ROAS 분모, CAC 분자)
included_costNo마케팅 ROI 에 포함할 비용(마케팅 ROI 분모)
report_periodYes보고 기간. 끝 날짜는 포함하지 않는다
customer_revenueNo고객이 직접 넣는 매출. 기간과 통화가 보고와 다르면 매출 지표는 값 대신 사유를 돌려준다
new_paid_customersNo보고 기간의 신규 유료 고객 수(CAC 분모)
contribution_profitNo고객이 정의한 기여이익(마케팅 ROI 분자)
request_idempotency_keyNo로그인한 호출에서 응답을 못 받은 같은 요청을 되찾을 때 쓰는 선택 값입니다. 쓰는 법은 도구 설명에 있습니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / request_idempotency_key / description
      Previous value: -"Optional same-request recovery key for authenticated calls; see the tool description."New value: +"로그인한 호출에서 응답을 못 받은 같은 요청을 되찾을 때 쓰는 선택 값입니다. 쓰는 법은 도구 설명에 있습니다."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the tool does not persist a revenue ledger, charges 2 tokens per call, creates an XBOSS task and stores its result, and is explicitly not a pure read operation. That is meaningful context an agent could not infer from readOnlyHint=false alone. Some of it stays opaque (what the XBOSS task does) and the trailing sentence about 기관 데이터 변경 is boilerplate that adds little.

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

Conciseness3/5

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

The core computation and required inputs are correctly front-loaded, but the back half sprawls across idempotency edge cases, an unrelated "기관 업무 idempotency_key" warning, and boilerplate about 기관 확인 절차. Several sentences could be compressed or dropped without losing information the agent needs to invoke the tool correctly.

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?

For a 7-parameter tool with nested money/period objects and no output schema, the definition covers required inputs, optional inputs, and the fallback behavior when a metric cannot be computed. The main residual gap is that the response shape is only described abstractly ("값 대신 사유") rather than illustrated, which matters since there is no output schema to fall back on.

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 still adds decision-relevant meaning: which parameters are required versus optional, and that missing or mismatched inputs (period/currency) produce a reason string instead of a metric. The idempotency instructions explain the semantics of request_idempotency_key beyond its schema wording, including that a re-send without a fresh key becomes a new request.

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?

The opening sentence names the exact computed metrics (ROAS, 마케팅 ROI, CAC) and their ingredients (광고비, 매출, 신규 유료 고객 수, 기여이익), so the tool's operation is unmistakable. It also rules out adjacent behavior ("매출 원장을 보관하지 않습니다", "외부 기관이나 광고 계정을 부르지 않으며"), which implicitly separates it from the archive/report siblings, but it never names or contrasts a specific alternative tool.

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?

It specifies required inputs ("필수 입력은 보고 기간과 광고비뿐이고") and states that extra inputs simply extend the computation while omitted metrics yield a reason rather than a value. It also gives a clear precondition for the idempotency field. What it lacks is any explicit "use X instead when..." routing to a sibling such as marketing__growth_review__compute.

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