Skip to main content
Glama
herrerogusano

AWS Resource MCP

AWS Resource MCP

Локальный MCP-сервер, разработанный на Python, для запроса реальных ресурсов аккаунта AWS в режиме только для чтения.

Статус

Фаза 9 реализована. Сервер сочетает унифицированную инвентаризацию, консервативный анализ активности, явную диагностику, экономический анализ и политики IAM с минимальными привилегиями, сгенерированные на основе реального журнала операций.

Related MCP server: aws-mcp-server

Предполагаемый охват

  • Локальный транспорт MCP через stdio.

  • Основной регион: eu-west-1.

  • Запросы к AWS исключительно на чтение и с минимальными привилегиями.

  • Доступные инструменты: health_check(), listar_recursos_aws(), analizar_actividad_recursos(), diagnosticar_cobertura_aws(), analizar_riesgo_costes(), revisar_free_tier() и consultar_costes_aws().

  • Cost Explorer заблокирован до получения эфемерного согласия на точный запрос.

  • Без развёртывания в AWS и без CI/CD.

Надёжность

Фаза 10 включает локальные тесты интеграции, контракта, безопасности, производительности и протокола MCP. Инвентаризация также применяет AWS_MCP_MAX_REQUESTS_PER_TOOL (250 по умолчанию) перед каждым вызовом SDK; при исчерпании лимита сохраняет результат и возвращает partial_request_budget_exhausted.

Непрерывная интеграция выполняет при каждом pull request форматирование, lint, компиляцию, детерминированную валидацию IAM и локальные тесты. Она не настраивает учётные данные AWS и не выполняет операции AWS.

Использование с Codex

Codex — основной клиент. Используйте точку входа пакета uv run aws-resource-mcp через stdio, настройте любой профиль AWS за пределами репозитория и начинайте с вопросов на естественном языке, например: «Какие ресурсы у меня есть в eu-west-1?». Когда ответ — partial_pending_consent, Codex должен объяснить точную операцию и дождаться явного одобрения; он никогда не создаёт постоянное согласие. См. интеграцию с Codex и демо.

Релиз v0.1.0

Первая версия готова к рецензированию: включает защиту только для чтения, эфемерное согласие, интеграцию с Codex и CI. Ознакомьтесь с чек-листом релиза, чтобы проверить её локально и запустить безопасное демо.

Разработка

Проект управляется с помощью uv и Python 3.12 или новее.

Установка зависимостей

uv sync

Запуск сервера

uv run aws-resource-mcp

Для диагностики его также можно запустить как модуль:

uv run python -m aws_resource_mcp.server

Сервер использует stdio: он ожидает, что MCP-клиент будет обмениваться сообщениями через стандартный ввод и вывод. Его можно открыть с помощью MCP Inspector через инструменты, включённые в SDK:

uv run mcp dev src/aws_resource_mcp/server.py

Запуск тестов

uv run pytest

Генерация и валидация политик IAM

uv run aws-resource-mcp-generate-iam
uv run aws-resource-mcp-generate-iam --check

Генерация выполняется локально, детерминированно и не использует учётные данные. Проект не создаёт и не изменяет роли или политики в AWS. Политики разделяют бесплатные операции, чтения, требующие согласия, и максимальную комбинацию; разрешение IAM никогда не заменяет согласие приложения.

Запуск инвентаризации AWS

Перед реальной диагностикой проверьте, какую личность определит локальная конфигурация:

aws sts get-caller-identity

Затем выполните инвентаризацию в регионе по умолчанию eu-west-1:

uv run python -m aws_resource_mcp.aws.inventory

Регион и общий профиль необязательны:

uv run python -m aws_resource_mcp.aws.inventory --region eu-central-1 --profile example

Ключи не сохраняются в проекте. Boto3 использует стандартную цепочку разрешения учётных данных; если указан AWS_PROFILE или --profile, выбирается только профиль, который уже должен существовать за пределами репозитория.

Инструменты MCP

health_check

health_check(check_aws=True) разделяет локальное состояние здоровья и доступность AWS. Без аргументов выполняет максимум один защищённый вызов STS; с check_aws=false не использует сеть. Возвращает версию, транспорт, зарегистрированные инструменты и адаптеры, регион, экономическую политику и ноль платных операций. Его состояния:

  • ok: сервер и конфигурация действительны; STS ответил, когда это было запрошено.

  • degraded: сервер работает, но отсутствуют учётные данные или STS недоступен.

  • error: безопасная конфигурация или внутренние журналы не могут быть инициализированы.

Личность анонимизируется: сохраняется только общий тип субъекта и, если он существует, замаскированный аккаунт. Не выполняет инвентаризацию, Resource Explorer, адаптеры, CloudTrail или CloudWatch.

listar_recursos_aws

Запрашивает доступную инвентаризацию AWS для локальных учётных данных без изменения ресурсов. Параметры:

  • region: ограничивает поиск регионом; без значения использует всё доступное покрытие.

  • services: фильтрует по сервисам, таким как lambda, s3, ec2 или rds.

  • include_account_id: позволяет опустить ID аккаунта из ответа для упрощения анонимизации.

  • resource_types: фильтрует по динамическим типам, таким как ec2:instance.

  • query: ищет по тексту или имени.

  • all_regions: использует включённые регионы, когда region не указан.

  • include_details: включает специфические метаданные внутри details.

  • include_cost_indicators: включает потенциальные сигналы стоимости без утверждения реальных расходов.

  • confirm_potentially_billable_operations: устаревший параметр, который больше не предоставляет разрешений.

  • include_activity_summary: добавляет краткую сводку, используя только уже полученные поля; не запрашивает CloudTrail или CloudWatch.

  • consent_request_id, consent_action и approved_services: возобновляют или отменяют эфемерный и ограниченный запрос.

  • timeout_seconds: настраиваемый бюджет от 1 до 120 секунд.

Пример аргументов, отправляемых MCP-клиентом:

{
  "region": "eu-west-1",
  "services": ["lambda", "s3"],
  "include_account_id": false,
  "all_regions": true
}

Первый вызов возвращает ресурсы, полученные с помощью разрешённых операций. Если для завершения S3, SQS или SNS требуются операции, подлежащие учёту, возвращается partial_pending_consent, pending_operations и запрос, срок действия которого истекает через пять минут. Эти операции не выполняются до второго явного вызова:

{
  "consent_request_id": "<id devuelto por la primera llamada>",
  "consent_action": "approve",
  "approved_services": ["s3"]
}

Одобрение одноразовое, привязано к исходной личности и охвату и ограничивает операции, регионы и запросы. Обнаружение и обогащение авторизуются отдельно; дополнительная страница требует нового запроса. consent_action: "cancel" не выполняет инвентаризацию AWS.

Состояния различают complete_for_requested_scope, partial_pending_consent, partial_timeout, partial_permission_denied, partial_unavailable, consent_cancelled и error. Пустой список означает только то, что сервис был пуст на момент запроса.

resources, all_resources и resources_by_service представляют одну и ту же дедуплицированную инвентаризацию. Каждый ресурс содержит id, arn, name, service, resource_type, region, account_id, state, created_at, sources, details, cost_indicators и activity. Инструмент не рассчитывает стоимость, не запрашивает Free Tier и не выполняет операций записи.

analizar_actividad_recursos

Анализирует последний известный признак, используя один и тот же журнал и модель для всех ресурсов. Принимает фильтры по services, regions и resource_ids, а также inactive_days, lookback_days, include_administrative_events и настраиваемые лимиты. История CloudTrail ограничена 90 днями и запрашивается по регионам, а не по каждому ресурсу отдельно.

Ответ разделяет last_functional_usage_at, last_administrative_activity_at, last_configuration_change_at и last_state_change_at. best_known_activity_at всегда также указывает тип сигнала. Активное состояние, запрос Describe* или дата изменения не представляются как функциональное использование.

Состояния по ресурсам: active, inactive_candidate, unknown, not_supported или error. Кандидат на неактивность — это лишь элемент для проверки: требуется достаточный возраст, релевантный запрошенный источник и отсутствие недавних противоречивых доказательств. Отсутствие разрешений, недостаточные источники или неоднозначные связи дают unknown, а не ложную уверенность в неактивности.

CloudWatch мог бы предоставить функциональные метрики, но GetMetricData, GetMetricStatistics и ListMetrics зарегистрированы как потенциально платные и заблокированы. include_paid_sources=true только запрашивает структурированное объяснение; это не является согласием и никогда не выполняет эти операции на данном этапе.

diagnosticar_cobertura_aws

Объясняет, что MCP действительно может запрашивать, не перечисляя ресурсы. Принимает фильтры services и regions и позволяет опускать разделы разрешений, активности или экономической политики.

Проверяет STS, включённые регионы, существующие индексы Resource Explorer, журнал и возможности адаптеров, бесплатные источники активности и заблокированные операции. Проверки ограничены пятью регионами за выполнение, одной выборкой CloudTrail и ни одним вызовом CloudWatch.

Состояния покрытия различают available, partial, unavailable, not_configured, permission_denied, blocked_by_cost_policy, not_supported, not_checked и error. Операция, объявленная политикой как разрешённая, не представляется как доказанное разрешение IAM: диагностика не выполняет инвентаризацию сервисов для её проверки.

Пример:

{
  "services": ["ec2", "rds"],
  "regions": ["eu-west-1"],
  "include_activity_sources": true
}

Ограничения указывают на влияние, может ли MCP продолжить работу, отсутствуют ли разрешения, потребует ли их устранение записи и может ли существовать стоимость. Диагностика никогда не выполняет предлагаемое действие.

analizar_riesgo_costes

Приоритизирует ресурсы с помощью индикаторов инвентаризации и, при необходимости, общего конвейера активности. Возвращает none_detected, low, medium, high, critical или unknown, объяснимую оценку и неисполняемые рекомендации. Сигнал не подтверждает расходы, а none_detected не означает нулевую стоимость.

include_free_tier=true добавляет официальные данные Free Tier. include_actual_cost=true только подготавливает согласие для Cost Explorer: запрос не выполняется.

revisar_free_tier

Запрашивает GetFreeTierUsage и GetAccountPlanState — операции, которые AWS документирует как бесплатные. Разделяет месячные лимиты, прогноз, план и кредиты. Может возвращать частичную или неизвестную информацию из-за разрешений, задержки обновления, исчерпания предложения или различий в праве на участие. Не утверждает, что конкретный ресурс бесплатен.

consultar_costes_aws

Подготавливает агрегированный запрос GetCostAndUsage для точного периода и фильтров. Первый вызов выполняет ноль операций AWS и возвращает эфемерный запрос с опубликованной ценой 0,01 USD за запрос по основному представлению. Второй вызов с consent_action="approve" выполняет максимум одну страницу; каждая дополнительная страница требует нового согласия. cancel не вызывает AWS.

Гранулярность может быть MONTHLY или DAILY; end_date является исключающей. Прогноз, детализация по ресурсам, связанные аккаунты и пользовательские billing views не реализованы на данном этапе.

Инвентаризация AWS

Boto3 — официальный SDK AWS для Python. Слой инвентаризации использует:

  • STS GetCallerIdentity для идентификации аккаунта и фактической личности.

  • EC2 DescribeRegions для обнаружения только включённых регионов.

  • Resource Explorer для динамического обнаружения ресурсов и поддерживаемых типов с помощью существующих индексов и представлений.

  • Общий реестр адаптеров для Lambda, S3, EC2/EBS/VPC, RDS/Aurora, DynamoDB, ECS/Fargate, API Gateway, CloudFormation, SQS, SNS, IAM, CloudFront и Route 53.

  • CloudTrail LookupEvents для бесплатной региональной истории событий управления за последние 90 дней.

Lambda и S3 были первыми реализованными сервисами, но больше не сохраняют особых архитектурных путей. Все адаптеры объявляют метаданные, операции Boto3, область действия, типы, детали и индикаторы через один и тот же контракт. Конкретные детали находятся исключительно внутри details.

Результаты дедуплицируются по ARN или, если он отсутствует, по типу, региону и идентификатору/имени. Предпочтителен агрегирующий индекс; при локальных индексах результаты объединяются, а покрытие является частичным. Если Resource Explorer недоступен, выполняются все выбранные адаптеры, поддерживающие обнаружение.

Отсутствие учетных данных или невозможность идентифицировать учетную запись является глобальной ошибкой для инвентаризации, но лишь состоянием degraded для локального здоровья. Диагностика сохраняет свои локальные проверки и безопасно пропускает зависящие от AWS.

Все вызовы Boto3 сначала проходят через центральный реестр. Незарегистрированные операции, операции записи или операции с неизвестной стоимостью блокируются. Режим free-only остается активным на протяжении всего процесса. S3, SQS и SNS могут учитывать запросы: их перечисления представляются как ожидающие, и только точный эфемерный грант позволяет их выполнить. Страж учитывает отдельно уникальные операции и реальные запросы.

Примеры для MCP-клиента: «Какие ресурсы есть в моей учетной записи?», «Перечисли экземпляры EC2 в eu-west-1», «Найди ресурсы с именем web» или «Покажи развернутые типы RDS». Resource Explorer обеспечивает широкое, но не универсальное покрытие.

Документация

Available Tools

7 tools
analizar_actividad_recursosA

Analyze last known AWS resource activity with conservative semantics.

Free service API fields and CloudTrail Event History management events are
combined through the common adapter pipeline. Functional usage,
administrative activity, configuration changes, and state signals remain
separate. Event History is regional, limited to 90 days, and does not
normally include data events such as S3 GetObject, so unknown results are
expected. CloudWatch could improve functional-usage coverage but is always
blocked in this phase: setting ``include_paid_sources`` only requests a
structured explanation and never grants consent or executes a metric call.
The operation is read-only, bounded, and may return partial results.
NameRequiredDescriptionDefault
regionsNo
servicesNo
max_regionsNo
resource_idsNo
inactive_daysNo
lookback_daysNo
max_resourcesNo
timeout_secondsNo
include_paid_sourcesNo
max_events_per_resourceNo
include_administrative_eventsNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A3.6/5.0
Behavior5/5

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

With no annotations provided, the description bears full responsibility for transparency. It does an excellent job: it details the data sources (free API, CloudTrail Event History), the regional and temporal scope (90-day limit), expected unknowns (data events excluded), the non-execution of paid sources, and the bounded, read-only nature. This sets correct expectations for the agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is 6 sentences long and front-loads the purpose. However, it includes technical jargon (e.g., 'common adapter pipeline') that could be simplified. While not excessively long, it is not as concise as it could be; some sentences could be merged or removed without losing essential information.

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 complexity (11 parameters, output schema exists), the description covers the core behavior, data sources, and limitations well. It mentions partial results and the non-execution of paid sources. Since an output schema exists, the description does not need to detail return values. However, it could briefly mention what the output contains (e.g., last activity timestamps per resource) to aid understanding, but this is not a major gap.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 11 parameters with 0% description coverage, meaning the schema provides no textual help. The description only explicitly mentions one parameter (include_paid_sources) and explains its behavior. The other 10 parameters (regions, services, max_regions, resource_ids, inactive_days, lookback_days, max_resources, timeout_seconds, max_events_per_resource, include_administrative_events) are not described. This leaves the agent without guidance on their semantics, which is inadequate.

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 the tool's purpose: 'Analyze last known AWS resource activity with conservative semantics.' It identifies the resource (AWS resources) and action (analyze activity). However, it does not differentiate from sibling tools like listar_recursos_aws or diagnosticar_cobertura_aws, so it loses the highest score.

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 when to use the tool (for analyzing resource activity with free data sources) and provides context about limitations (regional, 90-day, no data events). It explains that include_paid_sources does not grant consent, giving guidance on that parameter. However, it does not explicitly state when NOT to use this tool or suggest alternatives, so the guidance is implied rather than explicit.

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

analizar_riesgo_costesA

Prioritize potential AWS cost risk without treating it as actual spend.

The analysis uses the common inventory model and its cost indicators.
Optional activity is merged through the existing uniform activity tool.
Free Tier data uses the officially free API. ``include_actual_cost=True``
only prepares a separate Cost Explorer consent request; it does not grant
consent or execute a potentially billable operation. Recommendations are
informational and no AWS resource is changed.
NameRequiredDescriptionDefault
regionsNo
servicesNo
period_daysNo
resource_idsNo
max_resourcesNo
include_activityNo
include_free_tierNo
include_actual_costNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description fully explains critical behaviors: it does not change AWS resources, does not grant consent or execute billable operations, uses free API for free tier, and merges activity through existing tools. This provides sufficient transparency.

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 at 5 sentences, with the purpose front-loaded. Each sentence adds distinct value: purpose, model used, activity merging, free tier and include_actual_cost clarification, and non-destructive nature. No unnecessary repetition.

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

Completeness2/5

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

With 8 parameters and 0% schema coverage, the description should compensate by explaining key parameters and output. Only include_actual_cost is addressed. The output schema exists but is not described. The complexity is medium-high, but the description provides insufficient detail for effective tool use.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description only explains the include_actual_cost parameter. The other 7 parameters (regions, services, period_days, etc.) receive no explanation, leaving the agent to infer from names and types. This is insufficient given the low coverage.

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 first sentence clearly states the tool's purpose: 'Prioritize potential AWS cost risk without treating it as actual spend.' It uses a specific verb (prioritize) and resource (cost risk), and distinguishes from sibling tools like consultar_costes_aws which deal with actual spend.

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?

The description implicitly differentiates from siblings by emphasizing risk assessment rather than actual spend. It mentions when include_actual_cost=True is appropriate, but does not explicitly state when to use this tool versus alternatives.

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

consultar_costes_awsA

Prepare or execute one exact, potentially billable Cost Explorer query.

The first call performs no AWS operation. It returns an expiring,
single-use request that states the exact period, filters, operation,
maximum request count, and estimated API charge. Calling again with the
request id and ``consent_action="approve"`` executes at most one
GetCostAndUsage page. A continuation page always needs a new consent.
``cancel`` performs no AWS call. Approval never authorizes another
operation, period, filter, identity, forecast, or resource-level query.
NameRequiredDescriptionDefault
regionsNo
end_dateNo
servicesNo
max_pagesNo
start_dateNo
granularityNoMONTHLY
resource_idsNo
consent_actionNo
group_by_serviceNo
include_forecastNo
consent_request_idNo
include_resource_levelNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A3.8/5.0
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses that the first call is free, execution is billable, approval is single-use, continuation pages need new consent, and it never authorizes other operations. No contradictions.

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?

Description is efficient, explaining the two-step consent flow in three sentences. Could be more structured (e.g., bullet points) but remains clear and concise.

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?

Adequately explains the consent workflow, but leaves parameter details completely unaddressed. With 0% schema coverage and 12 parameters, more parameter context is needed for completeness. Output schema exists but does not help with parameter usage.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and description does not explain any of the 12 parameters (e.g., 'regions', 'start_date', 'consent_action'). It only references abstract concepts like 'period' and 'filters'. Falls short of compensating for missing schema descriptions.

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 the tool prepares or executes a single Cost Explorer query, distinguishing between a preview call and an execution call. However, it does not differentiate from sibling tools like 'diagnosticar_cobertura_aws' or 'listar_recursos_aws'.

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?

Provides explicit workflow guidance: first call for preview, second call with 'consent_action=approve' to execute, and 'cancel' does nothing. Does not mention when to prefer this over alternatives or any prerequisites.

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

diagnosticar_cobertura_awsA

Explain which AWS coverage is reachable and why it may be partial.

This read-only diagnostic checks STS, enabled Regions, existing Resource Explorer indexes, the shared adapter registry, free activity sources, and the central cost policy. It does not inventory resources, create indexes, change IAM, enable Regions, or run CloudWatch. Adapter permissions are reported conservatively because service inventory calls are not executed. Results may be partial and never prove that an unqueried service is empty.

NameRequiredDescriptionDefault
regionsNo
servicesNo
include_cost_policyNo
include_permissionsNo
include_activity_sourcesNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It explicitly states the tool is read-only, lists what it checks, and highlights limitations: adapter permissions reported conservatively, results may be partial, and never prove emptiness. This is comprehensive and transparent, leaving no hidden behaviors.

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 concise and well-structured: a one-sentence purpose follows by a bullet-like list of checks and non-actions, then caveats. Every sentence adds value without fluff. It is front-loaded with the primary purpose. Ideal for quick comprehension.

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 complexity (5 parameters, output schema exists), the description covers the diagnostic scope, limitations, and non-actions well. The output schema explains return values, so that gap is acceptable. However, it omits how parameters influence behavior, which is a notable hole for tool invocation. Overall, mostly complete but missing parameter-behavior links.

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

Parameters2/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 for parameter meanings. However, it does not describe any of the 5 parameters (regions, services, include_cost_policy, include_permissions, include_activity_sources). The general diagnostic scope indirectly relates, but no specific parameter guidance is given. This is a significant gap, resulting in a low score.

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: 'Explain which AWS coverage is reachable and why it may be partial.' It uses specific verbs (explain, checks) and lists concrete resources and checks (STS, enabled Regions, Resource Explorer indexes). This distinguishes it from siblings like listar_recursos_aws (resource listing) or analizar_riesgo_costes (cost risk analysis), providing a unique and precise purpose.

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?

The description provides clear context on when to use the tool by stating it is a read-only diagnostic and listing what it does not do (inventory resources, create indexes, change IAM, etc.). It also includes caveats about partial results. However, it does not explicitly compare to siblings or provide when-not-to-use guidance, so it misses the highest tier.

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

health_checkA

Check local server health and optionally perform one guarded STS call.

The AWS check never runs inventory, adapters, Resource Explorer, CloudTrail, CloudWatch, or any regional scan. Missing credentials degrade AWS access but do not mean the local MCP server is down.

NameRequiredDescriptionDefault
check_awsNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A4/5.0
Behavior4/5

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

Without any annotations, the description carries full burden. It explains that missing credentials degrade AWS access but do not indicate server down, and clarifies the limited scope of the AWS check. The term 'guarded STS call' is somewhat vague but still 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?

Two short paragraphs with no wasted words. The purpose is stated in the first sentence, and additional constraints form a second paragraph. Every sentence adds value.

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?

For a simple tool with one parameter and an existing output schema, the description covers the main point. It could explain what 'local server health' entails or what the output looks like, but the output schema likely provides that.

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?

The schema shows one optional boolean 'check_aws' with 0% description coverage. The description mentions 'optionally perform one guarded STS call' but does not explicitly link this to the parameter. It adds some meaning but could be more direct.

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 starts with 'Check local server health and optionally perform one guarded STS call', which provides a specific verb and resource. It clearly distinguishes from sibling tools like 'diagnosticar_cobertura_aws' by focusing on health rather than AWS-specific diagnostics.

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 lists what the AWS check does NOT do (e.g., no inventory, adapters, regional scans), giving implicit context for when not to use it. However, it does not explicitly name alternative tools for those cases, leaving the agent to infer usage boundaries.

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

listar_recursos_awsA

Discover AWS resources through locally available credentials, read-only.

Runs free read-only discovery first. Operations that AWS can meter as
requests are returned as pending and are not executed. To continue, call
this same tool with the short-lived ``consent_request_id``,
``consent_action="approve"``, and an explicit subset in
``approved_services``. Approval is single-use, identity- and scope-bound,
request-limited, and does not authorize enrichment or extra pagination.
``consent_action="cancel"`` performs no AWS inventory call. The legacy
``confirm_potentially_billable_operations`` flag is retained for signature
compatibility but grants no permission.

Every service uses the same adapter pipeline and normalized resource model.
Coverage can be partial because of pending consent, timeout, permissions,
unavailable APIs, or Resource Explorer configuration. An empty result is
therefore distinct from a service that was not queried. This tool never
writes resources, lists S3 objects, reads queue messages, publishes topics,
calculates actual costs, or guarantees that a metered request is free.
NameRequiredDescriptionDefault
queryNo
regionNo
servicesNo
all_regionsNo
consent_actionNo
resource_typesNo
include_detailsNo
timeout_secondsNo
approved_servicesNo
consent_request_idNo
include_account_idNo
include_cost_indicatorsNo
include_activity_summaryNo
confirm_potentially_billable_operationsNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: read-only nature, consent action details, conditions for partial coverage, and explicit list of operations it never performs. This level of detail is exceptional for transparency.

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 front-loaded with the main purpose and structured into logical paragraphs. While every sentence contributes information, it is somewhat verbose and could be more concise. Overall, it is clear and well-organized.

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 complexity (14 parameters, consent workflow, output schema), the description covers essential aspects: how to initiate discovery, how to handle pending operations, and what limitations exist. It does not detail the output schema (provided separately) but sets realistic expectations about coverage and behavior.

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%, so the description must compensate. It adds value for consent-related parameters (consent_action, approved_services, consent_request_id) by explaining their role in the workflow. However, many parameters (e.g., include_cost_indicators, include_activity_summary) are not described, leaving the agent to rely on property names alone.

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: 'Discover AWS resources through locally available credentials, read-only.' It uses specific verbs and resource, and further distinguishes by detailing what it does not do (e.g., never writes resources, lists S3 objects). This provides clear differentiation from potential sibling tools.

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?

The description explains the two-step consent workflow for billable operations, guiding when to call the tool again. While it doesn't explicitly compare to sibling tools, the context it provides (read-only discovery, consent mechanism) helps the agent determine appropriate usage scenarios.

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

revisar_free_tierA

Review account-plan and Free Tier usage without querying billed costs.

AWS officially documents programmatic Free Tier usage and account-plan monitoring at no cost. This read-only tool uses only GetFreeTierUsage and GetAccountPlanState. It does not call Cost Explorer, prove that a resource is free, or guarantee future eligibility. Usage can be estimated, delayed, absent after a limit is exhausted, or unavailable because of IAM.

NameRequiredDescriptionDefault
servicesNo
max_pagesNo
include_forecastNo

Output Schema

NameRequiredDescription

No output parameters

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It discloses limitations: does not call Cost Explorer, usage can be estimated/delayed/absent, and IAM restrictions. This provides good behavioral context.

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 focused with a clear opening sentence and brief additional details. It could be slightly more concise but is not verbose.

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?

The description covers purpose and limitations but omits parameter details. An output schema exists, so return values are not needed, but the lack of parameter explanation is a gap.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the description does not explain any of the three parameters (services, max_pages, include_forecast). The agent only has parameter names and types, lacking meaning beyond that.

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 reviews account-plan and Free Tier usage without querying billed costs, using specific AWS APIs. It distinguishes itself from sibling tools like consultar_costes_aws by explicitly avoiding Cost Explorer.

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?

The description implies when to use (free tier monitoring, not billed costs) and what it does not do (prove free, guarantee eligibility). It lacks explicit alternatives but context with sibling tools makes it clear.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv0.1.0
    • First observedanalizar_actividad_recursos
    • First observedanalizar_riesgo_costes
    • First observedconsultar_costes_aws
    • First observeddiagnosticar_cobertura_aws
    • First observedhealth_check
    • First observedlistar_recursos_aws
    • First observedrevisar_free_tier

TDQS

A4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: health check, coverage diagnosis, resource listing, activity analysis, cost risk, free tier, and cost queries. No two tools overlap in functionality.

Naming Consistency4/5

All names use snake_case and are descriptive, but there is an inconsistency in language: one tool is in English (health_check) while the rest are in Spanish. This is a minor deviation from a consistent pattern.

Tool Count5/5

Seven tools is a well-scoped set for a server focused on AWS resource discovery and cost analysis. Each tool covers a distinct aspect without being too few or too many.

Completeness4/5

The tool surface covers the main areas of health, coverage, resource discovery, activity, and cost (including free tier and actual cost). Minor gaps like direct resource detail queries are addressed by the generic listing tool, so overall completeness is high.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A stateless Python MCP server packaged as a custom AWS Lambda container image, exposing basic tools like hello, add, and current_time through an API Gateway HTTP API.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    This MCP server provides tools for inspecting AWS cloud infrastructure, including listing S3 buckets, EC2 instances, and fetching CloudWatch logs using your local AWS credentials.
    4 npm
    MIT