Skip to main content
Glama

generate_text

Generate text through CLIProxy using Chat Completions or Responses APIs. Send a prompt with optional model, system instructions, and token limit to get text output while managing credit usage.

Instructions

通过 CLIProxy 生成文本。支持 Chat Completions 和 Responses;调用可能消耗额度。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiNo
modelNoCLIProxy 模型 ID;省略时使用配置中的默认模型
promptYes
systemNo
maxTokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag that the tool is not read-only and not idempotent, so the mutation profile is known. The description adds the genuine trait '调用可能消耗额度' (may consume quota), which is a cost/side-effect caveat beyond the structured data, plus the API-mode support. This is useful but modest context.

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 purpose is front-loaded and the quota warning is appended efficiently. Every clause provides information that is not redundant with the annotations.

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 5-parameter tool with no output schema and 20% schema coverage, the description is too sparse. It omits parameter semantics, return format, error behavior, and any guidance on choosing api or system; an agent would have to guess or rely on external knowledge.

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 20%—only the 'model' parameter is described in the schema. The description adds no explanation of prompt, system, api, or maxTokens, so it fails to compensate for the uncovered parameters. The required prompt parameter is completely undocumented.

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 opens with '通过 CLIProxy 生成文本'—a specific verb (generate) and resource (text via CLIProxy). It also names the two supported API variants (Chat Completions and Responses), which clearly distinguishes it from sibling tools list_models and generate_image by semantic domain.

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 description gives no explicit when-to-use or when-not-to-use guidance. The sibling tool names imply the distinction (text vs. image generation vs. model listing), but there is no statement about which tool to select for which task or when to avoid this one.

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

Deploy Server

Other Tools