@tpmjs/tools-postgres
Live/dead tuples, seq/index scans, last vacuum/analyze.
Could not find module root given file: "https://esm.sh/bindings@1.5.0/denonext/bindings.mjs". Do you have a `package.json` file?
Last checked: 3/1/2026, 4:29:00 AM
Test @tpmjs/tools-postgres (getTableStats) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-postgrespnpm add @tpmjs/tools-postgresyarn add @tpmjs/tools-postgresbun add @tpmjs/tools-postgresdeno add npm:@tpmjs/tools-postgresimport { getTableStats } from '@tpmjs/tools-postgres';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { getTableStats } from '@tpmjs/tools-postgres';
const result = await generateText({
model: openai('gpt-4o'),
tools: { getTableStats },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
No schema available for this tool.
Postgres tools for AI agents.
npm install @tpmjs/tools-postgres
import { examplePostgres } from '@tpmjs/tools-postgres'; // Use with Vercel AI SDK import { generateText } from 'ai'; const result = await generateText({ model: yourModel, tools: { examplePostgres, }, prompt: 'Your prompt here', });
Example postgres tool that demonstrates the basic structure.
Parameters:
message (string, required): A message to processNone required for the example tool.
MIT
Downloads/month
189
GitHub Stars
15
Quality Score