Skip to main content
Glama

Add or update environment variable

render_update_env_var
Idempotent

Update an environment variable for a Render service. Specify the service ID, variable key, and value or choose to generate one.

Instructions

Add or update environment variable. Add or update a particular environment variable for a particular service. This only applies to environment variables set directly on the service, not to environment variables in a linked environment group. Calls PUT /services/{serviceId}/env-vars/{envVarKey} on the Render Public API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesRequest body.
envVarKeyYesThe name of the environment variable
serviceIdYesThe ID of the service
Behavior4/5

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

The description discloses the API call details (PUT endpoint) and implies idempotent behavior ('add or update'), which aligns with the idempotentHint annotation. The scope limitation adds transparency beyond annotations, with no contradictions.

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?

The description is three concise sentences, each adding value: title restatement, scope clarification, and API endpoint. No redundant or unnecessary text.

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 simple tool with 3 required parameters and no output schema, the description covers purpose, scope, and API action. It does not detail behavior for conflicting updates or generateValue, but the schema covers that.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with each parameter described in the schema. The description adds minimal extra meaning beyond what the schema provides (e.g., 'particular service'), so a baseline score of 3 is appropriate.

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 clearly states it adds or updates an environment variable for a specific service, using a specific verb and resource. It differentiates from env group variables by noting it only applies to variables set directly on the service.

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?

The description explicitly states the tool is for environment variables set directly on the service, not for those in linked environment groups, providing clear context for when to use this tool versus others targeting env groups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LuSrodri/render-useful-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server