How to Use Fiscal.ai template metric definitions in opencode
Returns metric definitions and component breakdowns within a reporting template and statement. Use it to check what an accounting line includes before building a comparison or model.
Prompts to try with Fiscal.ai template metric definitions in opencode
Copy an example into opencode, or ask in your own words.
Use Fiscal.ai template metric definitions to inspect total revenue in the standard income statement template. Compare its definition and returned components with our worksheet documentation.
Use Fiscal.ai template metric definitions to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Fiscal.ai template metric definitions and tell me what changed since last week.
Check Fiscal.ai template metric definitions and summarize what you find in three bullet points.
Pull the newest data from Fiscal.ai template metric definitions and give me the result as a table.
How to set up Fiscal.ai template metric definitions in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Fiscal.ai template metric definitions
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "fiscal-ai/metrics/standardized-by-template", "input": { "templateType": "<templateType>", "statementType": "income-statement" } }'
Then paste one of the prompts above: opencode finds Fiscal.ai template metric definitions on Spiral, shows the price and runs it.
Fiscal.ai template metric definitions providers and prices
Spiral runs Fiscal.ai template metric definitions through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Statement type | income-statement, balance-sheet, or cash-flow-statement | Which statement to list metrics for. |
Every API field of Fiscal.ai · Standardized metrics by template is on its tool page: open its card above.
What can you do with Fiscal.ai template metric definitions in opencode?
Check a financial application's metric mappings against Fiscal.ai's accounting definitions. A coding agent can inspect project labels and calculations, then propose corrections using returned identifiers, formulas, and template details.
Prepare a peer comparison
Choose accounting lines and ratio definitions for an internal Microsoft and Alphabet comparison before collecting company figures.
Review a financial model's assumptions
Check whether a model's labels and calculations agree with Fiscal.ai's metric definitions. Flag differences for the analyst to resolve.
Explain dashboard measures
Draft internal help text that explains the accounting lines and ratios behind a research dashboard.
Review metric changes
Compare the definitions needed by an active research application and flag changed identifiers, names, or calculation details for review.
Design a sector-specific worksheet
Inspect accounting concepts and template definitions before laying out an internal bank, insurer, REIT, or utility worksheet.
More on Fiscal.ai template metric definitions and opencode
Overview
Fiscal.ai template metric definitions in other agents
Questions about Fiscal.ai template metric definitions in opencode
Can opencode use Fiscal.ai template metric definitions?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Fiscal.ai template metric definitions like any built-in tool.
How much does Fiscal.ai template metric definitions cost in opencode?
$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Fiscal.ai template metric definitions in opencode?
No. Spiral runs Fiscal.ai template metric definitions on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Fiscal.ai template metric definitions in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Fiscal.ai template metric definitions runs?
Fiscal.ai template metric definitions runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Do these lookups return company financial results?
They return accounting metadata: metric identifiers, definitions, formulas, and template information. Company-period financial values require separate financial statement or ratio data.
Does Fiscal.ai use the same accounting structure for every business?
Fiscal.ai gives banks, insurers, REITs, and utilities their own statement structures. Check the reporting template before choosing measures for a comparison.
Can standardized metric definitions change?
Yes. Fiscal.ai explicitly recognizes additions, removals, and renamings of standardized metrics in its template metric mapping updates.
How do Fiscal.ai's financial ratios relate to statement metrics?
Fiscal.ai states its ratio formulas in terms of standardized metrics. Historical daily values are available only for ratios marked as supporting daily data.
Can Fiscal.ai data be used to train an AI model?
Fiscal.ai requires express written authorization to use its data for model training, fine-tuning, or improvement. Its data license also remains limited to the permitted use case.
Start using Fiscal.ai template metric definitions in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


