How to Check Capital Gains Rates with Copilot

Check capital gains rates with Copilot and ToolRouter. Structured capital gains data for tax tools.

Tool
Tax Reference icon
Tax Reference

Copilot retrieves capital gains rate data in structured formats for use in investment planning tools, tax calculators, or financial dashboards. Get current rates and thresholds as typed data to build gain and loss calculators, after-tax return tools, or investment comparison features.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Tax Reference tool:

  1. In Copilot Chat: "Fetch current capital gains rates for all income tiers"
  2. Copilot returns structured rate data with thresholds and filing statuses
  3. Ask: "Generate a capital gains tax calculation function from these rates"

Example Prompt

Try this with Copilot using the Tax Reference tool
Fetch current long-term and short-term capital gains tax rates with income thresholds for all filing statuses. Return as structured JSON for use in my after-tax return calculator.

Tips

  • Include the NIIT threshold in your data pull to build accurate high-income rate calculations
  • Ask for both rate tables in one call — long-term and short-term — so comparison tools have both available
  • Generate a gain classification function that returns the applicable rate given income, filing status, and holding period