Skip to main content
Glama

Generate Content

generate_content
Read-only

Produce original text from a natural-language prompt. Steer output using project context (documents, characters, style) and specify desired length.

Instructions

Generate new prose from a natural-language prompt and return the generated text, optionally steered by project context (a document, characters, or a target style) and a desired length. This creates fresh text and does not modify any document. Use enhance_content to improve existing text instead, or analyze_document to critique it. Calls an external AI model and requires OPENAI_API_KEY; without it a placeholder is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lengthNoApproximate target length in words. Default 500.
promptYesNatural-language instruction describing the content to generate.
contextNoOptional project context to steer generation.
Behavior4/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, and the description confirms 'does not modify any document.' It adds extra context about calling an external AI model and the placeholder fallback. However, it does not discuss potential nondeterminism or model behavior beyond what openWorldHint implies.

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?

Three sentences covering core purpose, behavioral guarantees, usage guidelines, and environment dependency. No wasted words, front-loaded with the primary action.

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 tool with 3 parameters (one required, nested object) and no output schema, the description covers purpose, behavior, usage, and parameter roles adequately. Minor gap: does not explain how context sub-fields interact, but not essential.

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%, so baseline is 3. The description mentions 'optionally steered by project context... and a desired length,' which maps to the context and length parameters but does not add new details beyond the schema descriptions.

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 it generates new prose from a natural-language prompt, distinguishes itself from enhance_content (improves existing text) and analyze_document (critiques). The verb 'generate' and resource 'content' are specific and match the tool's name.

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

Usage Guidelines5/5

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

Explicitly tells when to use this tool vs alternatives: 'Use enhance_content to improve existing text instead, or analyze_document to critique it.' Also mentions the environment requirement (OPENAI_API_KEY) and the fallback behavior without it.

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/writerslogic/scrivener-mcp'

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