Skip to main content
Glama
YawLabs

@yawlabs/aws-mcp

Official
by YawLabs

aws_paginate

Read-onlyIdempotent

Retrieve one page from paginated AWS list/describe operations, returning a nextToken for continuation. Helps avoid stdout size limits on large result sets.

Instructions

Fetch one page of a paginated AWS list/describe operation. Identical to aws_call plus maxItems (page size) and startingToken (resume cursor). Returns the parsed response, a nextToken (null when the list is exhausted), and hasMore. Call again with the returned nextToken as startingToken until hasMore is false. Use this instead of aws_call for operations that might exceed the 5 MB stdout cap: list-objects-v2, describe-instances, describe-log-streams, list-roles, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYesAWS service in kebab-case: 's3api', 'ec2', 'iam', 'logs', etc.
operationYesPaginated operation: 'list-objects-v2', 'describe-instances', 'list-roles', etc.
paramsNoOperation parameters (PascalCase keys) passed via --cli-input-json.
queryNoJMESPath expression to extract fields from each page (--query). The query is wrapped server-side as {NextToken, items: <query>} so pagination still works even when the projection drops NextToken; the handler unwraps `items` before returning.
maxItemsNoItems per page. Default 100. Lower this if hitting the 5 MB output cap.
startingTokenNoResume cursor from the previous call's `nextToken`. Omit for the first page.
profileNoOverride session profile for this call.
regionNoOverride session region for this call.
timeoutMsNoTimeout in milliseconds. Default 60000.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description adds behavioral details: returns nextToken and hasMore, explains the 5 MB cap, and describes the pagination loop. No contradiction with annotations. Slightly more context would elevate to 5, but already informative.

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?

Description is a single paragraph with front-loaded purpose. Every sentence adds value: purpose, relationship to sibling, return format, pagination loop, and usage guideline. No filler or redundancy.

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?

Despite no output schema and multiple parameters, the description covers the essential pagination pattern, return values, and reasoning for using this tool over aws_call. The agent can fully understand how to use the tool correctly.

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 description coverage is 100%, so the description adds little beyond what the schema already provides. It mentions maxItems and startingToken in context, but this is more about usage than adding new semantic meaning. Baseline 3 is appropriate.

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?

Description clearly states 'Fetch one page of a paginated AWS list/describe operation' and explicitly distinguishes from sibling aws_call by noting the added parameters (maxItems, startingToken) and the pagination loop. Specific operation examples (list-objects-v2, describe-instances) further clarify purpose.

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

Usage Guidelines5/5

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

Explicitly advises using this tool instead of aws_call for operations that might exceed the 5 MB stdout cap and lists concrete examples. Describes the pagination pattern with nextToken and hasMore, telling the agent to call again until hasMore is false. Provides clear when-to-use and when-not-to-use guidance.

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