Skip to main content
Glama
meritz-securities

meritz-codegen

Official

generate_code

Read-onlyIdempotent

Generates Python code for Meritz Securities API calls, covering token issuance, REST requests, and WebSocket subscriptions. For orders and currency exchange, it includes a safety guard that delays transmission until confirm=True.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_typeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, so no side-effect warning is required. The description adds substantial behavioral detail beyond annotations: REST code covers token issuance through response determination, realtime code uses websocket subscription, and order/exchange code includes a confirm=True safety gate before transmission.

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?

Four short Korean sentences front-load the core purpose and pack conditional behavior without repetition or filler. Each sentence adds a distinct piece of information: main action, REST/realtime variation, safety mechanism, and token-only mode.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter code generator with an output schema and safety annotations, the description covers the main generation modes and the confirm safeguard. The notable gap is that exact api_type values are not specified, and no pointer to sibling conventions or an enum is provided, so an agent may not reliably know which literal to pass.

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?

The schema provides only a bare string api_type with no description or enum, and schema coverage is 0%, so the description must compensate. It explains behavior for REST, realtime, order/exchange, and token, and even quotes api_type='token', but it never enumerates the exact accepted literal values or formats, leaving ambiguity about what string to pass for non-token modes.

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 precise verb-object statement: it creates Python code that calls the given api_type, then immediately distinguishes REST, realtime, and token modes. This clearly separates it from sibling tools like search_api and get_api_detail, which focus on API discovery rather than code generation.

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 gives clear context for how behavior changes by api_type (REST, realtime, order/exchange, token), which guides parameter choice. However, it never explicitly names sibling tools or states when to prefer this tool over list_categories, search_api, or get_api_detail, so alternative routing is left to inference.

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