Skip to main content
Glama

get_commerce_context

Read-onlyIdempotent

Retrieves commerce integration status in one read-only call, including authentication state, project details, masked keychain metadata, and API scopes so you can verify setup before generating code.

Instructions

커머스 연동 상태를 읽기 전용으로 한 번에 조회합니다. 키를 만들거나 설정을 바꾸지 않습니다.

📦 조회 항목:

  • 인증 상태 / 프로젝트 정보

  • 커머스용 키체인 메타데이터 (client_key, secret_key 는 마스킹)

  • 커머스 API 스코프 (권한 목록)

🔑 이 도구는 키를 만들지 않습니다(읽기 전용). 키체인이 0개면 readiness.next_actions 대로 create_commerce_keys 를 바로 호출하세요 — 사용자 확인은 필요 없습니다. 🔁 사용자가 이미 Commerce client_key/secret_key 를 제공했다면 이 도구와 관리자 로그인 없이 generate_commerce_code(credential_source="provided") 로 진행할 수 있습니다.

📋 서버 인증: Authorization: Basic Base64(clientKey:secretKey) — secret_key 는 앱 서버 환경변수에만 둡니다. ⚠️ 결제용 키가 필요하면 get_integration_context를 사용하세요. (로그인 + 프로젝트 선택 필요)

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

Input Schema

NameRequiredDescriptionDefault
auto_createNo이 도구는 키를 만들지 않습니다(이전 버전 호환용 인자). 발급은 create_commerce_keys 가 합니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.15.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so the description goes further by disclosing that secret_key values are masked in output, that no keys are created, and that login plus project selection are prerequisites. That is real added context beyond structured fields. The only gap is no mention of rate limits or behavior when auth has expired.

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?

The lead sentence is front-loaded and the sectioned layout with 조회 항목 is easy to scan. Some lines, notably the Basic auth/server environment variable note and the ⚠️ payment-key pointer, serve the surrounding setup workflow more than this specific invocation, so it runs slightly long.

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 compensates by enumerating what is returned (auth status, project info, masked keychain metadata, API scopes) and by stating the login/project prerequisites. Complete enough to call correctly, though error/empty-state handling is only implied via readiness.next_actions.

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?

There is a single optional parameter (auto_create) with 100% schema description coverage that already explains it is a legacy compatibility argument that does nothing. The description never mentions it, so it adds nothing beyond the schema, which is the expected baseline when coverage is complete.

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?

The opening line states a specific verb and resource — read-only one-shot retrieval of commerce integration status — and immediately rules out key creation and settings changes. It is distinguishable from create_commerce_keys and get_integration_context without opening any 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?

Explicit when-to-use branches are given: if keychain count is 0, call create_commerce_keys directly per readiness.next_actions; if the user already supplied client_key/secret_key, skip this and use generate_commerce_code(credential_source="provided"); if payment keys are needed, use get_integration_context. Exclusions and alternatives are both stated.

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