Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: delete a prompt reference

prompthub_delete_reference

Deletes a PromptReference input asset from a PromptHub repository by reference ID. Get the ID from the repository's promptReferences list to remove the correct reference.

Instructions

Delete one PromptReference input asset by id. Get ids from prompthub_get_repo promptReferences[]. A 404 means it does not exist or you cannot access it.

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>",
      "referenceId": "<referenceId>"
    },
    "name": "prompthub_delete_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ownerYes
referenceIdYesReference id from prompthub_get_repo promptReferences[].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose that this is a destructive single-asset removal, the source of valid ids, and the meaning of a 404. It does not say whether deletion is permanent or recoverable, what happens to anything that references the prompt reference, or what permissions/ownership are required beyond the implicit access failure.

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, each earning its place: the action comes first, followed by id provenance and then error semantics. No redundant restatement of the title or name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter destructive tool with no annotations and no output schema, the description covers the essentials an agent needs to call it: the target asset, where ids come from, and the failure signal. It leaves unclear what owner/name denote and whether the operation is reversible, which are meaningful omissions given zero annotation coverage.

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 description coverage is only 33% – only referenceId is documented in the schema, and the description usefully reinforces it by pointing to prompthub_get_repo promptReferences[]. The owner and name parameters are not explained anywhere; an agent must infer they are the repository coordinates. This is a moderate gap but the most error-prone parameter is well handled.

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 states a specific verb and resource: 'Delete one PromptReference input asset by id.' It explicitly says 'one' (single-item scope) and 'PromptReference input asset', which separates it from the sibling delete_artifact and delete_repo tools. An agent can tell what it removes 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 concrete routing guidance for the required id: 'Get ids from prompthub_get_repo promptReferences[].' It also explains the 404 outcome ('does not exist or you cannot access it'), which helps an agent decide whether to retry or stop. It stops short of naming when-not-to-use this tool versus the other delete siblings, so it is a 4 rather than a 5.

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