Skip to main content
Glama

browse_s3_logs

Navigate S3 log directories to locate and access logs for troubleshooting EMR Serverless jobs and Airflow pipelines across development, test, and production environments.

Instructions

Browse the S3 log directory structure. Navigate into folders to find logs.

Args: prefix: S3 prefix/path to browse (default: EMR_LOG_PREFIX from config, e.g. 'spark-logs/'). Use the output to navigate deeper, e.g. 'spark-logs/ttdgeo_metadata_SE/'. bucket: S3 bucket (default from config). max_items: Max items to show (default 50). env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.

Returns a directory listing of the S3 prefix showing folders and files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prefixNo
bucketNo
max_itemsNo
envNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden and does well: it discloses the tool's purpose (directory listing), default values (prefix, bucket, max_items), and a critical behavioral constraint (must ask user for env if unspecified). It doesn't mention rate limits or auth needs, but covers core behavior adequately.

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?

Well-structured with a purpose statement, parameter details in bullet-like format, and a returns statement. Every sentence adds value, though the 'IMPORTANT' note could be integrated more smoothly. Slightly verbose but efficient overall.

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 4 parameters with 0% schema coverage and no annotations, the description provides complete context: purpose, parameter details with defaults and examples, usage rules, and output explanation. With an output schema present, it doesn't need to detail return values, making this comprehensive.

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

Parameters5/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 fully. It does: each parameter (prefix, bucket, max_items, env) is explained with semantics, defaults, examples (e.g., 'spark-logs/'), and usage guidance (e.g., 'Ask the user which environment'). This adds significant value beyond the bare schema.

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 the specific action ('browse', 'navigate') and resource ('S3 log directory structure', 'folders to find logs'). It distinguishes from siblings like 'browse_s3' (general S3 browsing) and 'list_s3_recursive' (recursive listing) by focusing on log directories with navigation guidance.

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?

Explicit guidance is provided: 'Use the output to navigate deeper' explains iterative usage, and 'IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified' gives clear when-to-use rules. It implicitly contrasts with 'browse_s3' by specifying log-focused browsing.

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/SrujanReddyKallu2024/MCP'

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