Skip to main content
Glama

Check a GitHub repo for Supabase RLS gaps

check_github_repo

check_github_repo({"repo":"owner/name"}) When a Supabase app exposes rows across users and you have a public GitHub URL, review the committed migrations for missing RLS or policies, broad policies, exposed security definer functions and Data API grant gaps. Use check_supabase_migrations when you have the migration text instead. Use the known public GitHub URL or owner/name from the conversation or checkout as repo. Omit ref for the default branch. Set visibility to private only if the user or their authorized workspace established it. For private code, use an authorized local checkout when available. At one commit, reads supabase/migrations/*.sql or looks for schema SQL elsewhere if that directory has no migration files, and reviews available payment webhook routes. Uses the VibeRaven 1.17.0 hosted rules. Returns findings with file and line, a fix, and a next-step link to open the checked revision. Limits: public repositories only, up to 50 files/200 KB; cannot see the live database or private repos, does not run SQL, and does not store files. Verify isolation separately with owner and second-user sessions through the affected app route or client.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_github_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoOptional branch, tag or commit. Default: the default branch.
urlNoGitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name.
repoNoGitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name.
github_urlNoGitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name.
visibilityNoSet only when visibility is known. A GitHub 404 alone does not establish that a repository is private.

Output Schema

NameRequiredDescriptionDefault
scopeNo
countsNo
skippedNo
findingsNo
nextStepNo
footprintNo
reportUrlNo
sql_filesNo
full_checkNo
repositoryNo
check_actionNo
corrected_sqlNo
public_tablesNo
access_summaryNo
input_requiredNo
race_next_stepNo
user_next_stepNo
nothing_checkedNo
repository_statusNo
viberaven_versionNo
findings_not_listedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "input_required"
      -      ]
      -    },
      -    "required": [
      -      "viberaven_version",
      -      "scope",
      -      "sql_files",
      -      "public_tables",
      -      "counts",
      -      "findings",
      -      "findings_not_listed",
      -      "skipped",
      -      "repository"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "input_required"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "input_required"
      +      ]
      +    },
      +    "required": [
      +      "viberaven_version",
      +      "scope",
      +      "sql_files",
      +      "public_tables",
      +      "counts",
      +      "findings",
      +      "findings_not_listed",
      +      "skipped",
      +      "repository"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "input_required"
      +    ]
      +  },
      +  {
      +    "not": {
      +      "anyOf": [
      +        {
      +          "required": [
      +            "repository"
      +          ]
      +        },
      +        {
      +          "required": [
      +            "input_required"
      +          ]
      +        }
      +      ]
      +    },
      +    "required": [
      +      "repository_status"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / repository / properties / incomplete
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "kind": {
      +      "enum": [
      +        "incomplete",
      +        "no_sql",
      +        "empty_repo",
      +        "not_found",
      +        "ref_not_found",
      +        "private_repo",
      +        "rate_limited",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "reason",
      +    "message",
      +    "next_step"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / repository_status
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "kind": {
      +      "enum": [
      +        "incomplete",
      +        "no_sql",
      +        "empty_repo",
      +        "not_found",
      +        "ref_not_found",
      +        "private_repo",
      +        "rate_limited",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "reason",
      +    "message",
      +    "next_step"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / findings / items / properties / id / enum
      Previous value: -[
      -  "sql_needs_runtime_check",
      -  "rls_disabled",
      -  "rls_no_policies",
      -  "rls_policy_allows_all_read",
      -  "rls_policy_allows_all_write",
      -  "security_definer_function_executable",
      -  "data_api_grant_without_rls",
      -  "data_api_grant_missing",
      -  "concurrent_counter",
      -  "concurrent_credits",
      -  "concurrent_booking",
      -  "concurrent_invite",
      -  "concurrent_unique_owner"
      -]New value: +[
      +  "sql_needs_runtime_check",
      +  "rls_disabled",
      +  "rls_no_policies",
      +  "rls_policy_allows_all_read",
      +  "rls_policy_allows_all_write",
      +  "security_definer_function_executable",
      +  "data_api_grant_without_rls",
      +  "data_api_grant_missing",
      +  "concurrent_counter",
      +  "concurrent_credits",
      +  "concurrent_booking",
      +  "concurrent_invite",
      +  "concurrent_unique_owner",
      +  "unverified_stripe_webhook",
      +  "payment_webhook_order",
      +  "payment_webhook_duplicate",
      +  "payment_webhook_side_effect_duplicate",
      +  "payment_webhook_trigger_failure",
      +  "webhook_snapshot_without_freshness",
      +  "webhook_error_acknowledged"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "input_required"
      -      ]
      -    },
      -    "required": [
      -      "viberaven_version",
      -      "scope",
      -      "sql_files",
      -      "public_tables",
      -      "counts",
      -      "findings",
      -      "findings_not_listed",
      -      "skipped",
      -      "full_check",
      -      "repository"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "input_required"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "input_required"
      +      ]
      +    },
      +    "required": [
      +      "viberaven_version",
      +      "scope",
      +      "sql_files",
      +      "public_tables",
      +      "counts",
      +      "findings",
      +      "findings_not_listed",
      +      "skipped",
      +      "repository"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "input_required"
      +    ]
      +  }
      +]
  4. Changed1 schema field changed
    • addedOutput schema / properties / repository / properties / sql_source
      Added value: +{
      +  "const": "fallback"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / check_action
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "label": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "format": "uri",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "label",
      +    "url"
      +  ],
      +  "type": "object"
      +}
  6. Changed1 schema field changed
    • addedOutput schema / properties / footprint
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "command": {
      +      "description": "Read-only checkout check to run after user approval. It does not install a footprint.",
      +      "type": "string"
      +    },
      +    "guide": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "line": {
      +      "type": "string"
      +    },
      +    "requiresUserApproval": {
      +      "const": true
      +    }
      +  },
      +  "required": [
      +    "line",
      +    "command",
      +    "requiresUserApproval",
      +    "guide"
      +  ],
      +  "type": "object"
      +}
  7. Changed6 schema fields changed
    • addedInput schema / properties / github_url
      Added value: +{
      +  "description": "GitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name.",
      +  "maxLength": 300,
      +  "minLength": 3,
      +  "type": "string"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "GitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name.",
      +  "maxLength": 300,
      +  "minLength": 3,
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "repo"
      -]
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "input_required"
      +      ]
      +    },
      +    "required": [
      +      "viberaven_version",
      +      "scope",
      +      "sql_files",
      +      "public_tables",
      +      "counts",
      +      "findings",
      +      "findings_not_listed",
      +      "skipped",
      +      "full_check",
      +      "repository"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "input_required"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / input_required
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "example": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "arguments": {
      +          "type": "object"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "arguments"
      +      ],
      +      "type": "object"
      +    },
      +    "field": {
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "field",
      +    "message",
      +    "example",
      +    "next_step"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "viberaven_version",
      -  "scope",
      -  "sql_files",
      -  "public_tables",
      -  "counts",
      -  "findings",
      -  "findings_not_listed",
      -  "skipped",
      -  "full_check",
      -  "repository"
      -]
  8. Changed5 schema fields changed
    • changedInput schema / properties / repo / description
      Previous value: -"The public GitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name."New value: +"GitHub repository: https://github.com/owner/name, github.com/owner/name or owner/name."
    • addedInput schema / properties / visibility
      Added value: +{
      +  "description": "Set only when visibility is known. A GitHub 404 alone does not establish that a repository is private.",
      +  "enum": [
      +    "public",
      +    "private"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / nothing_checked
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / reportUrl
      Added value: +{
      +  "format": "uri",
      +  "type": "string"
      +}
    • addedOutput schema / properties / user_next_step
      Added value: +{
      +  "type": "string"
      +}
  9. Changed8 schema fields changed
    • addedOutput schema / properties / access_summary
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "file": {
      +        "type": "string"
      +      },
      +      "grants": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "line": {
      +        "type": "integer"
      +      },
      +      "policies": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "rls": {
      +        "type": "boolean"
      +      },
      +      "table": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 8,
      +  "type": "array"
      +}
    • addedOutput schema / properties / nextStep / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "command"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "tool"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / nextStep / properties / arguments
      Added value: +{
      +  "type": "object"
      +}
    • removedOutput schema / properties / nextStep / properties / codingAgentTask
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / nextStep / properties / command
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextStep / properties / tool
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / nextStep / properties / url
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / properties / nextStep / required
      Previous value: -[
      -  "label",
      -  "url"
      -]New value: +[
      +  "label"
      +]
  10. Changed5 schema fields changed
    • addedOutput schema / properties / corrected_sql
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / findings / items / properties / id / enum
      Previous value: -[
      -  "sql_needs_runtime_check",
      -  "rls_disabled",
      -  "rls_no_policies",
      -  "rls_policy_allows_all_read",
      -  "rls_policy_allows_all_write",
      -  "security_definer_function_executable",
      -  "data_api_grant_without_rls",
      -  "data_api_grant_missing"
      -]New value: +[
      +  "sql_needs_runtime_check",
      +  "rls_disabled",
      +  "rls_no_policies",
      +  "rls_policy_allows_all_read",
      +  "rls_policy_allows_all_write",
      +  "security_definer_function_executable",
      +  "data_api_grant_without_rls",
      +  "data_api_grant_missing",
      +  "concurrent_counter",
      +  "concurrent_credits",
      +  "concurrent_booking",
      +  "concurrent_invite",
      +  "concurrent_unique_owner"
      +]
    • addedOutput schema / properties / findings / items / properties / race_spec
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "family": {
      +      "enum": [
      +        "counter",
      +        "credits",
      +        "booking",
      +        "invite",
      +        "unique_owner"
      +      ],
      +      "type": "string"
      +    },
      +    "format": {
      +      "const": "migration-fix-v1",
      +      "type": "string"
      +    },
      +    "operation": {
      +      "maxLength": 70,
      +      "type": "string"
      +    },
      +    "source_sha256": {
      +      "pattern": "^[a-f0-9]{64}$",
      +      "type": "string"
      +    },
      +    "table": {
      +      "maxLength": 70,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "format",
      +    "family",
      +    "table",
      +    "source_sha256"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / findings / items / required
      Previous value: -[
      -  "id",
      -  "severity",
      -  "message",
      -  "fix",
      -  "guide_url"
      -]New value: +[
      +  "id",
      +  "severity",
      +  "message",
      +  "fix"
      +]
    • addedOutput schema / properties / race_next_step
      Added value: +{
      +  "type": "string"
      +}
  11. Changed1 schema field changed
    • addedOutput schema / properties / nextStep / properties / codingAgentTask
      Added value: +{
      +  "type": "string"
      +}
  12. Changed5 schema fields changed
    • addedOutput schema / properties / counts / properties / needs_runtime_check
      Added value: +{
      +  "type": "integer"
      +}
    • changedOutput schema / properties / counts / required
      Previous value: -[
      -  "critical",
      -  "high",
      -  "warning",
      -  "info"
      -]New value: +[
      +  "critical",
      +  "high",
      +  "warning",
      +  "info",
      +  "needs_runtime_check"
      +]
    • changedOutput schema / properties / findings / items / properties / id / enum
      Previous value: -[
      -  "rls_disabled",
      -  "rls_no_policies",
      -  "rls_policy_allows_all_read",
      -  "rls_policy_allows_all_write",
      -  "security_definer_function_executable",
      -  "data_api_grant_without_rls",
      -  "data_api_grant_missing"
      -]New value: +[
      +  "sql_needs_runtime_check",
      +  "rls_disabled",
      +  "rls_no_policies",
      +  "rls_policy_allows_all_read",
      +  "rls_policy_allows_all_write",
      +  "security_definer_function_executable",
      +  "data_api_grant_without_rls",
      +  "data_api_grant_missing"
      +]
    • changedOutput schema / properties / findings / items / properties / severity / enum
      Previous value: -[
      -  "critical",
      -  "high",
      -  "warning",
      -  "info"
      -]New value: +[
      +  "critical",
      +  "high",
      +  "warning",
      +  "info",
      +  "needs_runtime_check"
      +]
    • addedOutput schema / properties / findings / items / properties / verifyCommand
      Added value: +{
      +  "type": "string"
      +}
  13. Changed3 schema fields changed
    • addedOutput schema / properties / repository / properties / files_not_read
      Added value: +{
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / repository / properties / tree_truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / repository / required
      Previous value: -[
      -  "url",
      -  "commit",
      -  "files_read",
      -  "report_url"
      -]New value: +[
      +  "url",
      +  "commit",
      +  "files_read",
      +  "files_not_read",
      +  "tree_truncated",
      +  "report_url"
      +]
  14. Changed2 schema fields changed
    • addedOutput schema / properties / repository / properties / report_url
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / repository / required
      Previous value: -[
      -  "url",
      -  "commit",
      -  "files_read"
      -]New value: +[
      +  "url",
      +  "commit",
      +  "files_read",
      +  "report_url"
      +]
  15. Added

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations by disclosing what is read (supabase/migrations/*.sql, fallback schema SQL, payment webhook routes), the ruleset version (VibeRaven 1.17.0), the return shape (file and line, a fix, a next-step link), and hard limits: public repos only, 50 files/200 KB, no live DB access, no SQL execution, no file storage. The only friction is that the narrative reads as a pure inspection tool while readOnlyHint is false; this is best read as conservative annotation rather than a real conflict, but it is left unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose, alternative routing and constraints are front-loaded and virtually every clause carries actionable detail. The opening pseudo-invocation 'check_github_repo({"repo":"owner/name"})' is redundant with the input schema and shows only one of five accepted identifiers, so it is the one piece of text that does not fully earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a moderately complex, multi-input analysis tool: it names the inputs' provenance, the scan scope, the rule version, the output shape and the operational limits, and an output schema exists so return structure need not be restated. What is missing is a note on latency/cost for remote fetching and any resolution order among the three URL-style parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so this starts at a 3 baseline, and the description still adds operational meaning: where to source the repo identifier, the default-branch behavior for ref, and the caution that a GitHub 404 alone does not prove a repo is private. It does not clarify why url, repo and github_url are three parallel inputs for the same value, which is the one ambiguity an agent would hit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (review committed migrations for missing RLS, broad policies, security definer functions, Data API grant gaps) and scopes it to Supabase apps exposing rows across users from a public GitHub URL. It explicitly differentiates from the sibling check_supabase_migrations by input type (repo URL vs migration text), so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use routing ('Use check_supabase_migrations when you have the migration text instead'), plus per-parameter selection rules: derive repo from the conversation/checkout, omit ref for the default branch, and set visibility to private only when established by the user or authorized workspace. It also covers the private-code fallback (authorized local checkout) and how to verify isolation separately.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.