Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_event_reaction

Read-onlyIdempotent

Align price, volume, and supply/demand reactions before and after an event date to compare market behavior around disclosures. Returns validation status when analysis is impossible.

Instructions

이벤트반응 — 특정 날짜(event_date) 기준 전후 주가·거래량·수급 반응을 정렬합니다.

DartLens의 scan_earnings_season·list_disclosures에 나온 공시 접수일을 event_date로 넘김 (휴장일이면 다음 거래일 기준). "공시→주가/수급" 또는 "주가/수급 이상→해당 기간 공시 확인" 시간축 정렬용 — 원인 단정·매수/매도 판단 아님.

분석 불가한 사건창(보유 데이터 구간 밖·전 구간 거래정지·수급 결측)은 숫자를 만들지 않고 validation 상태와 코드로 되돌린다. 데이터 없음은 0%·순매매 0으로 표기되지 않는다.

Args: code: 종목코드 6자리 (예: "005930") event_date: 기준 날짜 YYYY-MM-DD 또는 YYYYMMDD. DartLens 공시 접수일 권장 before: event_date 전 비교 거래일 수 (기본 5, 최대 60) after: event_date 후 비교 거래일 수 (기본 20, 최대 60)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
afterNo
beforeNo
event_dateYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.3
    • removedInput schema / properties / after / default
      Removed value: -20
    • removedInput schema / properties / before / default
      Removed value: -5
  2. Addedv0.5.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld), the description discloses that when analysis is impossible (outside data range, trading halt, missing supply/demand), it returns a validation status and code rather than fabricating numbers. It also explicitly states it does not assert causation or make trading recommendations. This is significant behavioral context that adds value beyond the annotations.

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?

The description is well-structured: a one-line summary, then usage context, then behavioral notes, then an Args list. It is somewhat long but every sentence adds value. The key purpose is front-loaded. Minor deduction for verbosity in the usage examples, but it remains efficient.

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 read-only tool with an output schema, the description is complete. It covers all parameters, explains edge-case behavior (validation status), and clarifies the tool's limitations. An agent can confidently call this tool correctly without additional information. The presence of an output schema means return values need not be described.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has zero description coverage (0%), but the description's Args section thoroughly explains each parameter: code as a 6-digit stock code, event_date with format options and a recommendation, before with default 5 and max 60, after with default 20 and max 60. This fully compensates for the schema gap and provides meaning beyond the bare schema definitions.

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 clearly states the tool's purpose: it sorts price, volume, and supply/demand reactions around a specific event date. It uses a specific verb (정렬합니다) and resource (주가·거래량·수급 반응), and differentiates from the US counterpart by its focus on Korean events. It also mentions related tools (scan_earnings_season, list_disclosures) that feed into it, giving strong context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit usage guidance: it tells the agent to pass the disclosure acceptance date from scan_earnings_season or list_disclosures, and explains it is for time-axis alignment, not for causal claims or buy/sell decisions. However, it does not explicitly contrast with the sibling get_event_reactions (plural), so it's not fully exhaustive but clear enough.

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