Trading Harness

Value a company from its SEC filings, and check your own trades, stops and rebalance math

使うべきか

品質と安全性

A
説明の品質
95%
スキーマの完全性
100%
命名の品質
80%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(3)

  • LOWTool 'which_stock_is_cheapest' description lacks action verbwhich_stock_is_cheapest 内
  • LOWTool 'dividends_and_buybacks' description lacks action verbdividends_and_buybacks 内
  • LOWTool 'short_vs_long_term_capital_gains' name length outside 3-30 rangeshort_vs_long_term_capital_gains 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~4,973トークン数(ツール定義)
~1.6 KB一般的なレスポンスサイズ
注意への影響は大きい(128k コンテキストの 3.89%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "trading-harness": {
      "url": "https://trading-harness-mcp.vercel.app/mcp"
    }
  }
}

リモートエンドポイント

https://trading-harness-mcp.vercel.app/mcpstreamable-http

できること

ツール一覧

ツール(16)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
🟢as_reported_financials(ticker, years, ttm)

A company's annual figures exactly as filed with the SEC (XBRL companyfacts, 10-K/20-F/40-F): revenue, gross profit, operating income, net income, cash from operations, capex, D&A, stock comp, dividends, buybacks, assets, liabilities, equity, cash, goodwill, intangibles, debt and diluted shares, by fiscal year, with the XBRL tag behind each line and the filing each year came from. Optionally a trailing-twelve-month column built from 10-Q year-to-date facts. Keyed on the period a fact covers, not the filing it appeared in. Examples: {"ticker": "KO"}; {"ticker": "CTVA", "years": 5, "ttm": true}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
    },
    "years": {
      "type": "integer",
      "minimum": 1,
      "maximum": 15,
      "description": "Fiscal years, most recent last (default 10)"
    },
    "ttm": {
      "type": "boolean",
      "description": "Add trailing twelve months (default false)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}
🟢owner_earnings_valuation(ticker, price, long_bond_pct, growth_pct, hurdle_pct, ...)

Owner earnings by year (net income + depreciation + amortisation - capex, Buffett 1986) beside free cash flow as a cross-check, return on equity and on tangible capital, and, given a share price, the owner-earnings yield against the long bond, three value anchors per share (bond-equivalent, two-stage DCF on normalised and on latest owner earnings), a margin-of-safety ladder, a reverse DCF (the owner-earnings growth the price requires at 8, 9, 10 and 12% required returns) and a growth x required-return sensitivity grid. Returns refused with a reason, and no value, when fewer than three of the last five years had positive owner earnings, the latest year was a loss, or owner earnings exceed 1.6x actual free cash flow. Inputs from SEC filings; price supplied by the caller. Examples: {"ticker": "KO", "price": 70.1}; {"ticker": "CTVA", "price": 62.5, "long_bond_pct": 5.2, "hurdle_pct": 9}; {"ticker": "DE"} (history only).

入力スキーマ

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
    },
    "price": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Share price in dollars"
    },
    "long_bond_pct": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 20,
      "description": "Long-bond yield in percent (5.4 = 5.4%). Default: the latest 30-year Treasury par yield, fetched from treasury.gov"
    },
    "growth_pct": {
      "type": "number",
      "minimum": -10,
      "maximum": 30,
      "description": "Stage-1 owner-earnings growth for 10 years, % (default 4)"
    },
    "hurdle_pct": {
      "type": "number",
      "minimum": 3,
      "maximum": 30,
      "description": "Required return, % (default 10)"
    },
    "terminal_pct": {
      "type": "number",
      "minimum": 0,
      "maximum": 5,
      "description": "Terminal growth, % (default 2.5)"
    },
    "shares_millions": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Shares outstanding in millions (default: the latest count on the company's filings)"
    },
    "years": {
      "type": "integer",
      "minimum": 5,
      "maximum": 12,
      "description": "Fiscal years of history (default 7)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}
🟢compare_valuations(companies, long_bond_pct, hurdle_pct)

Ranks 2 to 8 companies on the expectations gap: the owner-earnings growth each price requires (reverse DCF) minus the growth the business actually delivered over its last five fiscal years. Negative means the price asks for less than the company has already done. Per company: owner-earnings yield, return on tangible capital, ROE, gross margin first and last year, revenue and owner-earnings CAGR, the base used (latest year for a steady riser, an average for a cyclical) and a reading; refusals and do-not-extrapolate cases are labelled instead of ranked. The gap does not move with the hurdle the way absolute values do. Example: {"companies": [{"ticker": "KO", "price": 70.1}, {"ticker": "PEP", "price": 150.2}, {"ticker": "KDP", "price": 33.4}]}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "companies": {
      "type": "array",
      "minItems": 2,
      "maxItems": 8,
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
          },
          "price": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Share price in dollars"
          }
        },
        "required": [
          "ticker",
          "price"
        ],
        "additionalProperties": false
      },
      "description": "Ticker and current share price for each company"
    },
    "long_bond_pct": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 20,
      "description": "Long-bond yield in percent (5.4 = 5.4%). Default: the latest 30-year Treasury par yield, fetched from treasury.gov"
    },
    "hurdle_pct": {
      "type": "number",
      "minimum": 3,
      "maximum": 30,
      "description": "Required return for the reverse DCF, % (default 8)"
    }
  },
  "required": [
    "companies"
  ],
  "additionalProperties": false
}
🟢realized_pnl(transactions_csv, symbol)

Realized profit and loss from a pasted transactions export: sells matched first-in-first-out against earlier buys per symbol, fees on both sides taken out of the gain. Returns win rate, net, average win and loss, payoff ratio, average holding period in calendar days, totals by symbol, the worst and best closed lots, and sells with no buy in the data (reported apart, not counted as zero-cost wins). Reads E*TRADE's transaction download, the CSV this repo's fetcher writes, or any CSV with columns date, action (buy/sell), symbol, quantity, price and optionally fee. Options rows are set aside and counted. Nothing pasted is stored. Example: {"transactions_csv": "date,action,symbol,quantity,price,fee\n2025-01-06,buy,KO,100,61.20,0\n2025-09-02,sell,KO,100,69.85,0"}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "transactions_csv": {
      "type": "string",
      "minLength": 10,
      "description": "The transactions export as CSV text, header row included"
    },
    "symbol": {
      "type": "string",
      "description": "Limit the result to one symbol"
    }
  },
  "required": [
    "transactions_csv"
  ],
  "additionalProperties": false
}
🟢stop_coverage_check(positions_csv, orders_csv, journal_text, cap_pct, cash)

Compares positions with the orders actually resting at the broker. Flags: a position over the size cap with no resting stop, or a stop covering only part of it; any good-for-day order (gone at the close); resting sells exceeding shares held with no link between the legs; resting orders in names not held. With journal text in this repo's JOURNAL.template.md format, it also checks each written price gate (stops, sell limits, dated exits) against the resting orders and lists any gate it could not read as UNCHECKED rather than passing. Positions: symbol, quantity, and market value or last price. Orders: symbol, side, quantity, order type, limit price, stop price, term (GTC/day), status; the text "none" means no open orders. Nothing pasted is stored. Example: {"positions_csv": "symbol,quantity,last_price\nKO,200,70.10\nAAPL,120,229.80", "orders_csv": "symbol,side,quantity,order_type,stop_price,term\nKO,sell,200,stop,62,GTC", "cap_pct": 25}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "positions_csv": {
      "type": "string",
      "minLength": 5,
      "description": "Positions export as CSV text, header row included"
    },
    "orders_csv": {
      "type": "string",
      "minLength": 1,
      "description": "Open orders as CSV text, or \"none\""
    },
    "journal_text": {
      "type": "string",
      "description": "Optional trading journal in this repo's template format"
    },
    "cap_pct": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "description": "Position size, % of the account, above which a stop is expected (default 28)"
    },
    "cash": {
      "type": "number",
      "minimum": 0,
      "description": "Cash in the account, for position weights (default: a cash row in the export, else 0)"
    }
  },
  "required": [
    "positions_csv",
    "orders_csv"
  ],
  "additionalProperties": false
}
🟢rebalance_order_list(positions_csv, target_weights_pct, cash_on_hand, cash_reserve, prices, ...)

The dollar and share change per name to move a pasted positions export to target weights, as a list. Weights are a share of investable capital (positions + cash on hand - cash reserve). Each row: current $ and %, target %, dollar change, shares at the last price, direction, and whether exiting it would realize a gain or harvest a loss (from unrealized P&L; holding periods are not in a positions export, so short- vs long-term is not known). A target with no holding and no price is sized in dollars only. Arithmetic only: no order is placed or previewed. Nothing pasted is stored. Example: {"positions_csv": "symbol,quantity,last_price,total_gain\nAAPL,120,229.80,5940\nKO,200,70.10,-210", "target_weights_pct": {"AAPL": 30, "KO": 30, "VTI": 40}, "cash_on_hand": 10000, "prices": {"VTI": 301.55}}.

入力スキーマ

{
  "type": "object",
  "properties": {
    "positions_csv": {
      "type": "string",
      "minLength": 5,
      "description": "Positions export as CSV text, header row included"
    },
    "target_weights_pct": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "minimum": 0,
        "maximum": 100
      },
      "description": "Symbol -> target weight in percent (30 = 30%); 0 is a full exit"
    },
    "cash_on_hand": {
      "type": "number",
      "minimum": 0,
      "description": "Uninvested cash (default: a cash row in the export, else 0)"
    },
    "cash_reserve": {
      "type": "number",
      "minimum": 0,
      "description": "Cash to keep out of the allocation (default 0)"
    },
    "prices": {
      "type": "object",
      "additionalProperties": {
        "type": "number",
        "exclusiveMinimum": 0
      },
      "description": "Symbol -> price, for targets not currently held"
    },
    "sell_unlisted": {
      "type": "boolean",
      "description": "Also exit held names absent from the targets (default false)"
    }
  },
  "required": [
    "positions_csv",
    "target_weights_pct"
  ],
  "additionalProperties": false
}
🟢is_this_stock_undervalued(ticker, price, long_bond_pct, hurdle_pct)

Whether a company's share price sits above or below what its owner earnings support, from its SEC filings: value per share on three anchors, the price's gap to each, a margin-of-safety ladder, and the growth the price requires. Same engine as owner_earnings_valuation. Returns refused, with the reason, when the business has no durable owner earnings to value. Example questions: "Is Coca-Cola undervalued at $70?"; "What's Deere's intrinsic value?"; "Is MSFT overvalued right now?"

入力スキーマ

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
    },
    "price": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Share price in dollars"
    },
    "long_bond_pct": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 20,
      "description": "Long-bond yield in percent (5.4 = 5.4%). Default: the latest 30-year Treasury par yield, fetched from treasury.gov"
    },
    "hurdle_pct": {
      "type": "number",
      "minimum": 3,
      "maximum": 30,
      "description": "Required return, % (default 10)"
    }
  },
  "required": [
    "ticker",
    "price"
  ],
  "additionalProperties": false
}
🟢growth_priced_into_stock(ticker, price, long_bond_pct)

The owner-earnings growth a share price requires over 10 years (a reverse DCF) at 8, 9, 10 and 12% required returns, from the company's SEC filings, followed by the full owner-earnings valuation. The reading that does not depend on a chosen hurdle rate. Example questions: "What growth is priced into Nvidia?"; "What does the market expect from Costco at $900?"; "Reverse DCF on KO"

入力スキーマ

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
    },
    "price": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Share price in dollars"
    },
    "long_bond_pct": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 20,
      "description": "Long-bond yield in percent (5.4 = 5.4%). Default: the latest 30-year Treasury par yield, fetched from treasury.gov"
    }
  },
  "required": [
    "ticker",
    "price"
  ],
  "additionalProperties": false
}
🟢which_stock_is_cheapest(companies)

Ranks two or more companies by the gap between price and owner-earnings value, from their SEC filings, with the loss-makers and the unvaluable named rather than dropped. Same engine as compare_valuations. Example questions: "Which is cheaper, Coke or Pepsi?"; "Rank AAPL, MSFT and GOOGL on value"; "Which of my stocks is most overvalued?"

入力スキーマ

{
  "type": "object",
  "properties": {
    "companies": {
      "type": "array",
      "minItems": 2,
      "maxItems": 8,
      "items": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
          },
          "price": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Share price in dollars"
          }
        },
        "required": [
          "ticker",
          "price"
        ],
        "additionalProperties": false
      },
      "description": "Ticker and current share price for each company"
    }
  },
  "required": [
    "companies"
  ],
  "additionalProperties": false
}
🟢free_cash_flow_history(ticker, years)

A company's free cash flow by fiscal year (operating cash flow minus capital expenditure) with both inputs, as reported on its annual SEC filings, plus the filing links. Example questions: "What's Apple's free cash flow?"; "Has Ford's free cash flow grown?"; "10 years of FCF for COST"

入力スキーマ

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
    },
    "years": {
      "type": "integer",
      "minimum": 3,
      "maximum": 15,
      "description": "Fiscal years of history (default 10)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}
🟢dividends_and_buybacks(ticker, years)

Cash a company returned to shareholders by fiscal year, dividends paid and shares repurchased, beside its free cash flow, as reported on its annual SEC filings. Example questions: "How much does Apple spend on buybacks?"; "Can Verizon cover its dividend?"; "Dividend history for KO"

入力スキーマ

{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12,
      "description": "US-listed ticker that files with the SEC, e.g. KO or BRK.B"
    },
    "years": {
      "type": "integer",
      "minimum": 3,
      "maximum": 15,
      "description": "Fiscal years of history (default 10)"
    }
  },
  "required": [
    "ticker"
  ],
  "additionalProperties": false
}
🟢short_vs_long_term_capital_gains(transactions_csv, tax_year)

Realized gains and losses from a pasted broker transactions export, split into short-term (held a year or less) and long-term by tax year, lots matched first-in, first-out, with sells that have no buy in the export set aside. Example questions: "How much short-term gain did I have this year?"; "Split my 2025 trades into short and long term"; "What are my capital gains?"

入力スキーマ

{
  "type": "object",
  "properties": {
    "transactions_csv": {
      "type": "string",
      "description": "The transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee)"
    },
    "tax_year": {
      "type": "integer",
      "minimum": 1990,
      "maximum": 2100,
      "description": "One tax year (default: every year in the export)"
    }
  },
  "required": [
    "transactions_csv"
  ],
  "additionalProperties": false
}
🟢wash_sale_check(transactions_csv)

Screens a pasted broker transactions export for losing sales with the same ticker bought within 30 days before or after, listing each sale, its loss and the repurchases. Example questions: "Did I trigger any wash sales?"; "Is my TSLA loss a wash sale?"; "Check my trades for the 30-day rule"

入力スキーマ

{
  "type": "object",
  "properties": {
    "transactions_csv": {
      "type": "string",
      "description": "The transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee)"
    }
  },
  "required": [
    "transactions_csv"
  ],
  "additionalProperties": false
}
🟢tax_loss_harvest_candidates(positions_csv, transactions_csv)

Positions sitting at an unrealized loss in a pasted positions export, largest loss first, with the total; given a transactions export too, flags any bought in the last 30 days (wash-sale risk on a sale). Example questions: "What can I tax-loss harvest?"; "Which of my positions are losers?"; "Any losses to offset my gains this year?"

入力スキーマ

{
  "type": "object",
  "properties": {
    "positions_csv": {
      "type": "string",
      "description": "The positions/portfolio CSV from the broker, pasted as text (symbol, quantity, market value or last price; a gain or cost-basis column for gains and losses)"
    },
    "transactions_csv": {
      "type": "string",
      "description": "The transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee). Optional: flags recent buys for the 30-day rule"
    }
  },
  "required": [
    "positions_csv"
  ],
  "additionalProperties": false
}
🟢trading_win_rate(transactions_csv, symbol)

Win rate, average win, average loss, payoff ratio and average hold from a pasted broker transactions export, with the best and worst trades and the totals by symbol. Same engine as realized_pnl. Example questions: "What's my win rate?"; "Am I a good trader?"; "What were my worst trades this year?"

入力スキーマ

{
  "type": "object",
  "properties": {
    "transactions_csv": {
      "type": "string",
      "description": "The transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee)"
    },
    "symbol": {
      "type": "string",
      "description": "One symbol only (optional)"
    }
  },
  "required": [
    "transactions_csv"
  ],
  "additionalProperties": false
}
🟢positions_without_stop_loss(positions_csv, orders_csv)

Which held positions have no working stop order covering them, from pasted positions and open-orders exports: each row critical, warning, ok or unchecked, with the reason. Same engine as stop_coverage_check. Example questions: "Do all my positions have stop losses?"; "Which stocks am I holding with no stop?"; "Did my stop orders expire?"

入力スキーマ

{
  "type": "object",
  "properties": {
    "positions_csv": {
      "type": "string",
      "description": "The positions/portfolio CSV from the broker, pasted as text (symbol, quantity, market value or last price; a gain or cost-basis column for gains and losses)"
    },
    "orders_csv": {
      "type": "string",
      "minLength": 1,
      "description": "Open orders as CSV text, or \"none\""
    }
  },
  "required": [
    "positions_csv",
    "orders_csv"
  ],
  "additionalProperties": false
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 16 件