Skip to main content
Glama

generate_payment_code

Generates Bootpay payment, billing, subscription, and identity verification integration code for your detected platform, framework, and server language, including environment variables and next steps.

Instructions

๐Ÿš€ ๊ฒฐ์ œ ์—ฐ๋™ ์ฝ”๋“œ๋ฅผ ์ž๋™์œผ๋กœ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. (์›์Šคํ†ฑ ๋„๊ตฌ)

โš ๏ธ ๋จผ์ € detect_project_stack์„ ํ˜ธ์ถœํ•ด platformยทframeworkยทserver_languageยทscheduler๋ฅผ ํ™•์ •ํ•˜์„ธ์š”. ์ด ์ธ์ž๋“ค์„ ์ถ”์ธกํ•ด์„œ ๋„ฃ์œผ๋ฉด Rails ์„œ๋ฒ„์— Node.js ์ฝ”๋“œ๋ฅผ, Nuxt ์•ฑ์— VITE_ ์ ‘๋‘์‚ฌ๋ฅผ ๋„ฃ๋Š” ๊ฒฐ๊ณผ๊ฐ€ ๋ฉ๋‹ˆ๋‹ค.

์ด ๋„๊ตฌ ํ•˜๋‚˜๋กœ ๊ฒฐ์ œ ์—ฐ๋™์— ํ•„์š”ํ•œ ๋ชจ๋“  ๊ณผ์ •์„ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค:

  1. ์ธ์ฆ/ํ”„๋กœ์ ํŠธ/๊ฒฐ์ œ์„ค์ •/ํ‚ค์ฒด์ธ ์ž๋™ ํ™•์ธ ๋ฐ ํ•ด๊ฒฐ

  2. SDK ์ตœ์‹  ๋ฒ„์ „ ์ž๋™ ์กฐํšŒ

  3. ํ”Œ๋žซํผ/ํ”„๋ ˆ์ž„์›Œํฌ/์„œ๋ฒ„ ์–ธ์–ด์— ๋งž๋Š” ํด๋ผ์ด์–ธํŠธ + ์„œ๋ฒ„ ์ฝ”๋“œ ์ƒ์„ฑ

  4. .env ํ™˜๊ฒฝ๋ณ€์ˆ˜ ํŒŒ์ผ ๋‚ด์šฉ ์ƒ์„ฑ (์‹ค์ œ API ํ‚ค ํฌํ•จ, ํ”„๋ ˆ์ž„์›Œํฌ๋ณ„ ์ ‘๋‘์‚ฌ ์ ์šฉ)

  5. next_steps โ€” ์ฝ”๋“œ๋งŒ์œผ๋กœ ๋๋‚˜์ง€ ์•Š๋Š” ๋‚จ์€ ์šด์˜ ๋‹จ๊ณ„(์›นํ›… ๋“ฑ๋ก, ์‹ค๊ฒฐ์ œ ์ „ํ™˜ ๋“ฑ)๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋‹ˆ ์‚ฌ์šฉ์ž์—๊ฒŒ "๋‹ค์Œ ํ•  ์ผ"๋กœ ๋ฐ˜๋“œ์‹œ ์ „๋‹ฌํ•˜์„ธ์š”.

  6. decisions โ€” payment_type="subscription"์ด๋ฉด ์ฝ”๋“œ๋กœ ์ •ํ•  ์ˆ˜ ์—†๋Š” ์ •์ฑ…(์ฃผ๊ธฐยท๋ฌด๋ฃŒ์ฒดํ—˜ยท์‹คํŒจ ์žฌ์‹œ๋„ยทํ•ด์ง€ ๋ฐฉ์‹ ๋“ฑ)์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž์—๊ฒŒ ํ™•์ธํ•˜๊ฑฐ๋‚˜ ์ตœ์†Œํ•œ ๊ฐ€์ •๊ฐ’์„ ๋ช…์‹œํ•˜์„ธ์š”.

โšก "๊ฒฐ์ œ ์—ฐ๋™ํ•ด์ค˜", "๊ฒฐ์ œ ์ฝ”๋“œ ์ž‘์„ฑํ•ด์ค˜" ์š”์ฒญ ์‹œ detect_project_stack ๋‹ค์Œ์œผ๋กœ ์ด ๋„๊ตฌ๋ฅผ ํ˜ธ์ถœํ•˜์„ธ์š”. search_docs, get_doc ๋“ฑ์€ ๋จผ์ € ํ˜ธ์ถœํ•  ํ•„์š”๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

๐Ÿ“ฆ ๋ชจ๋…ธ๋ ˆํฌ(์›น + Flutter + ์„œ๋ฒ„๊ฐ€ ํ•œ ์ €์žฅ์†Œ)์—์„œ๋Š” include ์ธ์ž๋กœ ๋‚˜๋ˆ  ํ˜ธ์ถœํ•ฉ๋‹ˆ๋‹ค: generate_payment_code(include="server", server_language="python", ...) โ†’ 1ํšŒ generate_payment_code(include="client", platform="web", framework="nuxt") โ†’ ์•ฑ๋งˆ๋‹ค 1ํšŒ generate_payment_code(include="client", platform="flutter") โ†’ ์•ฑ๋งˆ๋‹ค 1ํšŒ ์„œ๋ฒ„ ์ฝ”๋“œ๋ฅผ ํด๋ผ์ด์–ธํŠธ ์ˆ˜๋งŒํผ ๋งŒ๋“ค์ง€ ๋งˆ์„ธ์š”. detect_project_stack์˜ plan์ด ์ด ์ˆœ์„œ๋ฅผ ์•Œ๋ ค์ค๋‹ˆ๋‹ค.

๐Ÿ“Œ "๊ตฌ๋…๊ฒฐ์ œ/๋ฉค๋ฒ„์‹ญ/์›”์ •์•ก/์ •๊ธฐ๊ตฌ๋…" ์š”์ฒญ์€ payment_type="subscription" ์ž…๋‹ˆ๋‹ค. billing์€ ๋นŒ๋งํ‚ค ๋ฐœ๊ธ‰ยท๊ฒฐ์ œ API ๋ถ€ํ’ˆ๋งŒ ๋งŒ๋“ค๊ณ , ํšŒ์ฐจยท์ด์šฉ๊ธฐ๊ฐ„ยทํ•ด์ง€ยท๋ฌด๋ฃŒ์ฒดํ—˜ ๊ด€๋ฆฌ๋Š” subscription์—๋งŒ ์žˆ์Šต๋‹ˆ๋‹ค.

โš ๏ธ ๋กœ๊ทธ์ธ๊ณผ ํ”„๋กœ์ ํŠธ ์„ ํƒ์€ ์‚ฌ์ „์— ์™„๋ฃŒ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:

  • ๋ฏธ๋กœ๊ทธ์ธ โ†’ browser_login ๋จผ์ € ์‹คํ–‰

  • ํ”„๋กœ์ ํŠธ ๋ฏธ์„ ํƒ โ†’ browser_select_project ๋จผ์ € ์‹คํ–‰

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": {
      "platform": "<platform>"
    },
    "name": "generate_payment_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNo์ƒ์„ฑ ๋ฒ”์œ„. all=ํด๋ผ์ด์–ธํŠธ+์„œ๋ฒ„(๋‹จ์ผ ์•ฑ). ๋ชจ๋…ธ๋ ˆํฌ์—์„œ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์—ฌ๋Ÿฌ ๊ฐœ๋ฉด server๋กœ ํ•œ ๋ฒˆ, ํด๋ผ์ด์–ธํŠธ๋งˆ๋‹ค client๋กœ ํ•œ ๋ฒˆ์”ฉ ํ˜ธ์ถœํ•˜์„ธ์š” โ€” ์„œ๋ฒ„๋ฅผ ์—ฌ๋Ÿฌ ๋ฒŒ ๋งŒ๋“ค๋ฉด ์•ˆ ๋ฉ๋‹ˆ๋‹คall
platformYes๋Œ€์ƒ ํ”Œ๋žซํผ
frameworkNo์›น ํ”„๋ ˆ์ž„์›Œํฌ (web ํ”Œ๋žซํผ์ผ ๋•Œ๋งŒ ์‚ฌ์šฉ). ์ถ”์ธกํ•˜์ง€ ๋ง๊ณ  detect_project_stack ๊ฒฐ๊ณผ๋ฅผ ๊ทธ๋Œ€๋กœ ๋„ฃ์œผ์„ธ์š”. react=React/Vite, nextjs=Next.js, nuxt=Nuxt, vue=Vue/Vite, sveltekit=SvelteKit, svelte=Svelte/Vite, angular=Angular, vanilla=HTML+CDN. ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ ‘๋‘์‚ฌ(VITE_/NEXT_PUBLIC_/NUXT_PUBLIC_/PUBLIC_)๊ฐ€ ์ด ๊ฐ’์œผ๋กœ ๊ฐˆ๋ฆฝ๋‹ˆ๋‹คreact
schedulerNo๊ตฌ๋… ๋ฐฐ์น˜ ์‹คํ–‰ ๋ฐฉ์‹ (payment_type="subscription"์ผ ๋•Œ๋งŒ ์‚ฌ์šฉ). cron=์ƒ์‹œ ์‹คํ–‰ ์„œ๋ฒ„(Express/Nest/Rails ๋“ฑ), http_trigger=์„œ๋ฒ„๋ฆฌ์Šค(Vercel/Netlify/Lambda/Cloudflare โ€” ํ”Œ๋žซํผ ์Šค์ผ€์ค„๋Ÿฌ๊ฐ€ HTTP๋กœ ํ˜ธ์ถœ). ์‚ฌ์šฉ์ž ํ”„๋กœ์ ํŠธ๊ฐ€ ์„œ๋ฒ„๋ฆฌ์Šค๋ฉด ๋ฐ˜๋“œ์‹œ http_trigger๋ฅผ ์“ฐ์„ธ์š”(node-cron์ด ๋™์ž‘ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค)cron
auto_setupNotrue: ํ‚ค์ฒด์ธ/๊ฒฐ์ œ์ˆ˜๋‹จ์ด ์—†์œผ๋ฉด ์ž๋™ ์ƒ์„ฑ/ํ™œ์„ฑํ™”. false: ์—†์œผ๋ฉด ์—๋Ÿฌ ๋ฐ˜ํ™˜
payment_typeNo๊ฒฐ์ œ ์œ ํ˜•: payment=์ผ๋ฐ˜๊ฒฐ์ œ, billing=๋นŒ๋งํ‚ค ๋ฐœ๊ธ‰+์ž๋™/์˜ˆ์•ฝ๊ฒฐ์ œ(๋ถ€ํ’ˆ ๋‹จ์œ„), subscription=๊ตฌ๋…(์›” ์ •๊ธฐ๊ณผ๊ธˆ โ€” ํšŒ์ฐจ ํ…Œ์ด๋ธ”ยท์ค‘๋ณต๊ฒฐ์ œ ๋ฐฉ์ง€ ๋ฐฐ์น˜ยท๋ฌด๋ฃŒ์ฒดํ—˜ยท์‹คํŒจ ์žฌ์‹œ๋„ยท๊ฐ€๊ฒฉ ๋ณ€๊ฒฝยทํ•ด์ง€๊นŒ์ง€), widget=๊ฒฐ์ œ์œ„์ ฏ(web ์ „์šฉ), auth=๋ณธ์ธ์ธ์ฆ(๋‹ค๋‚  ํœด๋Œ€ํฐ ์ธ์ฆ)payment
server_languageNo์„œ๋ฒ„ ์–ธ์–ด. ๐Ÿ”ด ์ถ”์ธกํ•˜์ง€ ๋ง๊ณ  detect_project_stack ์œผ๋กœ ํ™•์ธํ•œ ๊ฐ’์„ ๋„ฃ์œผ์„ธ์š”. ํด๋ผ์ด์–ธํŠธ๊ฐ€ FlutterยทAndroid์—ฌ๋„ ์„œ๋ฒ„๋Š” Rails/Django/Spring์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์„ค์น˜ ๋ช…๋ นยท์ดˆ๊ธฐํ™”ยท์„œ๋ฒ„ ์ฝ”๋“œ๊ฐ€ ์ด ๊ฐ’์œผ๋กœ ๊ฐˆ๋ฆฝ๋‹ˆ๋‹คnodejs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.15.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, open-world, not idempotent, non-destructive); the description adds real behavior beyond that โ€” it auto-creates/activates keychain and payment methods when auto_setup=true, embeds actual API keys into .env with framework-specific prefixes, and returns next_steps/decisions that the agent must relay to the user. The warning that guessing platform/framework/server_language produces wrong code (e.g. Node.js code for a Rails server) also discloses a concrete failure mode.

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?

Well front-loaded and sectioned (prerequisite โ†’ step list โ†’ trigger phrasing โ†’ monorepo recipe โ†’ subscription mapping โ†’ login prerequisites), so an agent can scan it quickly. It is long for a tool description and repeats the generation idea in both the opening line and the numbered step list, plus heavy emoji headers, which costs a point.

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?

For a 7-parameter, high-blast-radius code generator with no output schema, the description covers the essentials: prerequisites, call ordering, monorepo splitting, and what the response contains (code, .env, next_steps, decisions) and what the agent must do with it. Nothing an agent needs in order to invoke it correctly appears to be missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds operational meaning on top: it shows worked include="server"/include="client" call examples for monorepos, explains that scheduler must be http_trigger on serverless because node-cron will not run, and ties framework to the env-var prefix. It does not add anything beyond the schema for auto_setup or payment_type beyond what the enum descriptions already say.

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 (generate payment integration code) and immediately scopes it as a one-stop tool that emits client code, server code, .env contents, next_steps and decisions. It also distinguishes itself from siblings by saying search_docs/get_doc need not be called first, so an agent can tell it apart from the doc-retrieval tools without opening a 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?

Gives explicit ordering (detect_project_stack first, then this tool), explicit exclusions (do not call search_docs/get_doc first), prerequisite handling (browser_login, browser_select_project), and a concrete branching recipe for monorepos (one server call, one client call per app). It also maps natural-language requests like '๊ตฌ๋…๊ฒฐ์ œ/๋ฉค๋ฒ„์‹ญ' to payment_type="subscription".

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