Skip to main content
Glama

sts_session_token

Destructive

Retrieve temporary AWS STS session credentials for the caller, optionally MFA-authenticated, with configurable duration and confirmation.

Instructions

Get temporary session credentials for the caller, optionally MFA-authenticated with mfa_serial and mfa_code; needs confirm=true. duration_seconds is 900 to 43,200. The credentials are returned once; with WASABI_MCP_SECRETS_DIR set, they go to a new 0600 file instead and secrets_file gives its path.

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

Input Schema

NameRequiredDescriptionDefault
confirmNo
mfa_codeNo
mfa_serialNo
duration_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantive behavior beyond the annotations: credentials are returned exactly once, and with WASABI_MCP_SECRETS_DIR set they are instead written to a new 0600 file whose path arrives as secrets_file. This is exactly the kind of irreversible, side-effecting detail an agent needs. It does not restate the annotations' destructive/open-world profile, which is acceptable since annotations already declare it.

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 compact sentences front-load the purpose, then the MFA/confirm requirements, then the one-time-credential and secrets-file caveat. No filler, and the most surprising behavior is placed last where it still lands.

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 the return shape needn't be spelled out, and the description still covers the one non-obvious return variant (secrets_file). Conditional-parameter interaction beyond MFA pairing, such as what happens when only one of mfa_serial/mfa_code is supplied, is left unaddressed.

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 coverage is 0%, so the description must compensate, and it does for all four params: confirm must be true, mfa_code pairs with mfa_serial, and duration_seconds is bounded 900–43,200. The MFA pairing and the numeric range are meaning the schema does not carry. Minor gap: it doesn't state what happens if duration_seconds is null.

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: 'Get temporary session credentials for the caller.' The phrase 'for the caller' implicitly separates it from sts_assume_role, but no sibling is named, so the differentiation is only inferable.

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?

Prerequisites are clear (confirm=true, optional MFA via mfa_serial/mfa_code), which is real usage guidance. However, there is no statement of when to choose this over sts_assume_role or any when-not guidance.

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

Deploy Server

Other Tools