Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: publish this session

prompthub_publish_session

Distill the current coding session into reusable PromptHub files and publish them as a new repository, stripping secrets and project-specific noise.

Instructions

Distill the CURRENT coding session into a reusable PromptHub repository and publish it as a NEW repo. You (the assistant) must gather the relevant turns from this conversation yourself and shape them into one or more files — this tool cannot read the conversation on its own. Choose the file type that fits the session: - a single refined reusable prompt → a 'text' file (graph with exactly one node whose promptText holds the prompt); - a valuable multi-turn back-and-forth → a 'conversation' file with turns of { userPrompt, aiSummary? }; - a multi-step / multi-model pipeline → a 'workflow' file (graph of nodes + edges). Call prompthub_describe_file_format for the exact file shapes if unsure. STRIP secrets, API keys, absolute file paths, and project-specific noise — capture the reusable essence, not the raw transcript. 'visibility' is REQUIRED: choose 'private' unless the user clearly wants it public. If the user already handed you finished, structured repo content (with topics/README), use prompthub_create_repo 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": {
      "repoName": "<repoName>",
      "visibility": "<visibility>",
      "files": "<files>"
    },
    "name": "prompthub_publish_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesOne or more distilled files.
repoNameYesRepo name slug: lowercase, hyphen-separated.
visibilityYesREQUIRED. Choose 'private' unless the user wants it public.
descriptionNoShort description of the prompt/workflow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden and does well: it discloses the critical limitation that the tool cannot read the conversation and the assistant must extract turns, warns to strip secrets, paths and project noise, states that the result is a NEW repo, and marks visibility as required with 'private' as default. What is not covered is what the tool returns (repo id/URL) or any auth/rate constraints, which keeps it below a 5.

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?

Front-loaded with the core instruction and the 'you must gather the turns yourself' caveat, then a scannable list of file-type choices, then cleanup and visibility rules. It is dense and slightly long, but each segment answers a distinct question an agent would otherwise have to guess at.

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?

For a complex, multi-file mutation tool with no annotations and no output schema, the description covers the essential preconditions: content extraction, file-type selection, sanitization, and visibility. The main gap is the outcome of the call — whether a repo URL or id is returned and how partial validation failures surface — which the description leaves implicit.

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 description coverage is 100%, so the baseline is 3; the description earns more by explaining what each file `type` means in practice (text = single-node graph holding promptText, conversation = turns of {userPrompt, aiSummary?}, workflow = nodes + edges) and by giving a default policy for `visibility`. It adds little for `repoName` and `description`, which the schema already covers.

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: distill the current session into a new PromptHub repo and publish it. It also distinguishes itself from prompthub_create_repo (for already-structured content) and from prompthub_describe_file_format (schema lookup), so an agent can route correctly without opening 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?

Explicit routing: use this tool when the session must be distilled by the assistant, use prompthub_create_repo when the user hands over finished structured content, and call prompthub_describe_file_format if file shapes are unclear. It also gives a selection rule for the three file types, which is when-to-use guidance at the argument level.

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