Skip to main content
Glama

analyze_sentiment

Read-onlyIdempotent

Analyze news sentiment for a stock to determine bullish, bearish, or neutral outlook, returning a sentiment score and summary.

Instructions

分析指定股票的新聞情緒(看漲/看跌/中性),回傳情緒分數與摘要

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stockNameYes股票名稱,例如「台積電」
stockCodeYes股票代號,例如 2330
Behavior4/5

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

Annotations already indicate the tool is read-only, non-destructive, and idempotent. The description adds value by specifying the output format (sentiment score and summary), which is not covered by annotations.

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?

The description is a single, concise sentence that front-loads the tool's action and result. Every word is necessary.

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?

Given no output schema, the description explains the return type (sentiment score and summary), which is adequate for a simple analysis. Could be improved by specifying score range.

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 input schema already provides descriptions for both parameters with examples. The tool description adds no additional meaning; it relies on the schema's coverage (100%).

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 the tool analyzes sentiment for a specified stock and returns a sentiment score and summary. It is specific about the resource (stock) and action (sentiment analysis). However, it does not explicitly distinguish it from sibling tools like 'get_stock_sentiment_v2'.

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 the tool should be used when sentiment analysis for a specific stock is needed. No explicit guidance on when not to use it or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kevinlin49361128-stack/stock-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server