Home/Tools/@tpmjs/tools-postgres

listSchemas

@tpmjs/tools-postgres

List schemas, filtering pg_* and information_schema by default.

Official
ops
v0.2.0
MIT
⚠️

This tool is currently broken

Import Failed
Cannot load from Railway service
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:28:40 AM

Interactive Playground

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

2. Import the tool

import { listSchemas } from '@tpmjs/tools-postgres';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { listSchemas } from '@tpmjs/tools-postgres';

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

console.log(result.text);

Parameters

Available configuration options

No schema

No schema available for this tool.

README

@tpmjs/tools-postgres

Postgres tools for AI agents.

Installation

npm install @tpmjs/tools-postgres

Usage

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',
});

Tools

examplePostgres

Example postgres tool that demonstrates the basic structure.

Parameters:

  • message (string, required): A message to process

Environment Variables

None required for the example tool.

License

MIT

Statistics

Downloads/month

189

GitHub Stars

15

Quality Score

85%

Bundle Size

NPM Keywords

tpmjs
postgres
postgresql
database
sql
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai