Skip to main content
Glama

Spam-check email copy

check_spam
Read-onlyIdempotent

Score email copy for spam risk before saving or sending it: 0-100 where higher is safer, plus the specific words and patterns that cost points and what to write instead. Takes the text directly, so drafts can be checked before set_sequence writes them. Pass the whole sequence in one call to also catch wording repeated between consecutive emails — checking them one at a time cannot see that. Uses an AI pass on top of the dictionary when a key is configured.

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

Input Schema

NameRequiredDescriptionDefault
stepsYesThe emails to score, in send order — each { subject, body }. Pass ONE to check a single email. Pass the whole sequence to also catch wording repeated between consecutive emails, which checking them one at a time cannot detect. Send the raw copy including any {{variables}}; they are understood and not counted against the score.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description is free to add what they cannot: the 0-100 direction, the fact that findings include both offending words/patterns and replacement suggestions, and that an AI pass activates only when a key is configured — a real behavioral variance an agent should know about. It stops short of saying whether results are cached or how long a check takes.

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?

Front-loads the highest-value fact — the score direction — in the first clause, then layers workflow, batching, and the AI-pass caveat. Every sentence carries information, though the sequence-batching point is effectively stated twice (here and in the schema), which is mild redundancy rather than waste.

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 carries the return-value burden and does it: score, offending words/patterns, and suggested rewrites. For a single-parameter read-only tool this is nearly sufficient; only latency, result persistence, and failure behavior when no AI key is present are left unstated.

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 explains send order, the one-vs-whole-sequence choice, the {{variable}} handling, and the min/max item bounds. The prose restates the batching tradeoff rather than adding new parameter meaning, so the baseline 3 applies.

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 ('Score email copy for spam risk') and immediately defines the output scale ('0-100 where higher is safer'), so the direction of the metric is unambiguous. It also names the sibling set_sequence it complements, letting an agent place it in the workflow without opening another schema.

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?

Gives clear timing guidance ('before saving or sending it') and an explicit batching rule: pass one email for a single check, the whole sequence to catch cross-email repetition that per-email calls cannot see. The one gap is that it never contrasts itself with fix_lead_draft_spam, the obvious sibling for the 'now repair it' case, so an agent must infer that boundary.

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