We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BnJam/stac-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
delete_item.py•714 B
"""Tool for deleting a STAC Item."""
from __future__ import annotations
from typing import Any
from stac_mcp.tools.client import stac_client
from stac_mcp.tools.common import ToolInput
class DeleteItem:
"""A tool for deleting a STAC Item."""
description = "Delete STAC Item"
@property
def input_schema(self) -> type[ToolInput]:
"""The input schema for the tool."""
class DeleteItemInput(ToolInput):
"""Input for deleting a STAC Item."""
collection_id: str
item_id: str
return DeleteItemInput
def run(self, **kwargs: Any) -> dict[str, Any] | str:
"""Run the tool."""
return stac_client.delete_item(**kwargs)