Skip to main content
Glama

get_environment

Look up a sandbox environment by name or UUID to retrieve its configuration and confirm access; returns None if not found in visible USER or GLOBAL scopes, with secret values masked.

Instructions

Look up one sandbox environment by name or UUID. Returns None if not found in the caller's visible scopes (own USER envs plus all GLOBAL envs).

Secret env-var values are masked as "******".

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

Input Schema

NameRequiredDescriptionDefault
name_or_idYesThe environment name or UUID to look up.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it discloses two important behaviors: a missing entity yields None rather than an error, and secret env-var values come back masked as '******'. It omits error/permission behavior for other failure modes, but the not-found and masking disclosures are substantive.

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, each front-loaded with distinct information: what it does, scope/not-found semantics, and the masking behavior. No filler or redundant restatement of the name.

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?

An output schema exists, so return shape need not be described, and the definition covers the two things an agent could not infer: visibility scoping and secret masking. Only a note on when to prefer this over list_environments is missing for a lookup-by-key tool of this simplicity.

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 is already documented as 'The environment name or UUID to look up.' The description's 'by name or UUID' largely restates that, so it adds little beyond the schema; 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?

States a specific verb and resource ('Look up one sandbox environment') and signals single-item scope with 'one', which implicitly contrasts with the list_environments sibling. It stops short of naming that sibling explicitly, so the differentiation is inferential rather than stated.

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?

The description clarifies that lookup is scoped to the caller's visible environments (own USER envs plus all GLOBAL envs), which tells the agent where a lookup can succeed. However, it never says when to use this rather than list_environments, nor does it cover the already-have-a-name vs need-to-browse case.

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