View as Markdown
Supabase icon

Supabase ACTION

Count Rows

Counts rows in a database table, with optional filtering conditions. See the docs here
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Supabase account once, then configure and run Count Rows from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "supabase-count-rows",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    supabase: { authProvisionId: "apn_xxxxxxx" },
    table: "Table",
    column: "Column",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Count Rows inputs
Property Type Description
table Table string
Name of the table to count rows from
Required
column Column string
Column name to filter by (optional)
Optional
filter Filter string
Filter type for the query (optional)
Optional
value Value string
Value to filter by (optional)
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
supabase-count-rows
Version
0.0.2
App
Supabase
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes