Skip to main content
Glama

configure_widget

Idempotent

Set payment widget styles such as theme, color, and layout separately for PC or mobile, then apply them to sandbox or live environments.

Instructions

결제 위젯의 스타일(테마, 컬러, 레이아웃)을 설정합니다. PC/모바일 별도 스타일 지정 가능. sandbox/live 환경을 선택하여 적용할 수 있습니다. ⚠️ 프로젝트 선택 필요 (로그인 필요)

[스타일 구조] { pc: {...}, mobile: {...}, global: {...} } [지원 스타일 키]

  • mainTheme: 상단 테마바 (background-color, height)

  • titleStyle: 헤더 타이틀 (font-size, font-weight)

  • containerStyle: 메인 컨테이너 (padding-*, background-color)

  • splitLineStyle: 구분선 (display, border-color, border-width)

  • buttonStyle: 결제수단 버튼 (border-radius, gap, height, normal/active 상태)

  • termsAllButtonStyle: 약관동의 버튼 (type, text, normal/active 상태)

  • termsTextStyle: 약관 텍스트 (normal/active 상태)

  • cardStyle: 카드결제 섹션 (layout, interest, logo)

  • promotionStyle: 프로모션 (layout, openType, moreStyle, style)

  • brandpayStyle: 브랜드페이 (cardSection, term, termText, basic)

[위젯 타입별 차이]

  • 일반결제(type=0): viewType=1top-3rows, buttonStyle.height=60

  • 기본결제(type=1): viewType=4rows/3rows, buttonStyle.height=96, displayTitle=true, displayText=true(PC)

변경하려는 속성만 전달하면 나머지는 기본값 유지 (deep merge). 기본 스타일은 get_widget_default_styles로 확인하세요.

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": {
      "widget_key": "<widget_key>",
      "styles": "<styles>"
    },
    "name": "configure_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
stylesYes스타일 설정 객체. { pc: {...}, mobile: {...}, global: {...} } 구조. 예: { "pc": { "buttonStyle": { "active": { "background-color": "#ff6600" } } } }. 부분 업데이트 가능 - 변경할 속성만 전달하면 나머지는 기본값 유지.
sandboxNo샌드박스(개발) 환경에 적용할지 여부. true=샌드박스, false=라이브(운영)
widget_keyYes위젯 키 (list_widgets로 확인)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.15.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only but non-destructive, idempotent mutation, so the safety profile is covered. The description adds genuinely useful behavior beyond that: partial updates are deep-merged so unspecified properties keep defaults, and output differs by widget type (viewType, button height, displayTitle). It still does not explain reversibility, reset-to-default, or what the call returns.

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, prerequisites, then bracketed reference blocks for structure and style keys, with the deep-merge rule and the default-styles pointer at the end. The key reference is long but is load-bearing given the free-form styles object; only minor redundancy in repeating the pc/mobile/global structure.

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 mutation tool with a nested free-form parameter, no output schema, and existing annotations, it covers what an agent needs: prerequisites, environment selection, merge semantics, and the style key catalog. Return shape and reset/error behavior are the remaining gaps.

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?

The schema documents the three parameters fully, but 'styles' is an untyped nested object (additionalProperties: {}), so the schema alone says nothing about valid keys. The description compensates with the pc/mobile/global structure, a per-section list of supported style keys and sub-properties, and the widget-type-specific value differences.

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: it sets the styling (theme, color, layout) of the payment widget, with PC/mobile branching and a sandbox/live target. The 'style' scope implicitly separates it from siblings such as update_widget, but no sibling is named as a contrast, so it falls short of full differentiation.

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

Usage Guidelines3/5

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

It gives real operating context: a project must be selected (login required), sandbox vs live is chosen via a flag, and defaults should be inspected with get_widget_default_styles first. However, it never says when to use this versus update_widget/create_widget, and gives no explicit exclusions or failure conditions.

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