Skip to main content
Glama

delete_resume

Remove a LaTeX resume file from the LaTeX Resume MCP server to manage storage and organize your resume documents.

Instructions

Delete a LaTeX resume file. Args: filename: Name of the resume file to delete

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes

Implementation Reference

  • The main handler function for the 'delete_resume' tool. It deletes the specified LaTeX resume file from the resumes directory. Decorated with @mcp.tool(), which also handles registration with the MCP server. Uses helper functions ensure_dirs() and ensure_tex_extension().
    def delete_resume(filename: str) -> str: """ Delete a LaTeX resume file. Args: filename: Name of the resume file to delete """ ensure_dirs() filepath = get_resumes_dir() / ensure_tex_extension(filename) if not filepath.exists(): return json.dumps({"error": f"Resume '{filename}' not found"}) try: filepath.unlink() return json.dumps({"success": True, "deleted": str(filepath)}) except Exception as e: return json.dumps({"error": f"Error deleting file: {str(e)}"})
  • The @mcp.tool() decorator on delete_resume registers it as an MCP tool with the FastMCP server instance.
    def delete_resume(filename: str) -> str: """ Delete a LaTeX resume file. Args: filename: Name of the resume file to delete """ ensure_dirs() filepath = get_resumes_dir() / ensure_tex_extension(filename) if not filepath.exists(): return json.dumps({"error": f"Resume '{filename}' not found"}) try: filepath.unlink() return json.dumps({"success": True, "deleted": str(filepath)}) except Exception as e: return json.dumps({"error": f"Error deleting file: {str(e)}"})

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/dannywillowliu-uchi/resume_mcp'

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