Skip to main content
Glama

get_csp_allowlist

Read-onlyIdempotent

Generates CSP allowlists for payment gateway domains plus framework-specific snippets to resolve blocked payment iframes and frame-src Content-Security-Policy violations.

Instructions

결제창이 CSP(Content-Security-Policy)에 막힐 때 헤더에 넣어야 할 PG 도메인 허용목록과 프레임워크별 설정 스니펫을 생성합니다. "Refused to frame" / "violates the following Content Security Policy directive: frame-src" 에러에 사용하세요.

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_csp_allowlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
pgNo사용 중인 PG 코드. 쉼표로 여러 개 (예: "nicepay" · "lightpay" · "kcp,kakao"). 한글명도 인식합니다(나이스페이·세틀뱅크·라이트페이 등). 생략하면 표에 있는 전체 PG 를 허용하는 최대본을 반환합니다. 지원 코드: lightpay, nicepay, settlebank, inicis, kcp, toss, smartro, danal, payletter, payapp, easypay, welcome, payco, kakao, naverpay, mobilians, ksnet, jtnet, tpay, paypal, stripe
frameworkNoCSP 를 어디에 넣을지. vercel(vercel.json) · nextjs(next.config.js) · nuxt(nuxt.config.ts) · nginx · express(helmet) · meta(HTML meta 태그) · raw(헤더 값만). 기본 raw
include_certNo본인인증(method: "auth")을 사용하면 true — 인증기관 도메인을 함께 넣습니다.
include_card_acsNo카드사 ACS(3-D Secure 인증) 도메인 포함 여부. **기본 true** — 평범한 카드결제의 일부라 빼면 "결제창은 뜨는데 카드 인증에서 멈춘다"가 됩니다. 카드결제를 아예 안 받을 때만 false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.15.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint/idempotentHint true and destructiveHint false, so the safe, deterministic nature is covered without prose. The description adds the diagnostic framing of the operation (it emits header values and framework snippets rather than mutating anything), but with no output schema it does not describe the shape of the returned allowlist/snippets, which is the main thing left implicit.

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?

Two sentences with zero padding: the first defines the output, the second gives the trigger. The error strings are front-loaded as the actionable hook, and nothing is repeated from the schema.

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 4-optional-parameter generator with full schema coverage and no output schema, the description covers what is produced and when to reach for it. The remaining gap is the return shape (a header string vs. a table vs. code blocks per framework), which an agent must discover by calling it.

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

Parameters3/5

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

Schema description coverage is 100%, with all four parameters documented in detail including enum options and defaults, so the baseline of 3 applies. The description adds no parameter-level meaning beyond the error scenario that motivates framework/include_card_acs/include_cert choices.

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 concrete verb (생성합니다) and concrete artifacts: a PG domain allowlist for the CSP header plus per-framework config snippets. That is specific enough to distinguish it from sibling documentation/troubleshooting helpers, but it never names a sibling (e.g. get_troubleshooting or get_cs_guide) to route an agent that does not yet know a CSP problem is the cause.

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 is triggered by explicit, quotable conditions — the payment window being blocked by CSP and the exact errors "Refused to frame" / "violates the following Content Security Policy directive: frame-src". This is clear when-to-use guidance, but there is no when-not guidance and no pointer to an alternative tool when the symptom is different.

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

Deploy Server

Other Tools