Skip to main content
Glama

aws_get_caller_identity

Retrieve current AWS caller identity details—account ID, IAM ARN, and user ID—via STS, optionally for a specified profile or the MCP server's selected profile.

Instructions

Get current AWS caller identity (Account ID, IAM Role/User ARN, User ID) using STS.

Args: profile_name: Optional profile name; otherwise uses the MCP server's selected profile.

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_caller_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
profile_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load; it does disclose that the call is a read against STS and that an omitted profile falls back to the MCP server's selected profile. It says nothing about credential requirements, what happens when no credentials/profile are available, or whether any state is modified, leaving meaningful gaps for a zero-annotation tool.

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?

Front-loaded with the operation and its return values, then a compact Args block for the single parameter. The "Args:" formatting is mild boilerplate but every sentence carries information and nothing is padded.

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?

The tool is simple (one optional parameter) and an output schema exists, so return values need not be explained beyond the brief field list. The remaining shortfall is behavioral: no guidance on failure modes when credentials or profiles are absent.

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% — the schema only carries a title and null default — so the description must supply the meaning, and it does: the parameter is an optional profile name whose absence selects the MCP server's configured profile. That is the key semantic an agent needs; only format examples or precedence details are missing.

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 current AWS caller identity") and enumerates the returned fields (Account ID, IAM Role/User ARN, User ID) plus the underlying mechanism (STS). It does not differentiate itself from near-neighbours like aws_get_session_env or aws_connection_diagnostics, so it stops short of a 5.

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?

The description never says when to reach for this tool versus aws_ensure_credentials, aws_get_session_env, or aws_connection_diagnostics, nor does it state prerequisites such as having a configured profile. Usage is only inferable from the tool's name and the returned-field list.

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