Skip to main content
Glama

tgw_route_lookup

Looks up the longest-prefix match in an AWS Transit Gateway route table for a destination CIDR to show which route handles traffic and aid connectivity troubleshooting.

Instructions

Longest-prefix match in a Transit Gateway route table.

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": {
      "tgw_route_table_id": "<tgw_route_table_id>",
      "destination_cidr": "<destination_cidr>"
    },
    "name": "tgw_route_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
destination_cidrYes
tgw_route_table_idYes

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 supplied, so the description carries the full behavioral burden, and it says nothing about read-only semantics, required IAM permissions, or whether a non-matching CIDR returns an empty result or an error. An output schema exists, which removes the need to describe return values, but the description adds essentially nothing beyond the matching algorithm.

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?

One short sentence with no wasted words and the key concept front-loaded. It is tersely efficient but arguably under-specified rather than genuinely concise, since the pruning has removed information an agent needs.

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 simple two-parameter tool the description is still too thin: no annotations, 0% schema coverage, and no statement of usage conditions or output behavior. The existence of an output schema covers return values, but the call-time requirements remain undocumented.

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% for both parameters, so the description must compensate and does not. Parameter names are largely self-explanatory, but there is no guidance on CIDR notation, whether a full prefix length is required, or how tgw_route_table_id should be formatted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase names a specific networking concept (longest-prefix match) scoped to a Transit Gateway route table, which distinguishes it from siblings like query_flow_logs or run_reachability_analysis. However, it is a noun phrase rather than a verb+resource statement, so an agent must infer that the tool looks up which route would be selected for a given destination.

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 prerequisites, and no mention of alternatives such as explain_connectivity or describe_path which could plausibly answer related questions. The agent must decide on its own when this lookup is the right call.

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