Skip to main content
Glama
AIops-tools

proxy-aiops

cert_expiry_sweep

Inspect TLS certificate expiry for proxy targets, categorize by days-to-expiry (expired, critical, warning, ok), and receive renewal hints to prevent downtime.

Instructions

[READ] TLS cert inventory bucketed by days-to-expiry + renewal hints.

The flagship cert sweep for traefik/caddy targets: collects the TLS domain inventory, live-probes each domain's served leaf cert (bounded handshake), and buckets by expiry: expired / critical / warning / ok — with a platform-specific renewal hint (ACME resolver / storage checks). Pass 'certs' for pure analysis over {domain, daysToExpiry} rows. haproxy targets return the support matrix's teaching note.

Args: warn_days: Days-to-expiry at/below which a cert is a warning (default 30). critical_days: Days at/below which a cert is critical (default 7). port: TLS port to probe (default 443). certs: Injected rows {domain, daysToExpiry, notAfter?}; skips pull+probe. target: Proxy target name from config; omit for the default.

Returns dict: {certsEvaluated, expired, critical, warning, ok, unknown, certificates (soonest first), thresholds, renewalHint, note}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
certsNo
targetNo
warn_daysNo
critical_daysNo
Behavior4/5

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

With no annotations provided, the description takes on the full transparency burden. It discloses that the tool live-probes domains with a bounded handshake, performs storage/ACME checks, and returns a detailed dictionary with specific keys. This goes well beyond a typical description, though it stops short of mentioning potential network side effects or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a summary, Args, and Returns sections. It is fairly long but every sentence adds value, and the front-loaded summary gives a quick grasp. Minor verbosity in the haproxy note could be trimmed, but it is not wasted space.

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 tool with no output schema and no annotations, the description is remarkably complete. It documents all parameters, return keys (certsEvaluated, expired, critical, warning, ok, unknown, certificates, thresholds, renewalHint, note), special modes, and platform-specific behaviors. An agent has everything needed to invoke and interpret results.

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

Parameters5/5

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

The schema has zero per-property descriptions, but the description's Args section fully explains every parameter (warn_days, critical_days, port, certs, target) with defaults and semantics. This completely compensates for the schema's lack of detail.

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 clearly states the tool's function: collecting TLS domain inventory, live-probing served certificates, and bucketing by expiry. It distinguishes itself from siblings like list_certificates by emphasizing it's the 'flagship cert sweep' with renewal hints and expiry thresholds.

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?

The description provides clear context on when to use this tool, including intended targets (traefik/caddy/haproxy), a 'certs' mode for pure analysis, and a note about haproxy's teaching note. However, it does not explicitly contrast with list_certificates or state when not to use it, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Proxy-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server