Skip to main content
Glama

aws_get_session_env

Retrieve AWS profile session environment variables and optionally include raw credentials only when explicitly enabled.

Instructions

Get profile environment; raw credentials require explicit include_credentials=True.

Args: profile_name: AWS profile name (defaults to the selected or active profile). include_credentials: Explicitly include sensitive raw credentials in the response.

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": "aws_get_session_env"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_nameNo
include_credentialsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.5
    • addedInput schema / properties / include_credentials
      Added value: +{
      +  "default": false,
      +  "title": "Include Credentials",
      +  "type": "boolean"
      +}
  2. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully flags that raw credentials are sensitive and gated behind an explicit opt-in, but says nothing about whether the call is read-only, whether it refreshes or caches credentials, what permission or network requirements exist, or what non-credential fields the response contains.

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 definition is short and front-loads the security-relevant caveat before the Args block. The Args duplication is justified because the schema has no property descriptions, so the sentences earn their place.

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?

An output schema exists, so return values need not be spelled out, and both parameters are documented. However, for a tool whose whole purpose is retrieving session environment data, the description never clarifies what that environment comprises, leaving a meaningful comprehension gap relative to the tool's core promise.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: profile_name is explained as falling back to the selected or active profile, and include_credentials is characterized as surfacing sensitive raw credentials. Both of the two parameters gain meaning beyond their bare schema types and defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb is present ('Get profile environment'), but 'environment' is never defined — it is unclear whether this returns region/account identifiers, credential environment variables, or session metadata. It also fails to distinguish itself from close siblings such as aws_get_caller_identity or aws_ensure_credentials, leaving the agent to guess which one yields session env data.

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 when-to-use or when-not-to-use guidance and no named alternative. The only conditional hint is that include_credentials=True is required for raw credentials, which is a parameter rule rather than usage routing.

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