Home/Tools/@tpmjs/tools-expense-categorize

expenseCategoriizeTool

@tpmjs/tools-expense-categorize

Categorizes business expenses into standard accounting categories (advertising, payroll, office supplies, travel, etc.) based on description, amount, and vendor. Provides confidence scores, alternative categories, tax deductibility flags, and recommendations for proper expense tracking.

Official
finance
v0.1.0
MIT

Interactive Playground

Test @tpmjs/tools-expense-categorize (expenseCategoriizeTool) 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/tools-expense-categorize
pnpm add @tpmjs/tools-expense-categorize
yarn add @tpmjs/tools-expense-categorize
bun add @tpmjs/tools-expense-categorize
deno add npm:@tpmjs/tools-expense-categorize

2. Import the tool

import { expenseCategoriizeTool } from '@tpmjs/tools-expense-categorize';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { expenseCategoriizeTool } from '@tpmjs/tools-expense-categorize';

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

console.log(result.text);

Signature

(expenses: { id: string; date: string; amount: number; vendor: string; description: string }[]) => Promise<unknown>

Tags

accounting
advertising
business
categories
categoriize
categorization
categorize
categorizes
expense
expenses
finance
office
payroll
standard
supplies
tpmjs

Parameters

Available configuration options

Auto-extracted
expenses
Required
Type: array

Expense entries to categorize

Schema extracted: 3/1/2026, 4:25:16 AM

README

ERROR: No README data found!

Statistics

Downloads/month

4

GitHub Stars

0

Quality Score

72%

Bundle Size

NPM Keywords

tpmjs
finance
accounting
expenses
categorization

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
expenseCategoriizeTool | TPMJS | TPMJS