Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: update a repo (full replace)

prompthub_update_repo

Replaces all content of one of your own repositories with a complete provided body, deleting any omitted files. Use it to overwrite a repository, not to merge partial changes.

Instructions

Replace ALL content of one of YOUR repositories with the provided body. This is a FULL REPLACE, not a partial merge — any file you omit is DELETED. To change part of a repo, first call prompthub_get_repo, edit the returned fields, then send the COMPLETE set back (map the returned name to repoName; drop read-only fields like counts/createdAt; resend every file). The owner must be your own handle, otherwise the server returns not found.

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": {
      "owner": "<owner>",
      "name": "<name>",
      "repoName": "<repoName>",
      "description": "<description>",
      "visibility": "<visibility>",
      "topics": "<topics>",
      "readme": "<readme>",
      "files": "<files>"
    },
    "name": "prompthub_update_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe repo to replace.
filesYesAt least one file. Call prompthub_describe_file_format for the exact content shapes.
ownerYesYour own handle.
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.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does most of it well: it warns that omitted files are DELETED, that the owner must be the caller's own handle, and that read-only fields must be dropped on resend. It does not state auth requirements, reversibility of the delete, or what the response looks like, leaving those gaps for a mutation tool.

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 sentences, front-loaded with the destructive full-replace warning, then the safe workflow, then the ownership constraint. Every sentence carries a distinct, actionable fact with no repetition of schema content.

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 an 8-required-parameter destructive tool with no annotations and no output schema, the description covers the destruction semantics, the correct edit workflow, field mapping, and ownership constraint. The only omission is the return value, which is minor given the tool's replace-and-confirm nature.

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 88%, so the baseline is 3; the description adds real meaning beyond it by explaining the name→repoName mapping, which fields to drop from a fetched repo, and that every file must be resent. It still doesn't clarify the content-shape decision itself, deferring to prompthub_describe_file_format.

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 ('Replace ALL content of one of YOUR repositories') with explicit scope: full replace, not merge. The all-caps emphasis on ALL and the ownership qualifier distinguish it from create_repo and any partial-update behavior without needing the sibling 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?

Explicitly routes the agent: to change part of a repo, call prompthub_get_repo first, edit, then resend the complete set. It also states a hard precondition (owner must be your own handle or the server returns not found), which is exactly the when-to-use/when-not guidance an agent needs before a destructive call.

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