Skip to main content
Glama
nickweedon

Skeleton MCP Server

by nickweedon

delete_item

Remove items from the Skeleton MCP Server by specifying their unique identifier. This tool helps manage data by deleting specific entries when they are no longer needed.

Instructions

Delete an item.

Args: item_id: The unique identifier of the item to delete

Returns: A confirmation message

Raises: ValueError: If the item is not found

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_idYes

Implementation Reference

  • The handler function for the 'delete_item' tool. It takes an item_id, checks if it exists in mock storage, deletes it, and returns a confirmation dictionary.
    async def delete_item(item_id: str) -> dict[str, Any]: """ Delete an item. Args: item_id: The unique identifier of the item to delete Returns: A confirmation message Raises: ValueError: If the item is not found """ # In a real implementation: # client = get_client() # return client.delete(f"items/{item_id}") if item_id not in MOCK_ITEMS: raise ValueError(f"Item not found: {item_id}") del MOCK_ITEMS[item_id] return {"status": "deleted", "id": item_id}
  • Registers the delete_item function from the example API module as an MCP tool.
    mcp.tool()(example.delete_item)

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/nickweedon/mcp_server_template'

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