Skip to main content
Glama

Airlok

Задать переменные

set_env
Idempotent

Задать или заменить переменные окружения приложения на хостинге. Применяются со следующего запроса к сайту; NEXT_PUBLIC_* и другие переменные сборки — после новой публикации. DATABASE_URL задаёт Airlok сам. Требует токен с правом публикации. Для приложения на своём сервере не подходит: там значения шифрует CLI — npx @airlok/cli env set ИМЯ --app <имя>.

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>",
      "vars": "<vars>"
    },
    "name": "set_env"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesid приложения, его имя или «сервер/имя»
varsYesИМЯ → значение

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing propagation timing (applies from the next request; NEXT_PUBLIC_* and build vars only after a new publish), a reserved variable the tool will not let you own, and the auth requirement (token with publish permission). These are exactly the side-effect details an agent needs before mutating config.

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

Conciseness5/5

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

Four short sentences, front-loaded with what the tool does, then timing, then reserved keys, then auth, then the exclusion and alternative. No filler; the inline CLI command is necessary information, not padding.

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?

For a two-parameter mutation with no output schema, the definition covers purpose, effect timing, reserved values, permissions, and the self-hosted exclusion. An agent can call it correctly without consulting anything else.

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% and the `app` format (id, name, or "server/name") is already documented there, so the baseline is 3. The description adds real constraint on `vars` by naming DATABASE_URL as a key that is managed externally, which meaningfully narrows valid input.

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 pair and resource: set or replace an application's environment variables on the hosting. It is immediately separable from list_env and delete_env, and it explicitly scopes itself to hosted apps rather than self-hosted servers.

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 positive conditions (setting/replacing env vars on hosting), exclusions (not for apps on your own server — use `npx @airlok/cli env set`), and a reserved-key caveat (DATABASE_URL is managed by Airlok). When-to-use, when-not-to-use, and the alternative are all present.

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