Skip to main content
Glama
@prompthub/mcp
by LionelHao

PromptHub: delete an artifact

prompthub_delete_artifact

Deletes a repository artifact by ID; get valid IDs from the repository's artifacts list, then republish to replace it. Returns not found if missing or inaccessible.

Instructions

Delete one artifact from a repo by its id (get ids from prompthub_get_repo's artifacts[]). Returns 'not found' if it does not exist or you cannot access it. Use this + republish to replace an artifact (the server appends, it does not de-duplicate).

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>",
      "artifactId": "<artifactId>"
    },
    "name": "prompthub_delete_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ownerYes
artifactIdYesArtifact id from prompthub_get_repo's artifacts[].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 behavioral burden and does real work: it discloses that a missing or inaccessible artifact returns 'not found' (conflating the two cases, which is operationally important), and it warns that the server appends on republish rather than de-duplicating. It does not state whether deletion is permanent/irreversible, what permissions are required, or whether deleting an artifact affects anything already published from it.

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, front-loaded with the action, then the id source, then the error behavior, then the replace workflow. No filler and nothing repeated from the schema beyond what adds navigation value.

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 three-parameter destructive tool with no annotations and no output schema, the description supplies purpose, id sourcing, return-on-failure semantics, and a replace-workflow warning. The remaining gap is that owner and name semantics are left entirely to an under-documented schema.

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 only 33% — artifactId is the sole documented parameter — so the description should compensate more than it does. It reinforces artifactId's provenance and implies that owner/name scope the repo, but never explains those two parameters' meaning or format, leaving half the inputs documented nowhere.

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?

"Delete one artifact from a repo by its id" gives a specific verb (delete), a narrow resource (one artifact), and its container (a repo), which separates it from the sibling delete_reference and delete_repo tools by resource alone. The parenthetical id source removes any ambiguity about what identifier is meant.

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 states the precondition for use (get ids from prompthub_get_repo's artifacts[]) and describes a concrete composition pattern: delete plus republish to replace an artifact. What's missing is an explicit exclusion, e.g. when to reach for prompthub_delete_reference instead, so the agent must infer the boundary from resource naming.

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