Skip to main content
Glama
Johnhyeon

StockLens

by Johnhyeon

get_us_price

Read-onlyIdempotent

Retrieve a US stock price snapshot for any ticker, including change, volume, 52-week range, market cap, and trading session status.

Instructions

US stock price — NYSE/NASDAQ 미국 주식 현재가 스냅샷 (US market via yfinance). "AAPL price", "Tesla 현재가", "MSFT quote", "Nvidia 얼마" 같은 질문에 사용합니다.

현재가 + 전일대비 + 시/고/저 + 거래량 + 52주 고저 + 베타 + 시가총액 + 마켓 상태 (정규장/프리/포스트) 반환. Yahoo Finance 데이터는 최대 15분 지연 가능.

Args: ticker: US 티커 (예: "AAPL", "TSLA", "BRK.B", "SPY")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds valuable context beyond this: data source (yfinance), up to 15-minute delay, and market status (regular/pre/post). This helps the agent set expectations on freshness and scope without contradicting 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 front-loaded with the purpose, then provides examples, return fields, and the parameter explanation in a logical order. It is not overly verbose for the information conveyed, though the bilingual repetition slightly reduces elegance.

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?

With an output schema present, the description still enumerates the return fields and notes the data delay, covering everything an agent needs to decide and call. It is complete for a single-parameter, read-only tool; the only minor omission is handling of invalid tickers, which is not critical.

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 only parameter, ticker, is explained with concrete examples including a dotted symbol (BRK.B), which the schema alone (just type: string) does not convey. This adds meaning about format and acceptable values. Since there is only one param and no schema description, the description fully compensates.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it provides a US stock price snapshot via yfinance, listing the exact fields returned (current price, change, OHLC, volume, 52-week range, beta, market cap, market status) and giving example queries. It does not explicitly contrast with sibling price tools like get_us_multi_price or get_us_chart, so it falls short of a perfect 5.

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?

It gives example queries ('AAPL price', 'Tesla 현재가') and says these are the use cases, implying when to invoke the tool. However, it never mentions alternatives or when not to use it, such as for multi-stock comparisons or historical charts, leaving the agent to infer boundaries from sibling names.

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