Skip to main content
Glama
MailOdds MCP Server

MailOdds MCP Server

Official
by mailodds

enforce_policy

Create a validation policy with rules that override email classification, including status, domain, check, and sub-status overrides, so MailOdds applies custom acceptance or rejection decisions.

Instructions

Create a Validation Policy with rules that override email classification. Rule types: status_override, domain_filter, check_requirement, sub_status_override.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
rulesNo
is_defaultNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive creation operation, so the safety profile is covered. The description contributes the meaningful fact that rules override email classification, but omits what happens on validation failure, whether a default policy takes precedence over others, and whether creation takes effect immediately.

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?

Two short sentences with the primary purpose front-loaded and no filler. The rule-type enumeration is compact but largely duplicates the schema enum, costing a little density.

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

Completeness2/5

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

This is a mutation tool with no output schema and no explanation of the response, permission requirements, or default-policy behavior. For a policy-creation operation where 'is_default' and rule precedence materially change outcomes, the description leaves too much unstated.

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

Parameters2/5

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

Schema description coverage is 0% for the four top-level parameters, so the description must carry the burden. It only echoes the rule-type enum already present in the schema and says nothing about 'name', 'description', or crucially 'is_default', whose default-policy semantics are left completely unexplained.

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 states a specific verb and resource: 'Create a Validation Policy with rules that override email classification.' That is concrete and understandable. It does not differentiate from sibling creation tools such as create_policy_from_preset or create_reputation_policy, so an agent cannot tell from the description alone which creation path applies.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the preset-based or reputation-policy siblings. The rule-type list is a taxonomy, not a usage condition, and nothing says when a particular rule type should be chosen or what precedence applies when multiple policies exist.

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

Deploy Server

Other Tools