Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

toxicity_analyze

Score a comment for toxicity (Perspective-compatible). $0.005 per call — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: POST https://exchangerebel.com/toll/toxicity/analyze.

Input Schema

NameRequiredDescriptionDefault
commentYesobject (required) - {text: string} comment to score, Perspective comments:analyze body
languagesNoarray of strings - optional; en = full attributes, fr/es/it/pt/tr/ru = TOXICITY-only
doNotStoreNoboolean - optional; comment text is never stored regardless
clientTokenNostring - optional, echoed back in the response
requestedAttributesYesobject (required) - attribute configs for TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, THREAT, PROFANITY (FLIRTATION unsupported)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations are present but sparse, and the description adds substantial behavioral context beyond them: exact cost ($0.005 per call), payment token/chain (USDC on Solana via x402), the MCP retry mechanics, and an HTTP fallback endpoint. It does not describe the response shape, which is a meaningful gap for a scoring tool with no output schema, but the payment and protocol transparency is strong.

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?

The description is dense but well-structured: purpose first, then cost and payment flow, then HTTP equivalent. Every sentence carries invocation-relevant information, though the payment parenthetical is lengthy.

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?

There is no output schema, so the description could benefit from stating the return shape (e.g., attribute scores). Otherwise, for a tool with fully documented inputs and clear payment mechanics, the description covers the invocation-critical details, including cost, protocol, and fallback endpoint.

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 description coverage is 100%, so all five parameters are already documented in the schema. The description adds no additional parameter semantics beyond what the schema provides, which is the baseline 3 when the schema does the heavy lifting.

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?

The description states a specific verb and resource: 'Score a comment for toxicity (Perspective-compatible).' It clearly distinguishes single-comment scoring from batch sibling toxicity_analyze_batch only implicitly by the word 'comment,' so it stops short of explicit sibling differentiation.

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?

The payment procedure is explained in detail (call without payment, receive challenge, retry with payment at _meta["x402/payment"]), which is useful invocation guidance. However, there is no explicit guidance on when to use this versus toxicity_analyze_batch or when not to use it, leaving that choice to inference.

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