Skip to main content
Glama
dasheck0

Face Generator MCP Server

by dasheck0

人脸生成器 MCP 服务器

使用https://thispersondoesnotexist.com生成人脸图像的模型上下文协议 (MCP) 服务器。

特征

  • 生成人脸图像

  • 多种输出形状:正方形、圆形、圆角矩形

  • 可配置图像尺寸

  • 非方形的透明背景

  • 批量生成多幅图像

Related MCP server: Gemini MCP Image Generation Server

安装

npm install @dasheck0/face-generator

用法

作为 MCP 服务器

  1. 启动服务器:

npx face-generator
  1. 通过 MCP 客户端使用generate_face工具。

工具参数

  • outputDir :(必需)保存图像的目录

  • fileName :可选文件名(默认为时间戳)

  • count :要生成的图像数量(默认值:1)

  • width :图像宽度(以像素为单位)(默认值:256)

  • height :图像高度(以像素为单位)(默认值:256)

  • shape :图像形状(方形|圆形|圆形,默认:方形)

  • borderRadius :圆角的边框半径(默认值:32)

例子

{
  "outputDir": "./output",
  "count": 3,
  "width": 512,
  "height": 512,
  "shape": "circle"
}

执照

麻省理工学院

Available Tools

1 tool
generate_faceC

Generate and save a human face image

ParametersJSON Schema
NameRequiredDescriptionDefault
outputDirYesDirectory to save the image
fileNameNoOptional file name (defaults to timestamp)1767357705977.png
countNoNumber of images to generate (default: 1)
widthNoWidth of the image in pixels (default: 256)
heightNoHeight of the image in pixels (default: 256)
shapeNoImage shape (square|circle|rounded, default: square)square
borderRadiusNoBorder radius for rounded shape (default: 32)
returnImageContentNoReturn image as base64 encoded content instead of file path (default: false)

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'generate and save' implies a write operation, it doesn't disclose important behavioral traits like whether this requires specific permissions, what happens if the output directory doesn't exist, whether generation is deterministic or random, or what happens on failure. For a tool that creates files with no annotation coverage, this represents a significant gap in transparency.

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 perfectly concise at just 6 words: 'Generate and save a human face image.' It's front-loaded with the core functionality, contains zero wasted words, and communicates the essential purpose efficiently. Every word earns its place in this minimal but complete statement of function.

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

Completeness2/5

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

For a tool with 8 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the tool returns (file paths? success indicators? error formats?), doesn't mention any constraints or requirements beyond what's in the parameter schema, and provides no context about the generation quality, source, or limitations. The agent would need to guess about important behavioral aspects.

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?

The description provides no parameter information beyond what's already in the schema, which has 100% coverage with detailed descriptions for all 8 parameters. The baseline score of 3 reflects that the schema does the heavy lifting, and the description adds no additional parameter context, semantics, or examples beyond what's already documented in the structured schema fields.

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 'Generate and save a human face image' clearly states the verb ('generate and save') and resource ('human face image'), making the purpose immediately understandable. It's specific about generating a face image rather than generic image generation. However, without sibling tools to differentiate from, it can't achieve the full 5 points for sibling distinction.

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?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or constraints. It simply states what the tool does without any context about appropriate use cases, limitations, or when other tools might be more suitable. This leaves the agent with insufficient context for optimal tool selection.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • Changedgenerate_face1 field changed
      • changedInput schema / properties / fileName / default
        Previous value: -"1755515512893.png"New value: +"1767357705977.png"
  2. 1 tool update
    • First observedgenerate_face

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'generate_face' has a clearly distinct and singular purpose.

Naming Consistency5/5

The naming pattern cannot be inconsistent when there is only one tool. The tool name 'generate_face' follows a clear verb_noun convention, which would be consistent if more tools existed.

Tool Count2/5

A single tool is generally too few for most MCP server purposes, as it provides minimal functionality and limits agent capabilities. For a face generation domain, one tool feels thin and under-scoped.

Completeness2/5

The tool set is severely incomplete for a face generation domain. While it covers generation, there are obvious gaps such as no tools for listing, retrieving, modifying, or deleting generated faces, creating dead ends for agents.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers