Skip to main content
Glama
sifter-ai

sifter-mcp

Official

delete_sift

Permanently delete a sift and all its records. Provide the sift ID to remove the entire sift from the system.

Instructions

Delete a sift and all its records.

Args:
    sift_id: The sift identifier

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sift_idYes

Implementation Reference

  • MCP tool handler for 'delete_sift' - deletes a sift and all its records via the SDK client.
    @mcp.tool()
    async def delete_sift(sift_id: str) -> dict:
        """Delete a sift and all its records.
    
        Args:
            sift_id: The sift identifier
        """
        async with _get_client() as client:
            handle = await client.get_sift(sift_id)
            await handle.delete()
        return {"deleted": True}
  • The FastMCP instance ('sifter') that registers all MCP tools including delete_sift via @mcp.tool().
    mcp = FastMCP("sifter", streamable_http_path="/", stateless_http=True, transport_security=_transport_security)
  • FastAPI REST API handler for DELETE /api/sifts/{sift_id} - the server-side endpoint that performs the actual deletion with auth and DB cleanup.
    @router.delete("/{sift_id}")
    async def delete_sift(
        sift_id: str,
        principal: Principal = Depends(get_current_principal),
        db=Depends(get_db),
    ):
        svc = SiftService(db)
        sift = await svc.get(sift_id, org_id=principal.org_id)
        if not sift:
            raise HTTPException(status_code=404, detail="Sift not found")
        deleted = await svc.delete(sift_id)
        if not deleted:
            raise HTTPException(status_code=404, detail="Sift not found")
        await db["folder_extractors"].delete_many({"sift_id": sift_id})
        await db["document_sift_statuses"].delete_many({"sift_id": sift_id})
        await db["processing_queue"].delete_many({"sift_id": sift_id, "status": {"$in": ["pending", "processing"]}})
        return {"deleted": True}
  • SiftService.delete() - the service layer that performs the actual MongoDB deletion of a sift and its results.
    async def delete(self, sift_id: str) -> bool:
        await self.results_service.delete_by_sift_id(sift_id)
        result = await self.col.delete_one({"_id": ObjectId(sift_id)})
        return result.deleted_count > 0
  • FastAPI router registration at /api/sifts - the route prefix under which delete_sift is registered as DELETE /{sift_id}.
    router = APIRouter(prefix="/api/sifts", tags=["sifts"])
Behavior3/5

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

The description discloses the destructive behavior of deleting both the sift and its records, but with no annotations provided, it lacks details on permissions, reversibility, or other side effects.

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?

The description is extremely concise, with a single sentence and an explicit argument list. Every element is necessary and no words are wasted.

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?

While the tool is simple (one parameter, no output schema), the description lacks information on return values, error cases, or when to use compared to other tools.

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 description adds minimal meaning by restating 'sift_id' as 'The sift identifier', but with 0% schema coverage, more detail on the parameter's source or format would be helpful.

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 clearly states the action 'Delete' and the resource 'sift', and specifies it also deletes all records. It distinguishes itself from sibling tools like create_sift or update_sift.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, nor does it mention any prerequisites or when not to use it.

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/sifter-ai/sifter'

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