Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: create a repo

prompthub_create_repo

Create a new PromptHub repository from explicit repo content, including name, description, visibility, topics, README, and files, when you have publishable prompts to share.

Instructions

Create a new PromptHub repository from a full set of fields. Use this when the user explicitly provides repo content to publish. (To publish the CURRENT coding session, prefer prompthub_publish_session.) Call prompthub_describe_file_format if unsure of the files[] shape.

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>",
      "description": "<description>",
      "visibility": "<visibility>",
      "topics": "<topics>",
      "readme": "<readme>",
      "files": "<files>"
    },
    "name": "prompthub_create_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesAt least one file. Call prompthub_describe_file_format for the exact content shapes.
readmeYesMarkdown README (may be empty).
topicsYesUp to 8 topic tags.
repoNameYesRepo name slug: lowercase letters/digits with single hyphens (e.g. 'code-review'). No spaces/uppercase/underscores.
visibilityYes
descriptionYesShort description, ≤500 chars (may be empty).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one real behavioral trait — the server validates the full file shape and the call will be rejected if malformed — but says nothing about permissions/auth, name-collision or duplicate-repo failure modes, or whether creation is reversible. For a mutation tool with zero annotation coverage, that leaves meaningful gaps.

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?

Three short sentences, zero filler, with the primary action and the usage condition front-loaded before the alternative and the fallback. Every sentence carries distinct routing information.

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 six-required-parameter create tool with no output schema, the description covers purpose, routing, and the hardest sub-object (files[]). It omits what a successful call returns (repo id/handle) and how duplicate-name or validation failures surface, which are the remaining things an agent would want before invoking.

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 coverage is 83%, so the schema already documents most parameters (slugs, enum values, topic limits). The description adds little parameter-level meaning beyond "a full set of fields" and repeatedly deferring files[] semantics to prompthub_describe_file_format. Baseline 3 is appropriate where the schema does the heavy lifting.

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 ("Create a new PromptHub repository") and immediately scopes it to "a full set of fields", which distinguishes it from session-based publishing. It also names the sibling it is not (prompthub_publish_session), so an agent can route without opening either schema.

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 when-to-use condition ("when the user explicitly provides repo content to publish") plus an explicit alternative with its selecting condition ("To publish the CURRENT coding session, prefer prompthub_publish_session"). It additionally gives an escalation path to prompthub_describe_file_format when the files[] shape is unclear.

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