Skip to main content
Glama

Valuein — SEC EDGAR Fundamentals & Smart-Money Data

Generate DCF Workbook (xlsx)

generate_dcf_xlsx

Render a forward DCF result into a professional Excel workbook (Summary + 5×5 Sensitivity heatmap + Inputs sheet). Native conditional formatting — no chart images needed. Returns a 15-minute presigned R2 download URL.

SERVER-TRUST: the DCF is re-derived in-Worker from the supplied inputs_echo (the math is pure + deterministic) and the workbook renders Valuein's recomputed figures — never the caller's claimed values. If the claimed figures disagree, the workbook is still produced but stamped with a visible correction banner and the response verification.status is 'corrected'. A fabricated per-share value can never appear as Valuein-authoritative.

Pair with compute_dcf for a typical analyst flow: agent calls compute_dcf({ticker, ...}), then passes the structured result straight to generate_dcf_xlsx({ticker, dcf_result, ...}) to materialise a shareable file.

Tier: pro+.

Input Schema

NameRequiredDescriptionDefault
tickerYesStock ticker symbol of the company the DCF workbook is built for, e.g. AAPL.
dcf_resultYesStructured DCF result — typically the `result` field returned by `compute_dcf`.
company_nameNoOptional — surfaces on the cover row. Falls back to ticker only.

Output Schema

NameRequiredDescriptionDefault
urlYes
_metaYesProvenance envelope — data lineage for every MCP response
r2_keyYes
filenameYes
expires_atYes
size_bytesYes
content_typeYes
verificationYesServer-trust record. status='verified' when the caller's figures matched the server re-derivation; 'corrected' when they did not (the workbook shows the SERVER figures + a banner). `mismatches` lists every field that disagreed.
expires_in_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / basis / description
      Previous value: -"payg_charge = real charge (agent-pay or your balance). payg_rate_card = indicative price, not billed."New value: +"payg_charge = real pay-per-call charge (a card or MPP payment through agent-pay). payg_rate_card = indicative price, not billed."
  2. Changed2 schema fields changed
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / basis / description
      Previous value: -"payg_charge = real agent-pay charge. payg_rate_card = indicative price, not billed."New value: +"payg_charge = real charge (agent-pay or your balance). payg_rate_card = indicative price, not billed."
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / billed / description
      Previous value: -"true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value; your plan already covers this call for free."New value: +"true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value only: no charge was made for this call (it was within your plan)."
  3. Added
  4. Removed
  5. Changed1 schema field changed
    • changedOutput schema / properties / _meta / properties / fundamentals_as_of / description
      Previous value: -"ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt. Use THIS — not `last_updated` — when telling a user how current the fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to."New value: +"ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt in bulk. Use THIS — not `last_updated` — when telling a user how current the cross-sectional fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to. It is a floor for a single filer, not a ceiling: a filer with a live partition receives its filing, facts and ratios intraday (minutes after EDGAR dissemination), so an entity-scoped read may carry a filing newer than this; cross-sectional ranks (factor scores, earnings signals) refresh with the weekly bulk export."
  6. Changed2 schema fields changed
    • addedOutput schema / properties / _meta / properties / fundamentals_as_of
      Added value: +{
      +  "description": "ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt. Use THIS — not `last_updated` — when telling a user how current the fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / price_as_of
      Added value: +{
      +  "description": "ISO timestamp when the price surfaces were last refreshed.",
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • addedOutput schema / properties / _meta / properties / cost_usd
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Per-call cost transparency. Omitted for subscription-only tools that have no PAYG-equivalent price.",
      +  "properties": {
      +    "amount_usd": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "basis": {
      +      "description": "payg_charge = real agent-pay charge. payg_rate_card = indicative price, not billed.",
      +      "enum": [
      +        "payg_charge",
      +        "payg_rate_card"
      +      ],
      +      "type": "string"
      +    },
      +    "billed": {
      +      "description": "true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value; your plan already covers this call for free.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "amount_usd",
      +    "billed",
      +    "basis"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / latency_ms
      Added value: +{
      +  "description": "Wall-clock milliseconds this tool call took, measured server-side around the handler.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  8. Changed2 schema fields changed
    • addedOutput schema / properties / verification
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Server-trust record. status='verified' when the caller's figures matched the server re-derivation; 'corrected' when they did not (the workbook shows the SERVER figures + a banner). `mismatches` lists every field that disagreed.",
      +  "properties": {
      +    "mismatches": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "claimed": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "derived": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "field": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "field",
      +          "claimed",
      +          "derived"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "verified",
      +        "corrected"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "note",
      +    "mismatches"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "_meta",
      -  "url",
      -  "r2_key",
      -  "filename",
      -  "content_type",
      -  "size_bytes",
      -  "expires_in_seconds",
      -  "expires_at"
      -]New value: +[
      +  "_meta",
      +  "url",
      +  "r2_key",
      +  "filename",
      +  "content_type",
      +  "size_bytes",
      +  "expires_in_seconds",
      +  "expires_at",
      +  "verification"
      +]
  9. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / pit_safe / description
      Added value: +"true iff a zero-look-ahead point-in-time cut was applied to every returned figure"
  10. Changed3 schema fields changed
    • removedInput schema / properties / dcf_result / properties / inputs_echo / properties / fcf_base
      Removed value: -{
      -  "type": "number"
      -}
    • addedInput schema / properties / dcf_result / properties / inputs_echo / properties / fcf_base_total_usd
      Added value: +{
      +  "type": "number"
      +}
    • changedInput schema / properties / dcf_result / properties / inputs_echo / required
      Previous value: -[
      -  "fcf_base",
      -  "shares_outstanding",
      -  "net_debt",
      -  "stage1_growth_rate",
      -  "wacc",
      -  "terminal_growth_rate",
      -  "stage1_years"
      -]New value: +[
      +  "fcf_base_total_usd",
      +  "shares_outstanding",
      +  "net_debt",
      +  "stage1_growth_rate",
      +  "wacc",
      +  "terminal_growth_rate",
      +  "stage1_years"
      +]
  11. Changed1 schema field changed
    • addedInput schema / properties / ticker / description
      Added value: +"Stock ticker symbol of the company the DCF workbook is built for, e.g. AAPL."
  12. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already disclose that this is a non-read-only, non-destructive, non-idempotent operation, but the description adds substantial behavioral context: the DCF is re-derived in-Worker from inputs_echo, caller-supplied figures are never treated as authoritative, mismatches produce a visible correction banner and verification.status='corrected', and the response contains a 15-minute presigned R2 URL.

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 primary action and return artifact, then adds necessary trust-model details. The server-trust paragraph is dense but earns its place because it explains correction behavior and verification semantics. Overall it is appropriately sized for a complex file-generation tool.

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?

An output schema exists, so the description need not enumerate return fields. It nonetheless covers the key output artifact (presigned URL with expiry), the verification status behavior, the correction banner, and the server-trust model. Combined with the schema and annotations, an agent has enough information to invoke the tool correctly.

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?

Schema description coverage is 100%, so the schema already documents all parameters, giving a baseline of 3. The description adds meaningful semantics by explaining that dcf_result is typically the result from compute_dcf and that inputs_echo is used for server-side re-derivation. It does not specifically explain company_name, but the schema covers that.

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 uses a specific verb and resource: render a forward DCF result into an Excel workbook, and it names the workbook contents (Summary, 5x5 sensitivity heatmap, Inputs sheet). It clearly distinguishes materializing a file from computing the DCF via compute_dcf, and from sibling generators like generate_comps_xlsx and generate_lbo_xlsx.

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 explicitly describes the typical analyst flow: call compute_dcf, then pass the structured result to generate_dcf_xlsx. The pro+ tier is stated as a prerequisite. It does not explicitly state when not to use it, but the intended context and alternative are clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.