東京リージョンで利用可能になったAmazon Bedrock AgentCore Web Search Toolを日本語クエリで試してみた

東京リージョンで利用可能になったAmazon Bedrock AgentCore Web Search Toolを日本語クエリで試してみた

Amazon Bedrock AgentCore Web Search Toolの検索インデックスに、日本語記事がどの程度収録されているかを、DevelopersIOの記事を対象に調べました。
2026.08.22

はじめに

2026年8月19日のAWS What's Newで、Amazon Bedrock AgentCore Web Search Toolのドメインフィルタと公開日フィルタのサポート、および提供リージョンの拡大が発表されました。提供リージョンには、従来のUS East(N. Virginia)に加え、Europe(Ireland)とAsia Pacific(Tokyo)が追加されました。

https://aws.amazon.com/jp/about-aws/whats-new/2026/08/web-search-amazon-bedrock/

Web Search Toolは、MCPクライアントからAgentCore Gatewayを介して利用できる検索ツールです。

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-target-connector-web-search-tool.html

本記事では、日本語を含むクエリでの検索に加え、DevelopersIOの記事のインデックス登録率と新規記事の登録ラグを確認しました。

検証内容

CloudFormationでGatewayとWeb Search Tool用のGatewayTargetを作成し、Pythonで実装したMCPクライアントから検索を実行しました。

検証環境

項目
リージョン ap-northeast-1
Gateway名 web-search-verify-<ランダムサフィックス>
GatewayTarget web-search-tool(コネクタバージョン: 1.1.0)
認証方式 AuthorizerType: AWS_IAM(Cognito/OAuth不要)

環境構築とMCP疎通

CloudFormationで、Gatewayの実行ロールを含むリソース一式を作成しました。主要なリソース定義は次のとおりです。

  WebSearchGateway:
    Type: AWS::BedrockAgentCore::Gateway
    Properties:
      Name: !Ref GatewayName
      Description: Web Search Tool動作検証用のAgentCore Gateway
      RoleArn: !GetAtt GatewayExecutionRole.Arn
      ProtocolType: MCP
      AuthorizerType: AWS_IAM

  WebSearchGatewayTarget:
    Type: AWS::BedrockAgentCore::GatewayTarget
    Properties:
      GatewayIdentifier: !GetAtt WebSearchGateway.GatewayIdentifier
      Name: web-search-tool
      Description: Web Search Tool connector target
      TargetConfiguration:
        Mcp:
          Connector:
            Source:
              ConnectorId: web-search
            Configurations:
              - Name: WebSearch
                ParameterValues: {}
      CredentialProviderConfigurations:
        - CredentialProviderType: GATEWAY_IAM_ROLE

AuthorizerType: AWS_IAMでGatewayを作成し、AssumeRoleで取得した一時クレデンシャルによるSigV4署名で認証しました。次のPythonコードで、Gateway URLにMCPのtools/listリクエストをPOSTしました。

import botocore.session
from botocore.awsrequest import AWSRequest
from botocore.auth import SigV4Auth

session = botocore.session.get_session()
credentials = session.get_credentials()  # 環境変数のAWS_ACCESS_KEY_ID等から取得

request = AWSRequest(
    method="POST",
    url=GATEWAY_URL,
    data=json.dumps(payload).encode("utf-8"),
    headers={"Content-Type": "application/json", "Accept": "application/json, text/event-stream"},
)
SigV4Auth(credentials, "bedrock-agentcore", REGION).add_auth(request)

tools/listを呼び出すと、次のレスポンスが返りました。

{"jsonrpc":"2.0","id":1,"result":{"tools":[{"inputSchema":{"type":"object","properties":{"maxResults":{"description":"Maximum number of results to return. Valid range: 1-25. Defaults to 10.","type":"integer"},"query":{"description":"The search query string","type":"string"}},"required":["query"]},"name":"web-search-tool___WebSearch"}]}}

公開されたツール名はweb-search-tool___WebSearchでした。GatewayTarget名(web-search-tool)と、コネクタの設定名(WebSearch)を___で連結した形式です。

日本語クエリでの検索

日本語を含むクエリで、DevelopersIOの記事を検索できるか試しました。クエリ「2026年7月報告のnginx脆弱性(CVE-2026-42533)をDockerで再現してみた」で返った上位5件を、記事掲載用に整形しました。順位は結果配列の順番から付与し、本文の抜粋はレスポンスの本文を先頭20文字で切り詰めた値です。

{
  "results": [
    {
      "rank": 1,
      "title": "2026年7月報告のnginx脆弱性(CVE-2026-42533)をDockerで再現してみた",
      "url": "https://dev.classmethod.jp/articles/cve-2026-42533-nginx-rce-docker-repro/",
      "publishedDate": "unknown",
      "text_excerpt": "--- 2026年7月報告のnginx脆…"
    },
    {
      "rank": 2,
      "title": "CVE-2026-42533 · My images",
      "url": "https://scout.docker.com/vulnerabilities/id/CVE-2026-42533/my-images",
      "publishedDate": "unknown",
      "text_excerpt": "--- CVE-2026-42533 A…"
    },
    {
      "rank": 3,
      "title": "CVE-2026-42533",
      "url": "https://scout.docker.com/v/CVE-2026-42533?s=debian",
      "publishedDate": "09:03PM, Sunday, July 19 2026, PDT",
      "text_excerpt": "--- CVE-2026-42533 A…"
    },
    {
      "rank": 4,
      "title": "Developers.IO[B!]新着記事・評価",
      "url": "https://b.hatena.ne.jp/entry/s/dev.classmethod.jp/articles/monitor-dx-connection-by-cloudwatch-alarm/",
      "publishedDate": "unknown",
      "text_excerpt": "- 2026年7月報告のnginx脆弱性…"
    },
    {
      "rank": 5,
      "title": "https://nginx.org/",
      "url": "https://nginx.org/",
      "publishedDate": "11:34AM, Friday, August 21 2026, PDT",
      "text_excerpt": "| event_date | 2026-…"
    }
  ]
}

一方、クエリ「CloudFront VPCオリジン障害をInter-Region VPCピアリングで迂回してみた」で返った上位5件は次のとおりです。

{
  "results": [
    {
      "rank": 1,
      "title": "I tried bypassing CloudFront VPC origin failures using Inter-Region VPC peering",
      "url": "https://dev.classmethod.jp/en/articles/cloudfront-vpc-origin-failure-inter-region-vpc-peering-bypass/",
      "publishedDate": "05:00PM, Wednesday, July 15 2026, PDT",
      "text_excerpt": "--- I tried bypassin…"
    },
    {
      "rank": 2,
      "title": "CloudFront VPC オリジンで実現するマルチリージョンのアクティブ/アクティブ構成",
      "url": "https://aws.amazon.com/jp/blogs/news/multi-region-active-active-architecture-with-cloudfront-vpc-origins/",
      "publishedDate": "04:00PM, Wednesday, January 21 2026, PST",
      "text_excerpt": "Amazon Web Services …"
    },
    {
      "rank": 3,
      "title": "CloudFront オリジンフェイルオーバーを使用して高可用性を最適化する",
      "url": "https://docs.aws.amazon.com/ja_jp/AmazonCloudFront/latest/DeveloperGuide/high_availability_origin_failover.html",
      "publishedDate": "unknown",
      "text_excerpt": "CloudFront オリジンフェイルオ…"
    },
    {
      "rank": 4,
      "title": "Amazon CloudFront VPC オリジンの紹介: アプリケーションのセキュリティ強化と運用の合理化",
      "url": "https://aws.amazon.com/jp/blogs/news/introducing-amazon-cloudfront-vpc-origins-enhanced-security-and-streamlined-operations-for-your-applications/",
      "publishedDate": "04:00PM, Saturday, November 23 2024, PST",
      "text_excerpt": "Amazon CloudFront 仮想…"
    },
    {
      "rank": 5,
      "title": "CloudFront Distribution Patterns for Multi-Region Failover",
      "url": "https://blog.blazingcdn.com/en-us/cloudfront-distribution-patterns-multi-region-failover",
      "publishedDate": "03:33PM, Thursday, May 28 2026, PDT",
      "text_excerpt": "CloudFront Multi-Reg…"
    }
  ]
}

1位は対象記事の自動翻訳英語版でした。日本語タイトルをそのまま指定した今回の検索でも、英語版が表示されました。

インデックス網羅率

日本語を含むクエリで検索できることを確認したうえで、対象を広げ、DevelopersIOの記事が検索インデックスにどの程度収録されているかを調べました。Google Search Consoleでクリック数上位だった99件の記事URLをクエリに指定し、maxResults=5で検索しています。検索結果に対象URL、または同じ記事の別言語版URL(/en/articles/など)が含まれる場合をヒットと判定しました。

ランク帯 ヒット数/件数 ヒット率
1-20位 17/20 85%
21-80位 54/60 90%
81-99位 13/19 68%
合計 84/99 85%

クリック数上位の記事全体では、85%(84/99)がAgentCore Web Search Toolの検索結果に含まれました。81〜99位のグループでは68%となり、ほかのグループより低い結果でした。ただし、対象はクリック数が多く、公開から十分に時間が経過した記事です。記事の人気度と公開からの経過時間のどちらがヒット率に影響したかは、このデータだけでは判断できません。

ヒットしなかった15件では、対象記事の英語版URLや同じ著者・トピックの類似記事が1位に表示されるケースが目立ちました。

新規記事の反映ラグ

DevelopersIOのサイトマップから直近8〜9日間に公開された39件の記事を抽出し、公開からの経過時間ごとにヒット率を集計しました。

経過時間 ヒット数/件数 ヒット率
0-24h 0/1 0%
24-48h 1/4 25%
48-72h 1/5 20%
72-96h 2/6 33%
96-120h 2/3 67%
120-144h 4/5 80%
144-168h 4/5 80%
168-192h 5/6 83%
192-216h 3/4 75%

今回のサンプルでは、公開から24時間以内の記事はヒットしませんでした。ヒット率は時間の経過とともに上昇し、公開から4〜5日後には60〜80%台となりました。

Connector 1.2.0へのアップデートとフィルタの動作確認

検証環境で使用したコネクタのバージョンは1.1.0でしたが、AWS CLIのupdate-gateway-targetで1.2.0へ更新できました。

aws bedrock-agentcore-control update-gateway-target \
  --gateway-identifier <Gateway ID> \
  --target-id <Target ID> \
  --name web-search-tool \
  --target-configuration '{"mcp":{"connector":{"source":{"connectorId":"web-search","version":"1.2.0"},"configurations":[{"name":"WebSearch","parameterValues":{}}]}}}' \
  --credential-provider-configurations '[{"credentialProviderType":"GATEWAY_IAM_ROLE"}]'

更新後は、ツール定義のレスポンスにドメインフィルタと公開日フィルタ用のパラメータが追加されていました。

{"filters":{"description":"Per-call runtime filters set by the caller for this specific request. Contains an optional runtime domainFilter (merged with the admin-level domainFilter) and an optional publishedDateFilter.","type":"object","properties":{"domainFilter":{"description":"Per-call domain filter. Include and exclude lists each hold up to 100 domains. Merged with the admin-level domainFilter.","type":"object","properties":{"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}},"publishedDateFilter":{"description":"Per-call published-date filter. Both bounds inclusive, UTC, ISO-8601. Applies to web results only.","type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}}}}}}

ドメインフィルタにdev.classmethod.jpを指定して検索しました。返された5件は、英語版の/en/articles/を含め、すべて同ドメインの記事でした。

{"filters": {"domainFilter": {"include": ["dev.classmethod.jp"]}}}

公開日フィルタに日付範囲を指定した場合も、検索結果の公開日は指定範囲内に収まっていました。

{"filters": {"publishedDateFilter": {"from": "2026-08-01", "to": "2026-08-22"}}}

料金

記事執筆時点(2026年8月)のAgentCoreの料金ページによると、Web Search Toolの検索料金は1回あたり$0.007です。Gateway側のツール呼び出し(InvokeTool)には、別途1,000回あたり$0.005がかかります。日本語クエリの動作確認1回、網羅率調査99回、新規記事調査39回の計139回を料金試算の対象としました。検索料金は139回 × $0.007 = $0.973、InvokeTool料金は139回 × $0.005 / 1,000 = 約$0.0007で、合計は約$0.97です。

まとめ

東京リージョンで利用可能になったAmazon Bedrock AgentCore Web Search Toolで、日本語を含むクエリによる検索を試しました。DevelopersIOの記事は、同一記事の英語版を含め、高い割合で検索結果に表示されることを確認できました。

AgentCoreに日本語のウェブ検索を組み込む際の選択肢の一つとして、ぜひお試しください。

今回サポートされたドメイン・公開日フィルタに加え、今後は言語などの条件で検索結果を絞り込めるフィルタの拡充が期待されます。また、コンテンツ提供者が検索インデックスの登録状況を確認・管理できる、Search Console相当の仕組みの提供にも期待したいと思います。

参考リンク

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-target-connector-versions.html

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway-add-target-cli.html

https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html

この記事をシェアする

AWSのお困り事はクラスメソッドへ

関連記事