Skip to main content
Glama

get_commerce_keys

Read-onlyIdempotent

Retrieves commerce keychain metadata for the current project—client key, masked secret key, name, and count—without creating keys. Use it to check commerce credentials before issuing new ones.

Instructions

현재 프로젝트의 커머스용 키체인 메타데이터를 조회합니다 (client_key, 마스킹된 secret_key, 이름, 개수). 조회 전용 — 이 도구는 키를 만들지 않습니다. 키체인이 0개면 create_commerce_keys 를 바로 호출해 발급하세요(사용자 확인 불필요).

⚡ 사용법: browser_login → browser_select_project → get_commerce_keys 🔁 사용자가 이미 Commerce key 를 제공했다면 이 도구는 필요 없습니다. ⚠️ 결제용 키가 필요하면 list_keychains(source="core")를 사용하세요. (로그인 + 프로젝트 선택 필요)

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.15.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds real context: the secret_key is masked in output, the tool requires an authenticated session plus a selected project, and a zero-result state should lead straight to create_commerce_keys without user confirmation. It does not explain the openWorldHint implication (external API call), which is the one remaining behavioral gap.

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?

Front-loaded purpose sentence, then short labeled lines for prerequisites, exclusions, and alternatives. Every line carries distinct routing information; the read-only restatement is mildly redundant with the annotations but reinforces intent cheaply.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 correctly compensates by naming the returned fields and their masking. Auth prerequisites, the empty-state path, and the sibling alternative are all covered, leaving nothing an agent needs in order to call this correctly.

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 tool takes zero parameters, so baseline is 4. The description instead spends its words on the returned fields and prerequisites, which is the right allocation for a parameterless tool.

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?

States a specific verb and resource (retrieves the current project's commerce keychain metadata) and enumerates the returned fields (client_key, masked secret_key, name, count). It is clearly distinguishable from create_commerce_keys and list_keychains by scope.

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?

Explicitly gives the prerequisite chain (browser_login → browser_select_project → get_commerce_keys), a when-not condition (skip if the user already supplied a Commerce key), and a routing rule to list_keychains(source="core") for payment keys. It also states the follow-up action when the keychain is empty.

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