Skip to main content
Glama

get_environment

Retrieve an environment and all its variable values by ID to inspect or manage API workspace configuration.

Instructions

Get an environment and all its variable values

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": {
      "environment_id": "<environment_id>"
    },
    "name": "get_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
environment_idYesThe environment _id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden; 'Get' correctly signals a read-only, non-mutating operation, and 'all its variable values' usefully discloses the response scope. However, it says nothing about how secret/sensitive variable values are handled, what happens when the environment_id is invalid, or whether the result includes metadata beyond values.

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?

A single nine-word sentence, front-loaded with the action and resource, with the return scope appended. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description is the only place return-shape and safety context can live; it partially covers this by naming the returned contents, but omits redaction behavior and error conditions. For a simple one-parameter read tool that is marginally adequate rather than complete.

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% and the single parameter environment_id is documented as 'The environment _id'. The description adds no format, sourcing, or constraint detail beyond the schema, so the baseline 3 applies.

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 gives a specific verb ('Get') and resource ('an environment'), and adds that the response includes 'all its variable values' — a detail that separates it from generic fetch tools. It does not explicitly contrast with siblings such as get_workspace or compare_environments, but the resource noun is distinctive enough for the agent to identify it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this instead of alternatives (e.g. compare_environments, update_environment, set_active_environment), and no stated preconditions such as needing a valid environment_id or a specific permutation/workspace context. The agent must infer usage entirely from the name.

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