Skip to main content
Glama

ai_moderate

Read-only

AI content moderation — Flag text for unsafe content (hate, harassment, sexual, violence, self-harm, illegal) via Workers AI; returns SAFE or FLAGGED with a reason. Price: $0.006 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": {
      "text": "<text>"
    },
    "name": "ai_moderate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYestext to screen

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive and open-world, so the bar is lower; the description still adds real value by disclosing the backend (Workers AI), the exact response vocabulary, and a paid-call requirement ($0.006 USDC on Base via x402). The only gap is that it does not mention input length limits or failure modes of the upstream model.

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 compact clauses with zero filler: purpose, taxonomy, return shape, provider and price. The most decision-relevant information (what it flags and what it returns) is front-loaded before the pricing note.

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?

For a one-parameter, read-only tool with no output schema, the description carries the necessary burden by spelling out the return values and reason field, and by flagging the paid x402 requirement. Nothing an agent needs in order to decide to call it or interpret the result is missing.

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

Parameters4/5

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

There is a single required parameter with 100% schema description coverage, so the baseline is 4. The description adds nothing parameter-specific beyond what the schema already says ("text to screen"), which is acceptable at this coverage level.

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 ("Flag text for unsafe content") plus the full category taxonomy it screens for, and names the return vocabulary (SAFE or FLAGGED with a reason). That fixed moderation taxonomy distinguishes it from generic siblings like ai_classify or ai_sentiment without needing to name them.

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 category list and the verb "screen", so an agent can infer this is the tool for safety screening. However, there is no explicit when-to-use vs. when-not framing, and no steer away from the generic classification siblings for overlapping cases.

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