Skip to main content
Glama

Improve prompt with Cue

improve_prompt

Always use this tool when the user asks Cue to review, score, refine, rewrite, or improve an AI prompt. Choose General, Coding, Design, Business, or Writing mode and include only user-authorized project context. Free usage limits and Cue Pro entitlement are enforced by Cue. Returns a 0–10 score, concise feedback, and one improved prompt in the same language as the input.

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
modeNoCue task mode; choose the user's requested mode or general.general
promptYesThe prompt text the user wants Cue to review and improve.
project_contextNoOnly project context the user explicitly asks Cue to use; omit otherwise.

Output Schema

NameRequiredDescriptionDefault
labelYes
scoreYes
rewriteYes
feedbackYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "general",
      +  "description": "Cue task mode; choose the user's requested mode or general.",
      +  "enum": [
      +    "general",
      +    "coding",
      +    "design",
      +    "business",
      +    "writing"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / project_context
      Added value: +{
      +  "default": "",
      +  "description": "Only project context the user explicitly asks Cue to use; omit otherwise.",
      +  "maxLength": 800,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, so the external-call nature is known. The description adds genuinely new context: usage limits and Cue Pro entitlement are enforced server-side, which the agent needs in order to explain failures. The return-value sentence is partially redundant with the output schema but still sets expectations that a score and a single rewritten prompt come back.

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?

Five short sentences, front-loaded with the trigger condition, then mode guidance, context guardrail, entitlement behavior, and output shape. No filler and no repetition of the name or title.

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?

For a three-parameter, fully documented tool with an output schema, this covers everything an agent needs: when to call, how to pick a mode, what context may be passed, and what comes back. Nothing material is missing.

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 100%, so baseline is 3. The description goes beyond the schema by tying project_context to an authorization rule ('include only user-authorized project context') and by tying mode selection to the user's requested domain, which adds meaning the schema fields do not.

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 names a specific verb set (review, score, refine, rewrite, improve) and a specific resource (an AI prompt), and attributes it to Cue. An agent can tell exactly what capability this tool provides without opening the schema.

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 an explicit trigger condition ('Always use this tool when the user asks Cue to...') plus a constraint on what to include (only user-authorized project context). It does not describe when not to use it or name an alternative, but with only get_profile as a sibling there is no real ambiguity to resolve.

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