Skip to main content
Glama

Read one environment variable

get_environment_value
Read-onlyIdempotent

Reads one environment variable by project and row ID. Non-secret values are available directly. Secret values require the user’s approval in their signed-in dashboard for that specific read.

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": {
      "project_id": "<project_id>",
      "variable_id": "<variable_id>"
    },
    "name": "get_environment_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesExact stable project ID. Resolve it first. Never invent an update target.
approval_idNoApproval ID returned for this exact secret, supplied after the user acts in their signed-in dashboard.
variable_idYesExact environment_previews row ID from get_dynamic_project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior beyond them: that secret reads are gated by an out-of-band human approval scoped to that one value, which an agent could not infer from the annotations. It stops short of saying what the tool returns if approval is absent.

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?

Three short sentences, front-loaded with the core action, then the direct-read case, then the approval exception. No filler or restatement of the title.

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 read tool with full schema coverage and rich annotations, the description covers the essential unusual trait (human approval for secrets). The gap is the success/failure response shape and what happens when approval_id is omitted for a secret, which matters more here because no output schema exists.

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%, so project_id, variable_id and approval_id are already fully documented, including the prj_ pattern and the per-secret nature of approval_id. The description reinforces the per-secret approval scoping but adds no new syntax, format, or error semantics; baseline 3 applies.

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 names a specific verb and resource ('Reads one environment variable') and scopes it precisely via 'by project and row ID', making clear this fetches a single value rather than listing them. An agent can tell what it returns without consulting 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 the key gating condition: non-secret values come back directly, while secret values need the user's approval in their signed-in dashboard 'for that specific read'. What is missing is explicit when-not guidance (e.g. what to do if no approval_id exists yet, or that get_dynamic_project must be called first to obtain variable_id).

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