Skip to main content
Glama
MailOdds MCP Server

MailOdds MCP Server

Official
by mailodds

test_policy

Read-onlyIdempotent

Dry-run a policy against a mock email result to see which rule matches and how the result is transformed before applying it.

Instructions

Dry-run a policy against a mock result. Shows matched rule and how the result was transformed.

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": {
      "policy_id": "<policy_id>",
      "test_result": "<test_result>"
    },
    "name": "test_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_idYes
test_resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description's one real contribution beyond that is stating the response content ('matched rule and how the result was transformed'), which is useful given there is no output schema, but it omits what happens on an unknown policy_id or when no rule matches.

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 short sentences with zero filler; the core action is front-loaded and the output note follows immediately. Nothing can be removed without losing information.

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

Completeness3/5

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

It covers the purpose and the shape of the return value, which compensates partly for the missing output schema. However, with 0% parameter documentation and a nested input object, the definition leaves the agent guessing how to construct test_result correctly.

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 two required parameters, including a nested test_result object with five properties (email, action, domain, status, sub_status). The description supplies no field-level meaning, syntax, or examples, so the agent gets no help beyond the bare property names.

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 gives a specific verb ('Dry-run') and resources ('a policy', 'a mock result'), making the simulate-against-sample-input nature clear. It does not distinguish itself from similar siblings such as test_reputation_policy, so an agent cannot tell from the text which policy types this applies to.

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

Usage Guidelines3/5

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

The word 'Dry-run' implies this is a non-mutating preview to use before enforcement, but there is no explicit when/when-not guidance and no reference to alternatives like test_reputation_policy or enforce_policy. Usage must be inferred.

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