Skip to main content
Glama
aws-samples

AWS Cost Explorer MCP Server

Official
by aws-samples

get_bedrock_hourly_usage_stats

Retrieve hourly AWS Bedrock usage statistics with detailed breakdowns by specifying days, region, and log group.

Instructions

Get hourly usage statistics with detailed breakdowns.

Args:
    params: Parameters specifying the number of days to look back and region

Returns:
    str: Formatted string representation of hourly usage statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes
Behavior2/5

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

No annotations exist, so the description carries full burden. It only states it returns a formatted string, with no mention of side effects, permissions, rate limits, or other behavioral traits. The 'detailed breakdowns' is vague.

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?

The description is concise with a single sentence plus structured Args/Returns. No redundant information. The format is clear and front-loaded.

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

Completeness3/5

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

For a tool with one parameter object (three sub-properties) and no output schema, the description provides minimal context. It specifies the return type as a string but not the content format. The 'detailed breakdowns' hint is insufficient for an agent to fully understand the output.

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 0% for the top-level 'params' property, so description must compensate. It mentions 'number of days to look back and region', which partially maps to the sub-properties, but omits 'log_group_name'. The summary adds some context but incomplete.

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?

The description clearly states it retrieves hourly usage statistics with detailed breakdowns, matching the tool name. It distinguishes from 'get_bedrock_daily_usage_stats' via the 'hourly' qualifier, but does not differentiate from 'get_detailed_breakdown_by_day' or other siblings.

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?

No guidance is provided on when to use this tool versus alternatives like 'get_bedrock_daily_usage_stats' or 'get_detailed_breakdown_by_day'. No usage conditions or exclusions are mentioned.

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/aws-samples/sample-cloud-spend-mcp-server'

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