Skip to main content
Glama

Improve prompt

improve_prompt

Rewrite a generation prompt and get the result back at once. mode "improve" (default) returns { originalPrompt, improvedPrompt }, a more detailed prompt for better output; "rephrase" returns { originalPrompt, rephrasedPrompt }, the same idea worded differently. Nothing is generated or saved. Spends chat credits per call. context is accepted but not used in either mode. Use get_prompt_suggestions for fresh ideas instead.

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": {
      "prompt": "<prompt>"
    },
    "name": "improve_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoimprove
promptYesThe prompt to rewrite.
contextNoIgnored by the server in both modes.
chatModelNoOptional Bedrock model id; defaults to Claude Sonnet.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
    • changedInput schema / properties / llm_model / description
      Previous value: -"The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess."New value: +"The model identifier you are running as, for example \"claude-opus-4-8\" or \"gpt-5.2\". Pass \"unknown\" if you are not certain. Recorded for the server developer's analytics."
    • changedInput schema / required
      Previous value: -[
      -  "prompt",
      -  "llm_model"
      -]New value: +[
      +  "prompt"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / chatModel / description
      Added value: +"Optional Bedrock model id; defaults to Claude Sonnet."
    • addedInput schema / properties / context / description
      Added value: +"Ignored by the server in both modes."
    • addedInput schema / properties / prompt / description
      Added value: +"The prompt to rewrite."
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only give the generic profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false); the description adds the details that actually matter: no generation and no persistence, a per-call credit charge, and the fact that one accepted parameter is silently ignored. Those additions go well beyond what the annotation block conveys and do not contradict it.

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?

Front-loaded with the action, then modes and their return shapes, then side effects, cost, the context caveat, and the sibling escape hatch. Every clause carries information an agent needs to choose or call the tool correctly; there is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by enumerating the returned object per mode. For a six-parameter tool with one required field, it covers purpose, side effects, cost, and the one parameter that must not be relied on, leaving only minor model-selection nuance to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the baseline is 3 and the schema already documents most fields. The description earns an upgrade by explaining what each mode value actually changes in the response (improved vs rephrased field names) and by reinforcing that context is ignored, though it says nothing about chatModel, llm_model, or conversation_id beyond what the schema states.

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?

States a specific verb and resource ('Rewrite a generation prompt') and immediately disambiguates the two modes by naming the exact return shape of each: improve → { originalPrompt, improvedPrompt }, rephrase → { originalPrompt, rephrasedPrompt }. It also names the sibling it is not (get_prompt_suggestions), so an agent can separate it from neighboring tools without inspecting schemas.

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?

Gives an explicit alternative and the condition that selects it ('Use get_prompt_suggestions for fresh ideas instead'), states the exclusion boundary ('Nothing is generated or saved'), and flags the cost of calling ('Spends chat credits per call'). It also warns that the context parameter is accepted but unused, which prevents a wasted-parameter mistake.

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.