Skip to main content
Glama

Airlok

База приложения

get_database
Read-only

Postgres приложения на хостинге: создана ли, имя, размер и квота, закрыта ли база по квоте, открыто ли подключение снаружи и с каких адресов. База создаётся на публикации, если в airlok.yml есть capabilities.database.enabled: true; адрес приходит приложению в DATABASE_URL. connection_url: true — строка подключения снаружи с паролем (если подключение открыто, токен с правом публикации): connection_url с sslmode=require подходит любому клиенту, connection_url_verified ещё и проверяет сертификат — для psql и других клиентов на libpq 16 и новее; Prisma и старые драйверы её не поймут.

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_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesid приложения, его имя или «сервер/имя»
connection_urlNoвернуть строку подключения снаружи с паролем

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's added value is in the operational caveats: credentials in the connection string require a publish-scoped token, sslmode=require works with any client, and connection_url_verified breaks Prisma and pre-libpq-16 drivers. That client-compatibility warning is behavior an agent could not derive from the schema or 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?

The content is dense and mostly earns its place, but it arrives as a single run-on paragraph where the parameter guidance is buried mid-sentence after status fields. Front-loading the purpose and separating the connection_url semantics would make it far easier to parse.

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?

For a two-parameter read-only getter with no output schema, the description carries the return-value burden well by listing the reported fields and the shape of the connection string. Minor gaps remain around failure cases (e.g. what is returned when the database does not exist or external access is closed).

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?

With 100% schema coverage the baseline is 3, but the description goes further: it explains the security precondition for connection_url (external access must be open, publish-right token required) and distinguishes connection string variants by client compatibility, adding meaning the bare schema line does not carry.

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

Purpose4/5

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

States a specific resource and enumerates exactly what is reported: existence, name, size and quota, quota lockout, external access and allowed addresses. It never names the sibling query_database or set_database_access, so an agent must infer the boundary between inspecting and querying/modifying the database.

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?

Gives real conditional guidance for the connection_url flag ('if external connection is open, a token with publish rights is needed') and explains when the database exists at all (airlok.yml capabilities.database.enabled: true, created on publish). However, there is no explicit statement of when to call this versus query_database or set_database_access, so usage is implied rather than directed.

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