You're viewing a demo portfolio

Join the waitlist
PRSM
This tool is no longer present in the server's latest manifest. Showing the last observed version (server version 0.1.0).

select_rows

Inactive

Tool of io.github.butterbase-ai/mcp

declared in 0.1.0

Query rows from a table using the auto-generated REST API. By default, this tool authenticates with the platform API key (butterbase_service role), which bypasses Row-Level Security and returns ALL rows regardless of RLS policies. To test RLS enforcement from this tool, use the as_role and as_user parameters: - as_role: "anon" — simulate an anonymous request (butterbase_anon role) - as_role: "user", as_user: "<user-uuid>" — simulate a specific end-user (butterbase_user role) Without as_role, this tool always runs as butterbase_service (full access). Use this to: - Fetch data from tables (as admin/service — sees all rows) - Filter, sort, and paginate results - Select specific columns Example — Basic query: Input: { app_id: "app_abc123", table: "posts", limit: 10 } Output: [ { id: "uuid-1", title: "Hello World", created_at: "2024-01-15T10:00:00Z" }, ... ] Example — With filters: Input: { app_id: "app_abc123", table: "posts", filters: { "status": "eq.published", "created_at": "gt.2024-01-01" }, order: "created_at.desc", limit: 20 } Filter operators: - eq (equals): status=eq.published - neq (not equals): status=neq.draft - gt (greater than): age=gt.18 - gte (greater than or equal): age=gte.18 - lt (less than): price=lt.100 - lte (less than or equal): price=lte.100 - like (pattern match): title=like.%hello% - ilike (case-insensitive): title=ilike.%hello% - is (null/true/false): deleted_at=is.null - in (list): id=in.(1,2,3) - fts (full-text search): title=fts.hello world Common errors: - VALIDATION_TABLE_NOT_FOUND: Table doesn't exist, use manage_schema (action: "get") to verify - VALIDATION_INVALID_SCHEMA: Invalid filter format Idempotency: Safe to call multiple times (read-only operation).

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "table"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "description": "Maximum number of rows to return",
      "exclusiveMinimum": 0
    },
    "order": {
      "type": "string",
      "description": "Sort order (e.g., \"created_at.desc\")"
    },
    "table": {
      "type": "string",
      "description": "The table name"
    },
    "app_id": {
      "type": "string",
      "description": "The app ID"
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "description": "Number of rows to skip"
    },
    "select": {
      "type": "string",
      "description": "Comma-separated column names to return"
    },
    "as_role": {
      "enum": [
        "anon",
        "user"
      ],
      "type": "string",
      "description": "Simulate a specific role for RLS testing. \"anon\" for anonymous, \"user\" for authenticated end-user (requires as_user)."
    },
    "as_user": {
      "type": "string",
      "description": "User ID (UUID) to simulate when as_role is \"user\". Required when as_role is \"user\"."
    },
    "filters": {
      "type": "object",
      "description": "Filter conditions (column: \"operator.value\")",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.50.

Parent server

io.github.butterbase-ai/mcp

https://github.com/butterbase-ai/butterbase-oss

1/7 registries
View full server →
select_rows — io.github.butterbase-ai/mcp — PRSM MCP