Skip to main content
Glama

Check message compliance

comply_check_message
Read-onlyIdempotent
Run email/SMS compliance checks before sending.

Checks against: Spam Act 2003 (AU), CAN-SPAM (US), CASL (CA), GDPR/ePrivacy (EU).

Parameters:
  subject           — message subject line
  body              — full message body text
  channel           — "email" or "sms"
  consent           — "express", "inferred", "none", or "unknown"
  sender_identified — True if the sender is clearly named in the message
  recipient         — recipient address (for evidence log only, never stored in full)
  campaign_id       — optional campaign reference for grouping evidence records
  jurisdiction      — "au", "us", "ca", "eu", or "all" (default: all — strictest)

Returns a verdict (pass/review/block), findings with fixes tagged by law,
the message classification, and a check_id for your evidence log.

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": {
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "comply_check_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
channelNoemail
consentNounknown
subjectYes
recipientNo
campaign_idNo
jurisdictionNoall
sender_identifiedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely new context: the recipient value is used for the evidence log and never stored in full, and the check produces a check_id for the caller's evidence record. Return shape is summarized but pagination/persistence details and what 'review' implies operationally are not expanded.

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-loaded with the purpose and covered laws, then a scannable parameter block, then the return summary. No filler sentences; each line conveys information an agent would otherwise have to guess.

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?

For an eight-parameter tool with no output schema, the description covers inputs, defaults, return verdicts, and the evidence-log side effect, which is close to complete. Minor gaps remain around what distinguishes 'review' from 'block' and any length or format constraints on subject/body.

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?

Schema description coverage is 0% and no enums are declared in the schema, so the description carries the entire burden — and it does: it names all eight parameters, supplies the allowed values for channel ('email'/'sms'), consent, and jurisdiction, explains sender_identified's meaning, and justifies campaign_id's purpose. This fully compensates for the bare schema.

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?

States a specific verb and resource ('Run email/SMS compliance checks') and enumerates exactly which regimes it evaluates (Spam Act, CAN-SPAM, CASL, GDPR/ePrivacy). It is clearly a pre-send gate, but it never contrasts itself with the close sibling comply_classify_message, so sibling differentiation is left implicit.

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 sending' gives a clear temporal trigger, and the jurisdiction default ('all — strictest') tells the agent how to behave when unspecified. There are no explicit when-not conditions or named alternatives (e.g. when to call comply_classify_message or comply_list_rules instead), which keeps it below 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.