Skip to main content
Glama

moderations

moderations
Read-only

OpenAI-compatible moderation (Llama Guard 3): same response shape as OpenAI /v1/moderations with flagged, categories and category_scores, plus the raw Llama Guard codes. Up to 10 inputs per call. Priced by size: $0.003 + $0.0004 per input + $0.0004 per 1,000 characters. Costs $0.03 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesText to check (POST also accepts an array of up to 10)
modelNoIgnored

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint/openWorldHint; the description adds cost ($0.03 USDC per call via x402), batch ceiling of 10 inputs, and the exact return shape (flagged, categories, category_scores plus raw Llama Guard codes) — valuable since no output schema exists. It does not mention auth/x402 payment prerequisites in detail, but the cost disclosure partly covers that.

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-loaded with purpose and payload shape, then limits and pricing. Slightly redundant on cost (both a token-based formula and a flat $0.03 USDC per call), but each sentence carries useful agent-relevant information.

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 does the right job of specifying the return fields and the extra Llama Guard codes, plus batch limits and cost. Missing only guidance on choosing versus sibling moderation/classification tools.

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%, so both parameters (input, model) are already documented, including that model is 'Ignored'. The description's 'up to 10 inputs per call' repeats what the schema already says for the array form, adding no new semantics beyond baseline.

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 (moderation), the implementation (Llama Guard 3), and compatibility target (OpenAI /v1/moderations). An agent knows exactly what it does, but nothing distinguishes it from the sibling `moderate` or from `classify`/`sentiment`, so sibling differentiation is absent.

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 when-to-use or when-not-to-use guidance. The batch limit ('up to 10 inputs per call') and pricing hints at batching economics, but there is no statement of when this tool should be chosen over `moderate` or other safety/classification siblings.

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