Skip to main content
Glama
meritz-securities

meritz-codegen

Official

generate_code

Read-onlyIdempotent

Generates Python code for Meritz Open API: REST token, request, response checks; realtime WebSocket subscriptions; order/exchange safety confirm. api_type='token' creates token-only code.

Instructions

api_type 을 호출하는 Python 코드를 만듭니다. REST 는 토큰 발급·요청·응답 판정까지, 실시간은 웹소켓 구독 코드를 만듭니다. 주문·환전은 confirm=True 전까지 전송하지 않는 안전장치가 들어갑니다. api_type='token' 이면 토큰 발급 코드만 만듭니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_typeYes코드를 만들 API 의 api_type. search_api 나 get_api_detail 에서 확인한 값을 넣습니다. 'token' 이면 접근토큰 발급 코드만 만듭니다.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.7
    • addedInput schema / properties / api_type / description
      Added value: +"코드를 만들 API 의 api_type. search_api 나 get_api_detail 에서 확인한 값을 넣습니다. 'token' 이면 접근토큰 발급 코드만 만듭니다."
  2. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior. The description adds valuable context beyond that: generated code includes token issuance, request/response handling, websocket subscription, and a confirm=True safety guard so orders/exchanges are not sent prematurely. It stops short of describing error behavior or code usability caveats.

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?

Three concise sentences, all front-loaded: main purpose, then REST/real-time variants, then safety behavior and the token exception. Every sentence earns its place with no filler or redundant expansion.

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 one-parameter generator with a rich output schema and safety annotations, the description covers the core input semantics and all generation modes. It is slightly incomplete about when to consult api_conventions and what happens on invalid api_type values, but nothing essential to calling it correctly is missing.

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?

Schema coverage is 100%, and the parameter description already explains that api_type must come from search_api/get_api_detail and that 'token' produces token-issuance code only. The tool description repeats the token special case but adds little semantic value beyond the schema, so the baseline 3 is appropriate.

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 description opens with a specific verb and resource: 'Creates Python code that calls api_type' and then disambiguates REST, real-time websocket, and token-only generation modes. This makes the purpose unmistakable and clearly distinguishes it from the sibling discovery/inspection tools.

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?

The description implies usage by API type and special-cases api_type='token', while the parameter schema tells agents to use a value from search_api or get_api_detail. However, it never explicitly states when to prefer this tool over api_conventions or other siblings, nor does it give exclusions. Guidance is adequate but mostly left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.