Skip to main content
Glama

Read an environment

get_environment
Read-onlyIdempotent

An environment, by view: variables, the names of its variables and secrets (never the values); domains, its domains and their DNS proof; links, its access links (never the link); backups, the last 50 backups of a database (their id for restore_backup); queues, its queues and their state; cdn, its CDN (the zone of each service, the state of each address, the PoPs' traffic).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNoThe view returned.variables
trialNoThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
projectNoThe project.
databaseNoDatabase name; the first declared by default.
environmentNoProduction or a preview.production

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "variables",
      -  "domains",
      -  "links",
      -  "backups",
      -  "queues"
      -]New value: +[
      +  "variables",
      +  "domains",
      +  "links",
      +  "backups",
      +  "queues",
      +  "cdn"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"The key returned by the first deploy_app (trial_key), passed again on each call."New value: +"The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call."
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavior the annotations do not: secret variables are named but never valued, access links are listed but the link itself is withheld, the backups view is capped at the last 50, and CDN output is broken down by zone, address state and PoP traffic. This is substantive disclosure about return scope and redaction.

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 content is compressed into a single semicolon-delimited sentence that maps view to payload, which is scannable and front-loads the key structure. It is dense but nearly every clause carries information; only the leading fragment is slightly awkward as a sentence opener.

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?

With no output schema, the description carries the return-value burden and does so view by view, including redaction rules and the 50-backup cap. Defaults for view and environment are handled by the schema; the remaining gap is that pagination or ordering beyond 'last 50' is never mentioned.

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 description coverage is 100%, so the baseline is 3, and the schema already documents each parameter including the view enum. The description adds real meaning to 'view' by explaining what each enum value returns, but it says nothing further about trial, project, database or environment beyond what the schema states, so it does not exceed the baseline by much.

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 makes clear this reads an environment scoped by a view, and it enumerates all six views with what each contains (variables/names only, domains plus DNS proof, links, backups, queues, CDN). That specificity distinguishes it from siblings like get_app_status or get_project, though the opening fragment 'An environment, by view:' omits an explicit verb.

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?

Usage is only implied: the agent must infer that 'view' selects which slice of the environment to read. There is one useful cross-reference, noting the backups view yields 'their id for restore_backup', and the database parameter is tied to the backups view, but there is no statement of when to prefer this over observing the app or querying the database, and no exclusions.

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