@tpmjs/official-ratio-analysis
Calculates key financial ratios from balance sheet and income statement data
Test @tpmjs/official-ratio-analysis (ratioAnalysisTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/official-ratio-analysispnpm add @tpmjs/official-ratio-analysisyarn add @tpmjs/official-ratio-analysisbun add @tpmjs/official-ratio-analysisdeno add npm:@tpmjs/official-ratio-analysisimport { ratioAnalysisTool } from '@tpmjs/official-ratio-analysis';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { ratioAnalysisTool } from '@tpmjs/official-ratio-analysis';
const result = await generateText({
model: openai('gpt-4o'),
tools: { ratioAnalysisTool },
prompt: 'Your prompt here...',
});
console.log(result.text);(financials: { cash: number; revenue: number; inventory: number; netIncome: number; grossProfit: number }) => Promise<unknown>Available configuration options
financialsobjectFinancial statement data including balance sheet and income statement
Schema extracted: 2/27/2026, 4:20:46 AM
ERROR: No README data found!
Downloads/month
32
GitHub Stars
0
Quality Score