Skip to main content
Glama

Put a SmartFin calculator on a website

smartfin_get_embed_code
Read-onlyIdempotent

The HTML to put one of SmartFin's free calculators on a website the user runs: a blog post, a class or library page, a client resources page. One iframe line, free, no sign-up, no cookies or tracking; the widget fills the width it's given and follows the reader's light or dark mode. Calculators: compare_two_stocks (Compare Two Stocks), stock_analysis (Stock Analysis), crash_recovery (Crash & Recovery), simulator (Stock Returns Over Time), investment (Investment growth calculator), compound_interest (Compound interest calculator), mortgage (Mortgage calculator), car_loan (Car loan calculator), student_loan (Student loan calculator), refinance (Refinance calculator), mortgage_payoff (Mortgage payoff calculator), down_payment (Down payment calculator), cagr (CAGR calculator), rule_of_72 (Rule of 72 calculator), inflation (Inflation calculator), fire (FIRE calculator), withdrawal (Withdrawal planner), savings_vs_investing (Savings vs investing calculator), rent_vs_buy (Rent vs buy calculator), simple_interest (Simple interest calculator), future_value (Future value calculator), present_value (Present value calculator), roi (ROI calculator), profit_margin (Profit margin calculator). Use when the user wants a calculator on their own site or asks how to add one. Do not use to calculate anything (use the other smartfin_ tools).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "calculator": "<calculator>"
    },
    "name": "smartfin_get_embed_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoShow this currency to every reader. Omit to let each reader choose
calculatorYesWhich calculator to embed

Output Schema

NameRequiredDescriptionDefault
citeYesHow to credit this result
dataYes
nextYesSuggested follow-up calls
linksYes
how_toYesSteps for the user to see or redo this on smartfin.fyi
sourceYes
summaryYesPlain-language result the assistant can quote

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / calculator / enum
      Previous value: -[
      -  "compare_two_stocks",
      -  "crash_recovery",
      -  "simulator",
      -  "investment",
      -  "compound_interest",
      -  "mortgage",
      -  "car_loan",
      -  "student_loan",
      -  "refinance",
      -  "mortgage_payoff",
      -  "down_payment",
      -  "cagr",
      -  "rule_of_72",
      -  "inflation",
      -  "fire",
      -  "withdrawal",
      -  "savings_vs_investing",
      -  "rent_vs_buy",
      -  "simple_interest",
      -  "future_value",
      -  "present_value",
      -  "roi",
      -  "profit_margin"
      -]New value: +[
      +  "compare_two_stocks",
      +  "stock_analysis",
      +  "crash_recovery",
      +  "simulator",
      +  "investment",
      +  "compound_interest",
      +  "mortgage",
      +  "car_loan",
      +  "student_loan",
      +  "refinance",
      +  "mortgage_payoff",
      +  "down_payment",
      +  "cagr",
      +  "rule_of_72",
      +  "inflation",
      +  "fire",
      +  "withdrawal",
      +  "savings_vs_investing",
      +  "rent_vs_buy",
      +  "simple_interest",
      +  "future_value",
      +  "present_value",
      +  "roi",
      +  "profit_margin"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / calculator / enum
      Previous value: -[
      -  "compare_two_stocks",
      -  "simulator",
      -  "investment",
      -  "compound_interest",
      -  "mortgage",
      -  "car_loan",
      -  "student_loan",
      -  "refinance",
      -  "mortgage_payoff",
      -  "down_payment",
      -  "cagr",
      -  "rule_of_72",
      -  "inflation",
      -  "fire",
      -  "withdrawal",
      -  "savings_vs_investing",
      -  "rent_vs_buy",
      -  "simple_interest",
      -  "future_value",
      -  "present_value",
      -  "roi",
      -  "profit_margin"
      -]New value: +[
      +  "compare_two_stocks",
      +  "crash_recovery",
      +  "simulator",
      +  "investment",
      +  "compound_interest",
      +  "mortgage",
      +  "car_loan",
      +  "student_loan",
      +  "refinance",
      +  "mortgage_payoff",
      +  "down_payment",
      +  "cagr",
      +  "rule_of_72",
      +  "inflation",
      +  "fire",
      +  "withdrawal",
      +  "savings_vs_investing",
      +  "rent_vs_buy",
      +  "simple_interest",
      +  "future_value",
      +  "present_value",
      +  "roi",
      +  "profit_margin"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / calculator / enum
      Previous value: -[
      -  "compare_two_stocks",
      -  "investment",
      -  "compound_interest",
      -  "mortgage",
      -  "car_loan",
      -  "student_loan",
      -  "refinance",
      -  "mortgage_payoff",
      -  "down_payment",
      -  "cagr",
      -  "rule_of_72",
      -  "inflation",
      -  "fire",
      -  "withdrawal",
      -  "savings_vs_investing",
      -  "rent_vs_buy",
      -  "simple_interest",
      -  "future_value",
      -  "present_value",
      -  "roi",
      -  "profit_margin"
      -]New value: +[
      +  "compare_two_stocks",
      +  "simulator",
      +  "investment",
      +  "compound_interest",
      +  "mortgage",
      +  "car_loan",
      +  "student_loan",
      +  "refinance",
      +  "mortgage_payoff",
      +  "down_payment",
      +  "cagr",
      +  "rule_of_72",
      +  "inflation",
      +  "fire",
      +  "withdrawal",
      +  "savings_vs_investing",
      +  "rent_vs_buy",
      +  "simple_interest",
      +  "future_value",
      +  "present_value",
      +  "roi",
      +  "profit_margin"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / calculator / enum
      Previous value: -[
      -  "investment",
      -  "compound_interest",
      -  "mortgage",
      -  "car_loan",
      -  "student_loan",
      -  "refinance",
      -  "cagr",
      -  "rule_of_72",
      -  "inflation",
      -  "fire",
      -  "withdrawal",
      -  "savings_vs_investing",
      -  "rent_vs_buy",
      -  "simple_interest",
      -  "future_value",
      -  "present_value",
      -  "roi",
      -  "profit_margin"
      -]New value: +[
      +  "compare_two_stocks",
      +  "investment",
      +  "compound_interest",
      +  "mortgage",
      +  "car_loan",
      +  "student_loan",
      +  "refinance",
      +  "mortgage_payoff",
      +  "down_payment",
      +  "cagr",
      +  "rule_of_72",
      +  "inflation",
      +  "fire",
      +  "withdrawal",
      +  "savings_vs_investing",
      +  "rent_vs_buy",
      +  "simple_interest",
      +  "future_value",
      +  "present_value",
      +  "roi",
      +  "profit_margin"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / calculator / enum
      Previous value: -[
      -  "investment",
      -  "compound_interest",
      -  "mortgage",
      -  "car_loan",
      -  "student_loan",
      -  "refinance",
      -  "cagr",
      -  "rule_of_72",
      -  "inflation",
      -  "fire",
      -  "withdrawal"
      -]New value: +[
      +  "investment",
      +  "compound_interest",
      +  "mortgage",
      +  "car_loan",
      +  "student_loan",
      +  "refinance",
      +  "cagr",
      +  "rule_of_72",
      +  "inflation",
      +  "fire",
      +  "withdrawal",
      +  "savings_vs_investing",
      +  "rent_vs_buy",
      +  "simple_interest",
      +  "future_value",
      +  "present_value",
      +  "roi",
      +  "profit_margin"
      +]
  6. Changed1 schema field changed
    • addedOutput schema / properties / links / properties / page
      Added value: +{
      +  "description": "SmartFin's page for this stock, when it has one",
      +  "type": "string"
      +}
  7. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description layers on real behavior: free, no sign-up, no cookies or tracking, a single iframe line, width-responsive, and light/dark mode following the reader. It does not say anything about the returned snippet's stability or any embedding restrictions beyond that, so it is rich but not exhaustive.

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?

Purpose and behavioral traits are front-loaded in the first two sentences, and the closing line carries the routing rule. The 24-item calculator list is bulky and largely restates the schema enum, though the added display labels justify most of it.

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, full annotation coverage, and a two-parameter schema, the description covers what an agent needs to select and call the tool. The only gap is that it never mentions the currency option or when to pin a currency versus letting readers choose.

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 coverage is already 100%, so the baseline is 3; the description earns extra by mapping every enum slug to a human-readable label (e.g. compare_two_stocks = Compare Two Stocks, rule_of_72 = Rule of 72 calculator), which the raw enum values do not convey. It says nothing about the currency parameter, leaving that entirely to the schema.

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?

States a concrete deliverable (HTML/iframe embed code) for a concrete resource (a SmartFin calculator on the user's site), and explicitly distinguishes itself from the sibling calculate tools. The container examples ('a blog post, a class or library page, a client resources page') make the scope unambiguous.

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

Usage Guidelines5/5

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

Explicit both ways: 'Use when the user wants a calculator on their own site or asks how to add one' and 'Do not use to calculate anything (use the other smartfin_ tools).' That negative routing is exactly what prevents an agent from confusing this with the smartfin_calculate_* family.

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.

Resources