Skip to main content
Glama

calculate_dcf

Read-onlyIdempotent

Calculate enterprise value and intrinsic value per share using Discounted Cash Flow (DCF). Estimates fair value based on free cash flow, growth rates, and discount rate, with optional sensitivity analysis.

Instructions

DCF 估值計算器。依使用者輸入的 FCF、成長率、折現率、永續成長率計算企業合理價值與每股內在價值。若未提供參數,會從資料庫推估合理預設值(FCF 以年化 EPS×流通股數×0.8 作代理)。回傳企業價值、每股內在價值、對現價的安全邊際。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stockIdYes股票代號,例如 2330
marketNo市場 TW 或 US,預設 TW
fcfNo當前年度 Free Cash Flow(元);未提供則用 EPS×Shares×0.8 代理
growthRateNo短期年成長率 (小數,例如 0.08 表示 8%);未提供則用營收 YoY 平均
yearsNo預測年數,預設 5
terminalGrowthNo永續成長率 (小數),預設 0.025
discountRateNo折現率 WACC (小數),預設 0.09
sharesOutstandingNo流通在外股數;未提供則用 market_cap/price 推算
netCashNo淨現金(現金−負債,元),預設 0
includeSensitivityNo是否回傳 5×5 敏感度表(折現率×永續成長率),預設 false
Behavior4/5

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

Annotations indicate read-only, non-destructive, idempotent behavior. The description adds context by detailing the default estimation logic (e.g., FCF proxy as EPS×Shares×0.8), which goes beyond 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?

Three sentences efficiently convey purpose, inputs, defaults, and outputs. Front-loaded with the main purpose. No redundant information.

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?

Covers all essential aspects: what the tool does, what parameters are used, how defaults work, and what the output includes (enterprise value, intrinsic value, margin of safety). No output schema, but description adequately describes outputs.

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?

Input schema has 100% description coverage for all 10 parameters. The description adds value by explaining how defaults are derived when not provided, but the schema already handles individual parameter meaning well.

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?

Description clearly states it is a DCF valuation calculator that computes enterprise value and intrinsic value per share using FCF, growth rate, discount rate, and terminal growth. It distinguishes itself from siblings by being the only dedicated DCF tool.

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?

It explains that calculations are based on user inputs and that default values are estimated from the database if not provided. While it doesn't explicitly say when not to use or compare to alternatives, the context makes its purpose clear.

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