Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: organize a prompt before publishing

prompthub_organize_prompt

Prepares raw prompts for PromptHub publishing by rewriting them for clarity and converting reusable parts into {{variable}} template syntax so others can edit and reuse them.

Instructions

Call this FIRST whenever the user wants to upload, publish, share, or save a prompt to PromptHub (before create_repo / publish_session / update_repo). Returns the prompt-organize methodology: a step-by-step guide to (1) rewrite the user's raw prompt for clarity and (2) convert the genuinely reusable parts into PromptHub's {{variable}} template syntax (single-line, ... for multi-line, =a|b|c for choices) so others can edit and replace them. Apply the returned guide to the user's prompt, CONFIRM the variable list with the user, then publish. Skip only if the prompt is already a clean, templatized prompt the user explicitly does not want changed. No token required — safe to call before the user has authenticated.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "prompthub_organize_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it clarifies the tool returns a guide rather than performing a mutation, discloses 'No token required — safe to call before the user has authenticated,' and specifies the downstream procedure (apply guide, CONFIRM variable list with the user, then publish). That is materially more than the name or schema conveys.

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

Conciseness4/5

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

The critical instruction ('Call this FIRST') is front-loaded and every clause carries information — trigger intents, ordering, methodology contents, confirmation step, auth exemption, skip condition. The cost is a single very dense run-on paragraph with stacked parentheticals, which slightly impedes scanning compared to short separated sentences.

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 zero-parameter, non-mutating guide-fetch tool with no output schema, the description supplies everything an agent needs: when to call, what comes back, how to act on the result, the user-confirmation checkpoint, and the auth exemption. Nothing material is left unspecified.

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

Parameters5/5

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

The input schema is an empty object with zero parameters, so there is nothing for the description to disambiguate; the baseline for a parameterless tool applies at its ceiling.

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 uses a specific verb+resource ('Returns the prompt-organize methodology') and explains the content of that methodology in parenthetical detail (rewrite for clarity, convert to {{variable}} syntax with single-line/`...`/`=a|b|c` forms). It also distinguishes itself from named siblings (create_repo / publish_session / update_repo) by position in the workflow.

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?

It names the triggering intents (upload, publish, share, save a prompt), states ordering ('Call this FIRST ... before create_repo / publish_session / update_repo'), and gives an explicit exclusion ('Skip only if the prompt is already a clean, templatized prompt the user explicitly does not want changed'). Both when-to-use and when-not-to-use are covered.

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