Skip to main content
Glama

Generate section image

generate_section_image

AI-generate an image for a section and save its URL into the section's content.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "section_id": "<section_id>",
      "prompt": "<prompt>"
    },
    "name": "generate_section_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
field_nameNoContent field to set. Default 'image_url'.
section_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare the write-oriented profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false), and the description adds the key fact that is not in the annotations: the generated URL is written back into the section's content field. That mutation side effect matters given destructiveHint=false, though it does not say whether an existing image URL is overwritten or what happens on generation failure.

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?

One sentence, front-loaded with the action and immediately followed by the persistence behavior. Nothing is wasted and nothing important is buried.

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?

For a three-parameter tool with no output schema, the description covers the core action and where the result lands, but leaves gaps an agent would care about: whether the image generation is synchronous or slow, whether prior content is replaced, and what the caller gets back.

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?

Schema description coverage is only 33% — field_name is documented (including its 'image_url' default), while section_id and prompt have no schema descriptions. The description does not compensate: it implies the section target and that a prompt drives generation, but adds nothing about prompt format, length, style constraints, or which section identifier form is expected.

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 gives a specific verb+resource (AI-generate an image for a section) and adds the side effect (saving the URL into the section's content), which distinguishes it from the generic sibling generate_image. It does not explicitly name that sibling, but the section-scoped framing is clear enough to select between them.

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?

Usage is only implied by the word 'section' — an agent can infer this applies when a section needs an image, but there is no explicit when-to-use statement, no comparison to generate_image or generate_section_content, and no stated prerequisites.

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