Home/Tools/@tpmjs/official-tax-deduction-scan

taxDeductionScanTool

@tpmjs/official-tax-deduction-scan

Scans expense data for potential tax deductions by category

Official
finance
v0.1.1
MIT

Interactive Playground

Test @tpmjs/official-tax-deduction-scan (taxDeductionScanTool) 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-tax-deduction-scan
pnpm add @tpmjs/official-tax-deduction-scan
yarn add @tpmjs/official-tax-deduction-scan
bun add @tpmjs/official-tax-deduction-scan
deno add npm:@tpmjs/official-tax-deduction-scan

2. Import the tool

import { taxDeductionScanTool } from '@tpmjs/official-tax-deduction-scan';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { taxDeductionScanTool } from '@tpmjs/official-tax-deduction-scan';

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

console.log(result.text);

Signature

(expenses: { date: string; amount: number; vendor: string; category: string; description: string }[], entityType: string, taxYear?: number) => Promise<unknown>

Tags

category
data
deduction
deductions
expense
expenses
finance
official
potential
scan
scans
tax
tpmjs

Parameters

Available configuration options

Auto-extracted
expenses
Required
Type: array

Expense records to scan for deductions

entityType
Required
Type: string

Business entity type for tax treatment

taxYear
Optional
Type: number

Tax year

Schema extracted: 3/1/2026, 4:27:46 AM

README

ERROR: No README data found!

Statistics

Downloads/month

136

GitHub Stars

0

Quality Score

81%

Bundle Size

NPM Keywords

tpmjs
finance
tax
deductions
expenses

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai