Skip to main content
Glama
prismism-dev

Prismism MCP Server

by prismism-dev

Delete Prismism Artifact

prismism_delete

Permanently delete artifacts from the Prismism MCP Server to manage storage and remove tracked files. This action cannot be undone.

Instructions

Permanently delete an artifact. This cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesArtifact ID to delete

Implementation Reference

  • The handler function that executes the deletion of a Prismism artifact using the 'del' client function.
    async ({ id }) => {
      if (!hasApiKey()) {
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify({
                ok: false,
                error: { code: 'NO_API_KEY', message: 'API key required' },
                _hints: ['Set PRISMISM_API_KEY in your MCP config.'],
              }),
            },
          ],
          isError: true,
        };
      }
    
      const result = await del(`/v1/artifacts/${id}`);
    
      if (!result.ok) {
        return {
          content: [{ type: 'text', text: JSON.stringify(result) }],
          isError: true,
        };
      }
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify({
              ok: true,
              data: { deleted: true, id },
              _hints: ['Artifact permanently deleted.'],
            }),
          },
        ],
      };
    }
  • The input schema for the prismism_delete tool, validating the required artifact ID.
    inputSchema: {
      id: z.string().describe('Artifact ID to delete'),
    },
  • The function registering the 'prismism_delete' tool with the MCP server.
    export function registerDeleteTool(server: McpServer) {
      server.registerTool(
        'prismism_delete',
        {
          title: 'Delete Prismism Artifact',
          description: 'Permanently delete an artifact. This cannot be undone.',
          inputSchema: {
            id: z.string().describe('Artifact ID to delete'),
          },
        },
        async ({ id }) => {
          if (!hasApiKey()) {
            return {
              content: [
                {
                  type: 'text',
                  text: JSON.stringify({
                    ok: false,
                    error: { code: 'NO_API_KEY', message: 'API key required' },
                    _hints: ['Set PRISMISM_API_KEY in your MCP config.'],
                  }),
                },
              ],
              isError: true,
            };
          }
    
          const result = await del(`/v1/artifacts/${id}`);
    
          if (!result.ok) {
            return {
              content: [{ type: 'text', text: JSON.stringify(result) }],
              isError: true,
            };
          }
    
          return {
            content: [
              {
                type: 'text',
                text: JSON.stringify({
                  ok: true,
                  data: { deleted: true, id },
                  _hints: ['Artifact permanently deleted.'],
                }),
              },
            ],
          };
        }
      );
Behavior3/5

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

With no annotations provided, the description carries the full burden. It successfully discloses the destructive, irreversible nature of the operation ('Permanently delete', 'cannot be undone'). However, it omits other critical behaviors such as authorization requirements, what happens if the ID doesn't exist, or whether deletion cascades to related resources.

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?

Two sentences with zero waste. The first establishes the action and scope; the second provides the critical safety warning. Every word earns its place and the irreversibility warning is appropriately emphasized.

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 single-parameter destructive operation without output schema, the description covers the essential safety warning. However, given the lack of annotations, it could improve by mentioning error conditions (e.g., 'fails if artifact does not exist') or permission requirements to be fully complete.

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?

The input schema has 100% description coverage ('Artifact ID to delete'), establishing a baseline of 3. The description does not add additional context about the ID format, validation rules, or how to obtain valid IDs, relying entirely on the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Permanently delete') and resource ('artifact'), matching the tool name. However, it does not explicitly differentiate from siblings like 'prismism_update' or indicate when deletion is preferable to other lifecycle operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The irreversibility warning ('This cannot be undone') provides an implied 'when-not' (don't use if recovery might be needed). However, it lacks explicit guidance on prerequisites (e.g., checking existence first) or when to use 'update' versus 'delete' versus 'unpublish'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prismism-dev/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server