Skip to main content
Glama

tls_certificate

Read-only

Inspect the leaf certificate a host serves on a live TLS handshake: subject, issuer, subject-alternative names, validity window and days to expiry, key and signature algorithms, serial, thumbprint, the negotiated TLS protocol/cipher, and the chain with its trust verdict. Complements cert_transparency (historical CT logs) with the certificate presented right now. Makes a benign TLS handshake to the target (no HTTP request); guarded against internal targets.

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": {
      "host": "<host>"
    },
    "name": "tls_certificate"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesHost name or IP, e.g. example.com
portNoTLS port (default 443)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds meaningful behavior: a benign TLS handshake with no HTTP request is made to the target, and it is guarded against internal targets. That tells the agent about network side effects and an SSRF-style safety limit that annotations do not cover. It does not describe timeout or failure behavior, keeping it at 4.

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?

Front-loaded with the verb and resource, then a compact enumeration of returned fields, then two short sentences on differentiation and safety. The long field list is informative rather than wasteful, though it could be trimmed slightly for readability.

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?

There is no output schema, and the description compensates by enumerating the returned certificate and handshake fields, including the chain trust verdict. Combined with the differentiation from cert_transparency and the safety note, an agent has everything needed to decide and invoke 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%, with host and port both documented in the schema, so the schema carries parameter meaning. The description implies the target is host-based and that the connection is TLS, but adds no syntax, format, IP-versus-hostname, or port-override guidance beyond what the schema states. 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 (inspect) and resource (the leaf certificate served on a live TLS handshake) and enumerates exactly what is returned: subject, issuer, SANs, validity window, algorithms, serial, thumbprint, negotiated protocol/cipher, and chain trust verdict. It also names the sibling it differs from, so an agent can distinguish it from cert_transparency without opening either schema.

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 contrasts itself with cert_transparency: historical CT logs versus the certificate presented right now, which gives the agent a clear selection rule between the two closest siblings. It stops short of stating exclusions or preconditions (e.g., what happens on non-TLS ports or failures), so a 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources