Skip to main content
Glama

Text generate

text_generate
Read-only

One text.generate answer, bought through Moonbeam and paid with x402 on Base. One call is 0.0016 USDC, paid with x402 on Base.

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": {
      "text": "<text>"
    },
    "name": "text_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNosend op as one of rewrite, sentiment, keywords, classify
textYessend text (or ?text=): the text, 3 to 4000 characters
labelsNoclassify takes labels: 2 to 20 labels of at most 40 characters each, as a list or comma separated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real context the annotations do not: a fixed cost of 0.0016 USDC per call and an x402 payment on Base. It still omits failure/refund behavior, rate limits, and what a response looks like, and it repeats "paid with x402 on Base" twice instead of expanding on it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, so it is not bloated, but the second sentence duplicates the payment clause already present in the first. Front-loading the payment mechanics over the actual capability is a structural weakness.

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?

With no output schema and no explanation of what a "text.generate answer" contains, an agent cannot tell what to expect back for sentiment, keywords, or classify calls. The existence of four distinct ops is never mentioned in the description, leaving the tool's behavior opaque beyond its price.

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%, with enum values, length bounds, and label constraints all documented in the schema itself. The description adds no meaning about op modes, text constraints, or how labels interact with the classify op, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says it returns "One text.generate answer", which essentially restates the tool name rather than stating a verb and resource. It never mentions the actual capabilities embedded in the schema (rewrite, sentiment, keywords, classify), so an agent cannot distinguish this from siblings like inference_chat or text_tweet based on the description alone.

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?

There is no when-to-use or when-not-to-use guidance, and no alternative is named. The per-call price of 0.0016 USDC is a useful selection factor, but it is stated without saying when that cost is worth paying versus another inference tool.

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