Skip to main content
Glama
YawLabs

@yawlabs/aws-mcp

Official
by YawLabs

aws_refresh_if_expiring_soon

Checks cached AWS SSO token expiry and automatically refreshes if fewer than thresholdMinutes remain, returning verification URL and code to avoid mid-session expiry.

Instructions

Proactive SSO token check. If the cached token has fewer than thresholdMinutes left (default 10), this kicks off aws_login_start and returns the verification URL + code in one round-trip. If plenty of time remains, returns status: 'ok' with the minutes left. Use at the start of a multi-step AWS workflow to avoid mid-session expiry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thresholdMinutesNoTrigger refresh when the token has fewer than this many minutes left. Default 10.
profileNoAWS profile configured for SSO. Defaults to $AWS_PROFILE or 'default'.
Behavior5/5

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

The description fully discloses the tool's behavior: it checks token expiry and may trigger aws_login_start if expiring. This matches annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) and adds context about the threshold and return behavior.

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 sentences with no wasted words. Each sentence serves a purpose: stating the tool's role, explaining the two outcomes, and providing usage guidance.

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

Completeness5/5

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

Given the simple tool with 2 optional parameters and no output schema, the description covers purpose, usage, parameter defaults, and return behavior. It is complete for an AI agent to decide when and how to use it.

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 100%, so baseline is 3. The description adds value by explaining the meaning of thresholdMinutes (default 10) and profile (defaults to AWS_PROFILE or 'default'), and how they affect the tool's behavior.

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

Purpose5/5

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

The description clearly states it performs a proactive SSO token check and either refreshes the token or returns an OK status. It specifies the verb 'Proactive SSO token check' and distinguishes itself from sibling AWS tools by focusing on token expiration.

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

Usage Guidelines4/5

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

Explicitly says 'Use at the start of a multi-step AWS workflow to avoid mid-session expiry', providing clear context for when to use. It does not explicitly mention when not to use, but the guidance is sufficient for an AI agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YawLabs/aws-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server