Home/Tools/@tpmjs/email-subject-score

emailSubjectScoreTool

@tpmjs/email-subject-score

Scores email subject lines for open rate potential based on length, clarity, urgency, curiosity, and personalization. Provides detailed feedback and improvement suggestions.

Official
marketing
v0.1.1
MIT
⚠️

This tool is currently broken

Execution Failed
Runtime error with test parameters
r.some is not a function

Last checked: 3/1/2026, 4:28:28 AM

Interactive Playground

Test @tpmjs/email-subject-score (emailSubjectScoreTool) 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/email-subject-score
pnpm add @tpmjs/email-subject-score
yarn add @tpmjs/email-subject-score
bun add @tpmjs/email-subject-score
deno add npm:@tpmjs/email-subject-score

2. Import the tool

import { emailSubjectScoreTool } from '@tpmjs/email-subject-score';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { emailSubjectScoreTool } from '@tpmjs/email-subject-score';

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

console.log(result.text);

AI Agent Integration

How AI agents can use this tool

Use Case

Use this tool when users need to evaluate and compare email subject lines for effectiveness. Helps optimize email marketing campaigns by scoring subjects on multiple criteria.

Limitations

Scores are based on best practices and heuristics, not actual A/B testing data. Results are predictive and should be validated with real campaign data.

Examples

  • Score these subject lines: 'New Product Launch' vs 'You won't believe what we just released'
  • Evaluate my email subject for open rate potential
  • Compare multiple subject lines and recommend the best one

Signature

(subjects: string[]) => Promise<unknown>

Tags

ai
based
clarity
email
length
lines
marketing
open
potential
rate
score
scores
subject
subject-line
tpmjs

Parameters

Available configuration options

Auto-extracted
subjects
Required
Type: string[]

Array of email subject lines to evaluate

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

README

ERROR: No README data found!

Statistics

Downloads/month

19

GitHub Stars

0

Quality Score

79%

Bundle Size

NPM Keywords

tpmjs
email
marketing
subject-line
ai

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
emailSubjectScoreTool | TPMJS | TPMJS