Skip to main content
Glama

Domain Risk & Trust Decision

domain_risk_trust_decision
Read-only

Deterministic domain risk/trust evaluation returning ALLOW / REVIEW / BLOCK from observed evidence; external evidence may change between calls. USE WHEN: deciding if a domain is safe for interaction, onboarding, outreach or payment. DO NOT USE for operational inspection of DNS, HTTP/TLS, email posture or AI discovery surfaces; use domain_agent_discovery_check. For email suitability, use email_suitability_decision. Read-only; no domain actions or persistence.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "google.com"
    },
    "name": "domain_risk_trust_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesBare public hostname (e.g., example.com). No protocol, path, query, or fragment. Localhost and IP literals rejected.

Output Schema

NameRequiredDescriptionDefault
aYesObserved DNS A (IPv4) records.
mxYesObserved DNS MX records.
nsYesObserved DNS NS records.
caaYesDNS CAA record evidence.
soaYesDNS SOA record evidence.
spfYesSPF records derived from observed DNS TXT records (v=spf1).
txtYesObserved DNS TXT records.
aaaaYesObserved DNS AAAA (IPv6) records.
cnameYesDNS CNAME record evidence.
dmarcYesDMARC records derived from observed DNS TXT records (v=dmarc1).
domainYesValidated public domain.
signalsYesEvidence source states (DNS, RDAP, TLS, HTTP, threat intel).
decisionYesTrust decision (ALLOW/REVIEW/BLOCK) derived from observed risk, indicator strength, and evidence sufficiency; insufficient evidence may require REVIEW rather than ALLOW.
confidenceYesConfidence in the decision (10-95). Based on evidence completeness and consistency; low confidence may nudge ALLOW to REVIEW.
indicatorsYesObserved risk indicators with different strengths and decision impact; their strength and combination contribute to risk_score and the resulting decision.
risk_levelYesRisk level derived from observed signals.
risk_scoreYesRisk score from 0 to 100.
diagnosticsYesDeterministic missing-record diagnostics.
threat_evidenceYesStructured threat-intelligence evidence contributing to the risk/trust assessment.
dnssec_availableYesWhether DNSSEC evidence is available for the evaluated domain.
dns_record_statesYesStructured DNS-record observation and state information used by the decision.
evidence_completeYesWhether all evidence sources were available.
recommended_actionYesSuggested action for the agent.
structured_reasonsYesHuman-readable explanation for the decision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / confidence / description
      Previous value: -"Confidence in the decision from 0 to 100."New value: +"Confidence in the decision (10-95). Based on evidence completeness and consistency; low confidence may nudge ALLOW to REVIEW."
    • changedOutput schema / properties / decision / description
      Previous value: -"Trust decision for the domain."New value: +"Trust decision (ALLOW/REVIEW/BLOCK) derived from observed risk, indicator strength, and evidence sufficiency; insufficient evidence may require REVIEW rather than ALLOW."
    • changedOutput schema / properties / indicators / description
      Previous value: -"Observed risk indicators."New value: +"Observed risk indicators with different strengths and decision impact; their strength and combination contribute to risk_score and the resulting decision."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "domain": "google.com"
      +  }
      +]
  3. Changed7 schema fields changed
    • addedOutput schema / properties / caa
      Added value: +{
      +  "description": "DNS CAA record evidence.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / cname
      Added value: +{
      +  "description": "DNS CNAME record evidence.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / dns_record_states
      Added value: +{
      +  "description": "Structured DNS-record observation and state information used by the decision.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / dnssec_available
      Added value: +{
      +  "description": "Whether DNSSEC evidence is available for the evaluated domain.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / soa
      Added value: +{
      +  "description": "DNS SOA record evidence.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / threat_evidence
      Added value: +{
      +  "description": "Structured threat-intelligence evidence contributing to the risk/trust assessment.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "domain",
      -  "a",
      -  "aaaa",
      -  "mx",
      -  "ns",
      -  "txt",
      -  "spf",
      -  "dmarc",
      -  "diagnostics",
      -  "risk_score",
      -  "risk_level",
      -  "decision",
      -  "confidence",
      -  "indicators",
      -  "structured_reasons",
      -  "recommended_action",
      -  "signals",
      -  "evidence_complete"
      -]New value: +[
      +  "domain",
      +  "a",
      +  "aaaa",
      +  "mx",
      +  "ns",
      +  "txt",
      +  "spf",
      +  "dmarc",
      +  "diagnostics",
      +  "soa",
      +  "caa",
      +  "cname",
      +  "dnssec_available",
      +  "threat_evidence",
      +  "dns_record_states",
      +  "risk_score",
      +  "risk_level",
      +  "decision",
      +  "confidence",
      +  "indicators",
      +  "structured_reasons",
      +  "recommended_action",
      +  "signals",
      +  "evidence_complete"
      +]
  4. Changed7 schema fields changed
    • addedOutput schema / properties / a / description
      Added value: +"Observed DNS A (IPv4) records."
    • addedOutput schema / properties / aaaa / description
      Added value: +"Observed DNS AAAA (IPv6) records."
    • addedOutput schema / properties / dmarc / description
      Added value: +"DMARC records derived from observed DNS TXT records (v=dmarc1)."
    • addedOutput schema / properties / mx / description
      Added value: +"Observed DNS MX records."
    • addedOutput schema / properties / ns / description
      Added value: +"Observed DNS NS records."
    • addedOutput schema / properties / spf / description
      Added value: +"SPF records derived from observed DNS TXT records (v=spf1)."
    • addedOutput schema / properties / txt / description
      Added value: +"Observed DNS TXT records."
  5. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, non-idempotent and non-destructive, but the description adds the reason for volatility ('external evidence may change between calls') and confirms no domain actions or persistence, which is real context beyond the flags. It stops short of covering rate limits or auth, but for a stateless read-only evaluator that is a minor gap.

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?

Front-loads the deterministic outcome and the evidence-volatility caveat, then uses labeled USE WHEN / DO NOT USE blocks. Every clause carries routing or behavioral information; nothing is padding.

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?

Output schema exists so return values need no elaboration beyond the ALLOW/REVIEW/BLOCK mention, and the single required parameter is fully documented in the schema. For a one-parameter, read-only decision tool, the description plus annotations cover everything needed to invoke it 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 coverage is 100% and the schema description already spells out the bare-hostname requirement, length cap, and rejection of localhost/IP literals, so the description adds nothing about the single 'domain' parameter. Baseline 3 is appropriate when the schema carries the full semantic burden.

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 ('Deterministic domain risk/trust evaluation') and names the exact output vocabulary (ALLOW / REVIEW / BLOCK), which lets an agent recognize the response shape before calling. It also explicitly separates itself from domain_agent_discovery_check and email_suitability_decision, so sibling confusion is resolved in the description itself.

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

Usage Guidelines5/5

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

Provides an explicit USE WHEN list (safety for interaction, onboarding, outreach, payment) and an explicit DO NOT USE clause for operational DNS/HTTP/TLS/email/AI-discovery inspection, naming the tool to use instead. A second alternative (email_suitability_decision) is routed for the email-posture case, leaving no ambiguity about which tool to pick.

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