Skip to main content
Glama

Airlok

Подключение к базе снаружи

set_database_access
Idempotent

Открыть или закрыть подключение к Postgres приложения на хостинге снаружи — клиентом базы, миграциями с компьютера, с другого сервера. Только по TLS (sslmode=require), не больше 5 соединений сразу, свои логин (ext_…) и пароль, права в базе — как у приложения. allowed — адреса и сети вида 203.0.113.7 или 203.0.113.0/24, с которых можно подключаться (до 20); any: true — с любого адреса. Переданные поля ложатся поверх текущих. Платные тарифы и пробный период. Строка подключения — get_database с connection_url: 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": "set_database_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
anyNotrue — с любого адреса; false — только из allowed
appYesid приложения, его имя или «сервер/имя»
allowedNoвесь список разрешённых адресов и сетей
enabledNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important operational behavior: TLS-only access, a five-connection limit, ext_ credentials, app-equivalent database rights, up to 20 allowed addresses, and paid-plan/trial eligibility. It also explains that supplied fields overlay current settings, which is crucial for a state-setting tool.

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?

The description is dense but front-loads the core action and follows with constraints, parameters, and the connection-string pointer. Most sentences carry operational value, though the single-paragraph density makes some clauses harder to scan than necessary.

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 mutation tool with annotations and no output schema, it covers prerequisites, limits, parameter formats, merge semantics, and the follow-up tool for connection details. It stops short of explaining what happens to existing connections on close, propagation behavior, or error/default cases for enabled.

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?

The description adds substantial meaning beyond the schema: allowed accepts individual addresses or CIDR networks, up to 20 entries; any: true allows all addresses; and supplied fields are merged over current values. The enabled parameter is only indirectly implied by the open/close framing and has no description in the schema, leaving a small gap.

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 gives a specific verb pair and resource: opening or closing external access to an app's hosted Postgres. It distinguishes that action from retrieving the connection string via get_database, so an agent can identify the tool's scope without opening the schema.

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

Usage Guidelines4/5

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

It states an explicit usage constraint: only on the user's request. It also routes the agent to get_database with connection_url: true for the connection string, but it does not describe when access should remain closed or name alternatives for database access/querying.

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