Skip to main content
Glama
crisjonblvx

enrichrapi-mcp

by crisjonblvx

filter_profanity

Detect profanity in text and censor offensive words with asterisks. Returns profanity ratio and flagged word count to help moderate content.

Instructions

Detect and censor profanity in text.

Uses a curated English profanity list to flag and censor offensive words. The censored version replaces flagged words with asterisks.

Args: text: The text to check (e.g. "This is some sample text")

Returns: dict with keys: contains_profanity, censored, flagged_word_count, profanity_ratio, cost_usd

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains censoring behavior (replacement with asterisks), notes the use of a curated English profanity list, and lists the returned keys. It omits minor details like exact asterisk formatting, but the core behavior is transparent.

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?

The description is well-structured and front-loaded with the core purpose. The behavioral note and Args/Returns sections are concise and every sentence adds value without filler.

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?

The tool is simple and the description covers all essential aspects: input, behavior, and return keys. Since there is no output schema, listing the return keys is especially valuable. A minor note on the exact censoring format could be added, but nothing critical 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?

The schema only provides a title for 'text' with no description, so the 'Args' section adds necessary meaning and an example. The single parameter is clearly explained, compensating for the 0% schema description coverage.

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?

The description clearly states a specific function: detecting and censoring profanity in text. It names the resource ('profanity in text') and the actions ('detect and censor'), which makes its purpose unmistakable and distinguishes it from the unrelated sibling tools.

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 description implies when to use the tool: whenever English profanity must be flagged or censored in text. However, it does not explicitly contrast it with alternatives such as classify_text, nor does it state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.