Skip to main content
Glama
MohamedCHAMI

mcp-ai-image-generator

by MohamedCHAMI

configure_openai_api_key

Set or update the locally stored OpenAI API key used for image generation. Configure authentication when the key changes to enable AI image generation in MCP clients.

Instructions

Set or update the OpenAI API key for image generation. The key is stored locally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiKeyYesYour OpenAI API key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden and does state the mutation ('Set or update') and local storage. However, it leaves out persistence/reversibility details, whether the key is validated, and how it affects sibling generation tools.

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?

Two short sentences with no filler; the action, resource, and scope are front-loaded and every sentence adds 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?

For a one-parameter setter with no output schema, this is nearly complete: it states the action, scope, and storage location. It could be slightly stronger by mentioning when to use it relative to configure_api_key, but nothing needed to invoke it correctly is missing.

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% and the apiKey parameter already includes its own description, so the tool description adds little parameter-level meaning. The image-generation context is useful but does not change how the parameter is supplied.

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 uses a specific verb ('Set or update'), identifies the resource ('OpenAI API key'), and scopes it to image generation, which also differentiates it from the generic configure_api_key sibling. The local-storage detail adds further precision.

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 phrase 'for image generation' implies the tool should be used before OpenAI image generation, but it never explicitly states when to choose this over configure_api_key or configure_model, and offers no alternatives or exclusions.

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