Skip to main content
Glama

query_flow_logs

Filters VPC Flow Logs in a specified log group by 5-tuple source/destination IP and port plus action to diagnose connectivity and identify blocked traffic.

Instructions

Query VPC Flow Logs for a 5-tuple filter.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "log_group": "<log_group>"
    },
    "name": "query_flow_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo
dst_addrNo
dst_portNo
src_addrNo
log_groupYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about permissions needed to read the log group, time-range defaults, result limits, pagination, or cost/latency of scanning logs. 'Query' weakly implies a read-only operation, but that is the only behavioral signal present.

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 single sentence is front-loaded and free of filler, but it is terse to the point of under-specification rather than genuinely concise. The space saved is not reinvested in any of the missing filter or prerequisite information.

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?

For a five-parameter log-query tool with zero schema coverage and no annotations, the description should cover time range, limits, required log_group, and filter semantics. The presence of an output schema excuses it from describing return values, but the input-side gaps remain substantial.

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

Parameters1/5

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

Schema description coverage is 0% across five parameters, so the description must compensate and does not: it never explains that log_group is required, what values 'action' accepts, or whether address fields take CIDR or single IPs. Worse, the '5-tuple' framing implies protocol and source-port filters that do not exist in the schema, creating a misleading expectation.

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?

Names a specific verb and resource ('Query VPC Flow Logs') and scopes it to a '5-tuple filter', which is enough for an agent to distinguish it from sibling analysis tools like run_reachability_analysis or explain_connectivity. It stops short of explicitly contrasting with those siblings, so it is clear but not fully differentiated.

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?

There is no when-to-use guidance, no exclusions, and no mention of alternatives such as describe_path or run_reachability_analysis. An agent must infer from the tool name alone whether log querying is the right step versus an active reachability check.

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