Skip to main content
Glama

check_hostname_rfc6125_san

Read-onlyIdempotent

Validates target hostnames and IPv4/IPv6 literals against X.509 SubjectAltName DNS/IP entries per RFC 6125, detecting bare-apex and multi-level wildcard mismatches.

Instructions

Validates target hostnames and IPv4/IPv6 literals against X.509 SubjectAltName DNS/IP entries per RFC 6125, catching bare-apex *.example.com and multi-level wildcard traps.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_hostname_rfc6125_san"
  }
}

Input Schema

NameRequiredDescriptionDefault
certPemNoX.509 PEM certificate or bundle whose leaf SubjectAltName extension will be checked.
certPathNoOptional local file path to the X.509 certificate when certPem is omitted.
hostnameNoSingle target hostname or IP literal (e.g. "example.com", "api.v2.example.com", or "10.20.30.40").
hostnamesNoOptional list of multiple target hostnames or IP literals to validate in one call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety and idempotency, but the description adds meaningful behavioral detail by specifying RFC 6125 SAN validation and the wildcard trap cases it catches. It does not disclose result shape or how certPem versus certPath is resolved, which are secondary gaps.

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?

The description is a single front-loaded sentence with no redundant wording. Every phrase contributes to the validation scope or the specific wildcard cases.

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

Completeness3/5

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

The description is reasonably complete given annotations and full schema coverage, but it does not explain the return shape despite there being no output schema. It also does not clarify valid combinations among certPem, certPath, hostname, and hostnames, which matters because no parameters are marked required.

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 the input parameters are already fully documented. The description does not add parameter-level meaning beyond what the schema provides, making the baseline 3 appropriate.

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?

The description states a specific verb and resource: validating target hostnames and IP literals against X.509 SubjectAltName DNS/IP entries per RFC 6125. It also names the specific wildcard failure cases it catches, which distinguishes it from sibling tools focused on chain auditing and SPKI extraction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The validation scope is clear enough to imply when the tool applies, but the description does not explicitly say when to use it instead of auditing a full chain or verifying SPKI/CSR match. It lacks explicit exclusions or routing guidance.

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