Searches AWS CDK documentation knowledge bases and returns relevant excerpts. ## Usage This tool searches across multiple CDK documentation sources to find relevant information about CDK constructs, APIs, and implementation patterns. Always use this tool when you need to write or modify CDK cod...
Accepts freeform code/query input (query)
Part of the AWS Infrastructure as Code MCP Server MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.
AI agents call search_cdk_documentation to retrieve information from AWS Infrastructure as Code MCP Server without modifying any data. This is common in research, monitoring, and reporting workflows where the agent needs context before taking action. Because read operations don't change state, they are generally safe to allow without restrictions -- but you may still want rate limits to control API costs.
Even though search_cdk_documentation only reads data, uncontrolled read access can leak sensitive information or rack up API costs. An agent caught in a retry loop could make thousands of calls per minute. A rate limit gives you a safety net without blocking legitimate use.
Read-only tools are safe to allow by default. No rate limit needed unless you want to control costs.
tools:
search_cdk_documentation:
rules:
- action: allow See the full AWS Infrastructure as Code MCP Server policy for all 8 tools.
Agents calling read-class tools like search_cdk_documentation have been implicated in these attack patterns. Read the full case and prevention policy for each:
Other tools in the Read risk category across the catalogue. The same policy patterns (rate-limit, allow) apply to each.
Searches AWS CDK documentation knowledge bases and returns relevant excerpts. ## Usage This tool searches across multiple CDK documentation sources to find relevant information about CDK constructs, APIs, and implementation patterns. Always use this tool when you need to write or modify CDK code. ## When to Use - Write CDK code or modify any construct - Find specific information about CDK constructs and APIs - Get implementation guidance from official documentation - Look up syntax and examples for CDK patterns - Research best practices and architectural guidelines - Find answers to specific technical questions about CDK - Validate infrastructure code against security best practices ## Documentation Sources This tool searches across: - AWS CDK API Reference - AWS CDK Best Practices Guide - AWS CDK Code Samples & Patterns - CDK-NAG validation rules and security checks ## Search Tips - Use specific construct names (e.g., "aws-lambda.Function", "aws-s3.Bucket") - Include service names for better targeting (e.g., "S3 AND encryption") - Use boolean operators: "DynamoDB AND table", "Lambda OR Function" - Search for specific properties: "bucket encryption", "lambda environment variables" - Include version-specific terms when needed: "CDK v2", "aws-cdk-lib" ## Result Interpretation Returns JSON with: - knowledge_response: Details of the response - results: Array with single result containing: - rank: Search relevance ranking (1 = most relevant, higher is less relevant) - title: Document title or filename - url: Source URL of the document - context: Full or paginated document content - next_step_guidance: If present, suggested next actions to take for answering user query Use rank to prioritize results. Check error field first - if not null, the search failed. If a content snippet is relevant to your query but doesn't show all necessary information, use `read_iac_documentation_page` with the URL to get the complete content. Args: query: Search query for CDK documentation (required) Returns: List of search results with URLs, titles, and context snippets. It is categorised as a Read tool in the AWS Infrastructure as Code MCP Server MCP Server, which means it retrieves data without modifying state.
Add a rule in your Intercept YAML policy under the tools section for search_cdk_documentation. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the AWS Infrastructure as Code MCP Server MCP server.
search_cdk_documentation is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the search_cdk_documentation rule in your Intercept policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the Intercept policy for search_cdk_documentation. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
search_cdk_documentation is provided by the AWS Infrastructure as Code MCP Server MCP server (awslabs.aws-iac-mcp-server). Intercept sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Deterministic policy on every MCP tool call. Per-identity grants. Full audit log.