Skip to main content
Glama

improve_prompt

Rewrite a rough prompt into a sharper, ready-to-use prompt structured as Role, Task, Context, Format (RTCF). Returns the improved prompt, its four parts, a short list of clarifying questions worth asking the user, and which model tier and effort level suit this kind of work. Use this before answering when the user's request is vague, or when the user asks to improve a prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesThe rough prompt or request to restructure
targetNoWhich AI family will actually run the improved prompt ("claude" or "gpt"). Pass your own family so the wording is shaped for it and the model recommendation is concrete. Omit for a provider-neutral prompt.

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden: it explains that the tool rewrites a prompt, returns the improved prompt and parts, and provides clarifying questions and model recommendations. The phrase 'use this before answering' communicates that this is an intermediate compilation step; no side effects or risks are materially unaddressed.

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?

The description is two focused sentences with the core purpose front-loaded. Every sentence contributes actionable information: what it does, what it returns, and when to invoke it.

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?

Coverage is complete for a low-risk rewriting tool: input is fully schema-described, return content is listed, and trigger conditions are stated. It stops short of fully disambiguating build_prompt and improve_followup, but the overall definition is sufficient without an output schema.

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 description coverage is 100%: both prompt and target are already described accurately in the input schema. The tool description adds RTCF and output context but no new parameter-level semantics, so the baseline of 3 applies.

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 states a specific verb and resource: it rewrites a rough prompt into a sharper ready-to-use prompt structured as Role, Task, Context, Format. It also lists the returned components, which adds precision and clearly distinguishes it in intent from build_prompt, though it does not name or differentiate intruments directly.

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

Usage Guidelines4/5

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

It gives explicit when-to-use triggers: 'when the user's request is vague, or when the user asks to improve a prompt.' It does not provide when-not-to-use guidance or direct the agent to build_prompt/improve_followup, but the stated conditions are clear enough for normal selection.

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.

TDQS

A4.2/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: build_prompt composes given parts into a prompt, while improve_prompt rewrites a vague prompt into a structured one. No overlap in functionality.

Naming Consistency5/5

Both tools follow a consistent verb_noun pattern (build_prompt, improve_prompt), making it predictable and easy to understand.

Tool Count3/5

With only 2 tools, the server feels slightly thin for its stated domain of RTCF prompt construction. It covers basic creation and improvement but lacks other useful operations like parsing or validation.

Completeness4/5

The tools cover the core tasks of building a prompt from scratch and improving an existing one. Minor gaps exist, such as no tool for extracting parts from a prompt or validating structure, but the main workflows are supported.