Skip to main content
Glama
wenkezhi8

2Xapi.com GPT-image MCP Server

by wenkezhi8

Configure pre-generation moderation

set_moderation

Configure the moderation gate that screens prompts before they reach the image API. Enable it to reject disallowed prompts and protect your account from risk control.

Instructions

Configure the moderation gate that screens every prompt BEFORE it reaches the image API. When enabled, prompts judged as disallowed are rejected to protect the account from risk control. Any argument left null is unchanged. Changes persist to config.json and take effect immediately. Pass enabled=false to turn moderation off.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
promptNo
api_keyNo
enabledNo
api_base_urlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description carries full responsibility for disclosing behavior. It covers the screening timing, rejection of disallowed prompts, persistence to config.json, immediate effect, and the null-unchanged semantics, which is comprehensive and goes well beyond the schema.

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 concise and well-structured, with four sentences each adding unique value: purpose, behavior, null semantics, persistence, and disabling. There is no redundancy or fluff.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description thoroughly covers the tool's behavior and effects, and an output schema exists to document return values. However, it leaves the meanings of key parameters undefined, which is a significant gap for a configuration tool with no schema descriptions. This prevents full completeness.

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

Parameters2/5

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

The schema has 0% description coverage for its five parameters, so the description must compensate. It only explains that null arguments are unchanged and that enabled=false turns moderation off, leaving model, prompt, api_key, and api_base_url unexplained. This is insufficient for an agent to correctly set these parameters.

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 the tool's function: configuring a moderation gate for pre-generation screening. It uses a specific verb 'Configure' and identifies the resource as the moderation gate, effectively distinguishing it from sibling tools like set_config and generate_image.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool—to configure moderation screening before image API calls—and explains how to disable it. However, it does not explicitly mention alternatives or exclusion criteria, though the focus on moderation makes the use case fairly unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wenkezhi8/2Xapi.com-GPT-image-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server