Skip to main content
Glama

ai_moderate_batch

Read-only

Content moderation for up to 25 texts — Moderate up to 25 user posts, comments, reviews or messages in one call. texts = items separated by | or newlines, or a JSON array (each up to 1,000 chars). Categories: harassment, hate, violence, self_harm, sexual, sexual_minors, illicit, spam_scam, profanity, each with severity none/low/medium/high and a short reason. Model labels are snapped to the fixed set and backed by offline profanity, spam-phrase, link and shouting signals. Optional threshold (low, medium default, high) decides flagged; optional context (what platform). Verdict CLEAN / REVIEW / BLOCK_SOME with a category distribution. Price: $0.012 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
textsYese.g. Great product, fast shipping!|CLICK HERE to claim your FREE MONEY http://win.example|You are an idiot and everyone hates you

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well past the readOnly/openWorld/non-destructive annotations by disclosing cost ($0.012 USDC via x402 on Base), the default threshold behavior, the fixed label-snapping plus offline heuristic signals, and the exact output verdict vocabulary. An agent knows upfront that the call is paid, deterministic in taxonomy, and can return one of three verdicts.

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 batch scope and item format, then layers categories, threshold, and verdict — dense but every clause carries information. The em-dash chaining makes it a single long block rather than cleanly separated fields, costing some scannability.

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

Completeness5/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 so fully: verdict enum, severity scale, per-category reason, and category distribution. Pricing and input format limits round out everything an agent needs to call this correctly.

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?

Adds genuine meaning for 'texts' beyond the schema's example-only description: '|' or newline alternation, JSON array support, and a 1,000-char per-item cap. However, it also references 'Optional threshold' and 'Optional context' parameters that do not exist in the input schema, so an agent may attempt arguments that will be rejected.

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 ('Moderate up to 25 user posts, comments, reviews or messages in one call') with an explicit batch-size ceiling. An agent can distinguish this from a single-text or classify tool by scope, though no sibling tool is named for direct contrast.

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?

Usage is implied by the batch limit and the mention of 'user posts, comments, reviews or messages', but there is no explicit when-to-use vs. when-to-use-an-alternative statement (e.g., use ai_moderate for a single item). The optional 'context (what platform)' hints at usage but gives no rule for supplying it.

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