Query

sample_rows

sample_rows

Peek at a few example rows, with private data hidden.

Read only

Picks random rows and masks emails, names and any column you tag as PII. Useful before the agent writes a query it has never seen.

Parameters

table

string

required

Table to sample.

n

integer

How many rows. Defaults to 5.

Try asking

“Show me what an invoice row looks like.”

Give your agent every tool in two minutes.

One command connects Socket to Claude, ChatGPT, Cursor or VS Code. Read-only until you say otherwise.

Terminal
$ npx -y @socketmcp/server init

Create a free website with Framer, the website builder loved by startups, designers and agencies.