Skip to main content
Glama

Get security group

get_security_group
Read-onlyIdempotent

Retrieve a single security group by ID with all rules—direction, protocol, ports, and remote targets. Use list_security_groups to find the ID by name first.

Instructions

Get one security group by ID with all its rules: direction, protocol, ports, remote.

Use list_security_groups to find IDs by name. Returns not_found if the group 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": {
      "security_group_id": "<security_group_id>"
    },
    "name": "get_security_group"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
idYes
nameNo
statefulNo
project_idNo
descriptionNo
security_group_rulesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / security_group_id / description
      Added value: +"Security group ID, as returned by list_security_groups."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description adds real behavior beyond them: the response includes the full rule set, and lookups fail with not_found when the group is not visible to the selected project, which hints at project-scoped access semantics.

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?

Two short sentences, front-loaded with the core action and payload, followed by ID-resolution guidance and the error condition. No redundant or filler wording.

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?

An output schema exists, so return-value detail is not required, yet the description still previews the rule fields. Combined with the ID-resolution hint and the not_found behavior, an agent has everything needed to invoke this correctly.

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 parameters are already documented in the schema, including project_id's default-project behavior. The description only lightly reinforces project scoping ('visible to the selected project') and adds no ID format or syntax detail beyond the schema.

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 security group by ID') plus the payload scope ('with all its rules: direction, protocol, ports, remote'). This is clearly distinguishable from the sibling list_security_groups, which returns collections rather than a single group with rules.

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_security_groups to resolve a name into an ID, which is the main ambiguity for this tool. It also names the not_found condition tied to project visibility, though it does not state explicit when-not-to-use cases beyond that.

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