Home/Tools/@tpmjs/official-revenue-breakdown

revenueBreakdownTool

@tpmjs/official-revenue-breakdown

Breaks down revenue by segment, product, or period with growth rates

Official
finance
v0.1.1
MIT

Interactive Playground

Test @tpmjs/official-revenue-breakdown (revenueBreakdownTool) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/official-revenue-breakdown
pnpm add @tpmjs/official-revenue-breakdown
yarn add @tpmjs/official-revenue-breakdown
bun add @tpmjs/official-revenue-breakdown
deno add npm:@tpmjs/official-revenue-breakdown

2. Import the tool

import { revenueBreakdownTool } from '@tpmjs/official-revenue-breakdown';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { revenueBreakdownTool } from '@tpmjs/official-revenue-breakdown';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { revenueBreakdownTool },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Signature

(revenue: { amount: number; period: string; region: string; product: string; segment: string }[], dimension: string) => Promise<unknown>

Tags

breakdown
breaks
down
finance
growth
official
period
product
rates
revenue
segment
tpmjs

Parameters

Available configuration options

Auto-extracted
revenue
Required
Type: array

Revenue data with segments and periods

dimension
Required
Type: string

Breakdown dimension (product, segment, region, period)

Schema extracted: 2/27/2026, 4:20:47 AM

README

ERROR: No README data found!

Statistics

Downloads/month

20

GitHub Stars

0

Quality Score

76%

Bundle Size

NPM Keywords

tpmjs
finance
revenue
breakdown
growth

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
revenueBreakdownTool | TPMJS | TPMJS