Skip to main content
Glama

Spam Detection

spam_check
Read-onlyIdempotent

Spam detection: classify text as spam or not spam with a confidence score. Powered by Jev, with an automatic Groq-hosted LLM fallback if Jev is slow or unavailable - under 4.5s guaranteed. Try GET /spam-check/sample.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to classify, up to 4000 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesThe best-fitting label.
engineYesWhich engine answered: Jev (primary) or the Groq-hosted LLM fallback.
probabilityYesConfidence in `label`, 0 to 1.
x402_receiptNoBilling and provenance receipt for this call.
alternate_labelNoThe second-best label, if any.
alternate_probabilityNoConfidence in `alternate_label`, if known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld safety, and the description adds genuine behavioral context beyond them: an automatic Groq-hosted LLM fallback when Jev is slow or unavailable and a <4.5s latency guarantee. It does not disclose auth, rate limits, or error semantics, so not a 5.

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?

Roughly three sentences, front-loaded with the core purpose, followed by operational context and a sample endpoint hint. Efficient overall, though the sample-endpoint sentence is marginal value for an agent already holding the schema.

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?

An output schema exists and annotations cover the safety profile, so the description need not explain return values. It supplies provider/fallback and latency context, but lacks any guidance on alternatives among the many classification-adjacent siblings.

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?

Only one parameter and schema description coverage is 100% (text up to 4000 characters), so the schema already documents everything. The description adds no parameter-level meaning beyond that, matching the baseline 3 for high-coverage schemas.

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 (classify) and resource (text as spam/not spam) plus the output shape (confidence score). It is clear, but it does not explicitly differentiate from generic siblings like classify, guard, or toxicity, so it falls short of a 5.

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?

No indication of when to prefer this over classify, guard, or toxicity, nor any exclusions. The only routing-adjacent content is internal (LLM fallback, sample endpoint), not guidance for an agent choosing between tools.

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.