Skip to main content
Glama

x402 Structured Data & Headless Scraper

validate_compliance

Read-only

Audit a JSON payload against regulatory, PII, or business policy rules before executing downstream transactions or API writes. Returns pass/fail status and specific rule violations (e.g., PII exposure, OFAC/KYC checks, field bounds).

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": {
      "payload": "<payload>"
    },
    "name": "validate_compliance"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesNoNatural-language or policy rules the payload must satisfy.
payloadYesStructured JSON object to audit against compliance rules.
include_metadataNoWhen true, wraps output in { data, meta: { status, block_reason, cached } }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: it acts as a pre-write gate and returns pass/fail plus specific violations, with concrete check examples (PII exposure, OFAC/KYC, field bounds). It does not say what happens on failure beyond the status return, nor anything about latency or auth.

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 sentences, no filler, with the core purpose front-loaded and the return behavior in the second sentence. Every clause carries information.

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

Completeness4/5

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

With no output schema, the description correctly takes on the burden of describing returns (pass/fail status and named violations). The main residual gap is the optional `rules` parameter — whether omitting it applies a default policy set is unstated for a tool whose whole purpose is rule evaluation.

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 schema already documents all three parameters, making 3 the baseline. The description's examples of rule types (PII, OFAC/KYC, field bounds) lightly inform what belongs in the optional `rules` array, but it never addresses what happens when `rules` is omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ("Audit") plus a specific resource ("a JSON payload") and names the rule domains it checks (regulatory, PII, business policy). It is clearly distinguishable in kind from the extraction-oriented siblings, though it never explicitly contrasts itself with them.

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?

"before executing downstream transactions or API writes" gives a concrete usage context that tells an agent when this tool belongs in a workflow. There are no explicit exclusions or named alternatives, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.