Skip to main content
Glama

Get router

get_router
Read-onlyIdempotent

Retrieve an OpenStack router by ID to inspect status, external gateway, static routes, HA and distributed flags, with project-scoped visibility and not-found handling.

Instructions

Get one router by ID: status, external gateway, static routes, HA and distributed flags.

Use list_router_interfaces for its internal subnets. Returns not_found if the router is not visible to the selected project.

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": {
      "router_id": "<router_id>"
    },
    "name": "get_router"
  }
}

Input Schema

NameRequiredDescriptionDefault
router_idYesRouter ID, as returned by list_routers.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.

Output Schema

NameRequiredDescriptionDefault
idYes
nameNo
is_haNo
routesNo
statusNo
project_idNo
descriptionNo
is_distributedNo
is_admin_state_upNo
external_gateway_infoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / router_id / description
      Added value: +"Router ID, as returned by list_routers."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact: a not_found result when the router isn't visible to the selected project, which implies project-scoped visibility. No further detail on error shapes or latency, but with an output schema the return payload needs no explanation.

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?

Three short sentences, front-loaded with the purpose and returned fields, then the sibling pointer, then the failure mode. Every sentence earns its place with no redundancy.

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

Completeness5/5

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

For a two-parameter read tool with full schema coverage, rich annotations, and an output schema, the description covers purpose, the correct sibling for related data, and the primary error condition. Nothing an agent needs to call it correctly is missing.

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 100%, so both router_id and project_id are already documented with their sources (list_routers, get_scope). The phrase 'selected project' loosely ties to project_id but adds no format or constraint detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Get one router by ID') and enumerates the fields it surfaces (status, external gateway, static routes, HA and distributed flags). This cleanly distinguishes it from list_routers (bulk listing) and list_router_interfaces (subnets).

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?

Explicitly routes the agent to list_router_interfaces for internal subnets, and the schema's router_id description references list_routers as the ID source. It lacks an explicit 'do not use when...' exclusion, but the retrieval-by-ID context is unambiguous.

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