Skip to main content
Glama

Airlok

Data API приложения

get_data_api
Read-only

Data API приложения на хостинге — как у Supabase: таблицы базы по HTTP (/rest/v1, PostgREST), вход пользователей (/auth/v1, Supabase Auth) и файлы (/storage/v1, права — политики на storage.objects); supabase-js работает без правок. Ответ — включён ли, адрес, ключ anon (можно во фронтенд), таблицы public с RLS и числом политик, число пользователей, настройки входа. Новые таблицы сразу закрыты RLS: без политики по ключу anon их не видно. open — что отдаётся по ключу anon без входа: critical (no_rls — таблица без RLS, её можно читать, менять и удалять; view — представление без security_invoker в обход RLS; write_all — политика USING (true) на изменение или удаление) почти всегда ошибка, а insert_all и read_all бывают задуманы (форма заявок, публичные записи). Ключ service_role обходит RLS и даёт полный доступ к данным и пользователям сайта; приложение и так получает его в SUPABASE_SERVICE_ROLE_KEY при запуске. Сам ключ — только с include_service_key: true, токеном с правом публикации и по прямой просьбе человека; не вписывайте его во фронтенд и в репозиторий.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "app": "<app>"
    },
    "name": "get_data_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesid приложения, его имя или «сервер/имя»
include_service_keyNoвернуть и ключ service_role (нужен токен с правом публикации)

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say readOnlyHint=true and openWorldHint=false; the description goes well beyond them by disclosing what the payload contains, that new tables default to RLS-closed, and how to triage the 'open' report (critical vs. intentional read_all/insert_all). It also warns that service_role bypasses RLS and that the key must never reach the frontend or a repository — behavior an agent cannot infer from the annotations.

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

Conciseness3/5

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

Everything is packed into one dense run-on paragraph covering four separate topics (returned payload, RLS defaults, 'open' triage, service_role handling), with no structure to help an agent scan it. Individual sentences are informative, but the lack of front-loaded grouping costs it.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so fully: it enumerates the fields returned and explains the meaning of the risk categories in the 'open' section. For a read-only inspection tool this leaves nothing an agent needs before calling it.

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 baseline is 3, but the description adds real meaning: include_service_key is gated on a publish-rights token and a direct human request, and it explains the security consequences of the returned key. The 'app' parameter's accepted forms (id, name, 'server/name') are already in the schema, so the added value is concentrated on the boolean flag.

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?

The description names a concrete verb+resource: it returns the state of the app's Data API (whether enabled, address, anon key, public tables with RLS and policy counts, user count, auth settings). It also scopes the surface explicitly (/rest/v1 PostgREST, /auth/v1, /storage/v1), which lets an agent tell it apart from get_app or get_database without opening a schema.

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

Usage Guidelines3/5

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

Usage guidance exists but is narrow: it states the conditions for include_service_key (publish-rights token plus an explicit human request) and how to interpret the 'open' findings. It never says when to call this versus set_data_api, get_app, or get_database, so the choice of tool is only implied by the resource named.

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.

Resources