get_commerce_context
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
| Name | Required | Description | Default |
|---|---|---|---|
| auto_create | No | 이 도구는 키를 만들지 않습니다(이전 버전 호환용 인자). 발급은 create_commerce_keys 가 합니다. |