Skip to main content
Glama
prashantgupta123

AWS FinOps MCP Server

find_unused_target_groups

Identify AWS target groups that are unused by detecting those unattached to load balancers, lacking registered targets, or showing no traffic over a specified period.

Instructions

Find target groups with no registered targets or no traffic.

This function identifies target groups that are:
1. Not attached to any load balancer, OR
2. Have no registered targets, OR
3. Have registered targets but no traffic in the specified period

Args:
    region_name: AWS region name
    period: Lookback period in days for traffic check (default: 7)
    max_results: Maximum results to return (default: 100)
    profile_name: AWS profile name (optional)
    role_arn: IAM role ARN to assume (optional)
    access_key: AWS access key ID (optional)
    secret_access_key: AWS secret access key (optional)
    session_token: AWS session token for temporary credentials (optional)

Returns:
    Dictionary with unused target groups

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
region_nameNous-east-1
periodNo
max_resultsNo
profile_nameNo
role_arnNo
access_keyNo
secret_access_keyNo
session_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: it's a read-only operation (implied by 'find' and 'identifies'), specifies criteria for 'unused', mentions a lookback period for traffic checks, and notes optional AWS credential parameters. However, it doesn't detail rate limits, pagination, or error handling, leaving some gaps.

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?

The description is well-structured and front-loaded with the core purpose, followed by detailed criteria, parameter explanations, and return value. Every sentence adds value without redundancy, making it efficient and easy to parse for an AI agent.

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?

Given the tool's moderate complexity (8 parameters, no annotations, but with output schema), the description is largely complete. It explains the purpose, parameters, and return value. The output schema exists, so detailed return format isn't needed. However, it could benefit from more behavioral context like error cases or performance considerations.

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?

The input schema has 0% description coverage, so the description must compensate. It adds meaning for all 8 parameters: explains 'period' as 'lookback period in days for traffic check', 'max_results' as 'maximum results to return', and clarifies optional AWS credential parameters. This significantly enhances understanding beyond the schema's basic titles and defaults.

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 tool's purpose with specific verbs ('find', 'identifies') and resources ('target groups'), and distinguishes it from siblings by specifying the criteria for 'unused' (no registered targets, no traffic, or not attached to load balancers). This is more specific than generic 'find' tools in the sibling list.

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

Usage Guidelines3/5

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

The description implies usage for identifying unused target groups based on specific criteria, but does not explicitly state when to use this tool versus alternatives (e.g., other 'find' tools for target groups like 'find_target_groups_with_high_error_rate'). It provides context but lacks explicit guidance on exclusions or comparisons.

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/prashantgupta123/aws-pillar-mcp-server'

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