Skip to main content
Glama

CMO Studio: deploy and host AI-built apps

Set a variable

set_env

Set an environment variable (the app restarts). For nested .NET settings use __, e.g. ConnectionStrings__Db. Use it for keys and settings (Vipps, Telegram, Mail API key); never put secrets in the repository.

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": {
      "slug": "<slug>",
      "name": "<name>",
      "value": "<value>"
    },
    "name": "set_env"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesVariable name
slugYesProject slug
valueYesValue

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only declare destructiveHint=false and a title, so the description carries most of the burden. It discloses the key side effect that 'the app restarts', which an agent could not infer from annotations, and warns about secrets handling, though it doesn't say whether an existing value is overwritten or how conflicts behave.

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?

Three short clauses, front-loaded with the action and its restart consequence, followed by syntax and safety notes. Nothing is padded, though the final secrets warning is more of a policy reminder than tool-specific behavior guidance.

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 three-parameter mutation with no output schema, the description covers the important operational facts: the restart side effect, the nested naming convention, and what values belong here. It stops short of explaining overwrite semantics or the failure/response mode, which would be needed for full completeness.

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 the baseline would be 3, but the description adds real meaning to the 'name' parameter via the nested .NET '__' convention and the ConnectionStrings__Db example. It also clarifies acceptable content for 'value' by naming key categories and excluding secrets.

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?

The description opens with a specific verb and resource: 'Set an environment variable', which is distinct from sibling reads (list_env) or removals (remove_env). It does not explicitly contrast with set_env_many, but the singular framing plus the restart note makes the action unambiguous.

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?

It supplies usage context by naming the kinds of values it is meant for (Vipps, Telegram, Mail API key) and a clear negative constraint against storing secrets in the repository. However, it offers no guidance on choosing between this tool and set_env_many, and no prerequisites for when setting is appropriate.

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.