Home/Tools/@tpmjs/official-tos-readability

tosReadabilityTool

@tpmjs/official-tos-readability

Analyzes Terms of Service for readability, complexity, and consumer-friendliness

Official
legal
v0.1.1
MIT

Interactive Playground

Test @tpmjs/official-tos-readability (tosReadabilityTool) 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-tos-readability
pnpm add @tpmjs/official-tos-readability
yarn add @tpmjs/official-tos-readability
bun add @tpmjs/official-tos-readability
deno add npm:@tpmjs/official-tos-readability

2. Import the tool

import { tosReadabilityTool } from '@tpmjs/official-tos-readability';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { tosReadabilityTool } from '@tpmjs/official-tos-readability';

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

console.log(result.text);

Signature

(tosText: string) => Promise<unknown>

Tags

analysis
analyzes
complexity
consumer
friendliness
legal
official
readability
service
terms
tos
tpmjs

Parameters

Available configuration options

Auto-extracted
tosText
Required
Type: string

Terms of Service text

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

README

ERROR: No README data found!

Statistics

Downloads/month

15

GitHub Stars

0

Quality Score

75%

Bundle Size

NPM Keywords

tpmjs
legal
tos
readability
analysis

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai