Skip to main content
Glama

update_status

Update your personal status details including location, device, and notes.

Instructions

Update your status information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
cityNo
stateNo
countryNo
laptop_osNo
laptop_modelNo
notesNo

Implementation Reference

  • The main handler for the 'update_status' tool in call_tool(). It retrieves the current status, updates fields (name, location, laptop_details, notes), sets last_updated, persists via db.update_status(), and returns the updated status as JSON.
    elif name == "update_status":
        current_status = db.get_status()
        
        # Update fields if provided
        if "name" in arguments:
            current_status.name = arguments["name"]
        
        if any(key in arguments for key in ["city", "state", "country"]):
            if not current_status.current_location:
                current_status.current_location = Location()
            if "city" in arguments:
                current_status.current_location.city = arguments["city"]
            if "state" in arguments:
                current_status.current_location.state = arguments["state"]
            if "country" in arguments:
                current_status.current_location.country = arguments["country"]
        
        if any(key in arguments for key in ["laptop_os", "laptop_model"]):
            if not current_status.laptop_details:
                current_status.laptop_details = LaptopDetails()
            if "laptop_os" in arguments:
                current_status.laptop_details.os = arguments["laptop_os"]
            if "laptop_model" in arguments:
                current_status.laptop_details.model = arguments["laptop_model"]
        
        if "notes" in arguments:
            current_status.notes = arguments["notes"]
        
        current_status.last_updated = datetime.now()
        updated_status = db.update_status(current_status)
        
        return [TextContent(
            type="text",
            text=json.dumps(updated_status.model_dump(), default=str, indent=2)
        )]
  • Tool registration with input schema for 'update_status'. Defines optional properties: name, city, state, country, laptop_os, laptop_model, notes.
    Tool(
        name="update_status",
        description="Update your status information",
        inputSchema={
            "type": "object",
            "properties": {
                "name": {"type": "string"},
                "city": {"type": "string"},
                "state": {"type": "string"},
                "country": {"type": "string"},
                "laptop_os": {"type": "string"},
                "laptop_model": {"type": "string"},
                "notes": {"type": "string"}
            }
        }
    ),
  • src/server.py:99-321 (registration)
    The list_tools() function that registers all tools including 'update_status' (lines 112-127) as an MCP tool with the server.
    @server.list_tools()
    async def list_tools() -> List[Tool]:
        """List available tools"""
        return [
            Tool(
                name="get_status",
                description="Get your current status including location, laptop details, and permissions",
                inputSchema={
                    "type": "object",
                    "properties": {},
                    "required": []
                }
            ),
            Tool(
                name="update_status",
                description="Update your status information",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "name": {"type": "string"},
                        "city": {"type": "string"},
                        "state": {"type": "string"},
                        "country": {"type": "string"},
                        "laptop_os": {"type": "string"},
                        "laptop_model": {"type": "string"},
                        "notes": {"type": "string"}
                    }
                }
            ),
            Tool(
                name="create_project",
                description="Create a new project",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "name": {"type": "string"},
                        "description": {"type": "string"},
                        "status": {"type": "string", "enum": ["not_started", "in_progress", "on_hold", "completed", "cancelled"]},
                        "priority": {"type": "string", "enum": ["low", "medium", "high", "urgent"]},
                        "start_date": {"type": "string", "format": "date-time"},
                        "end_date": {"type": "string", "format": "date-time"},
                        "tags": {"type": "array", "items": {"type": "string"}}
                    },
                    "required": ["name"]
                }
            ),
            Tool(
                name="list_projects",
                description="List all projects or filter by status",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "status": {"type": "string", "enum": ["not_started", "in_progress", "on_hold", "completed", "cancelled"]}
                    }
                }
            ),
            Tool(
                name="get_project",
                description="Get details of a specific project",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "project_id": {"type": "string"}
                    },
                    "required": ["project_id"]
                }
            ),
            Tool(
                name="update_project",
                description="Update a project's information",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "project_id": {"type": "string"},
                        "name": {"type": "string"},
                        "description": {"type": "string"},
                        "status": {"type": "string", "enum": ["not_started", "in_progress", "on_hold", "completed", "cancelled"]},
                        "priority": {"type": "string", "enum": ["low", "medium", "high", "urgent"]},
                        "progress": {"type": "integer", "minimum": 0, "maximum": 100},
                        "notes": {"type": "string"}
                    },
                    "required": ["project_id"]
                }
            ),
            Tool(
                name="add_project_task",
                description="Add a task to a project",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "project_id": {"type": "string"},
                        "title": {"type": "string"},
                        "description": {"type": "string"},
                        "status": {"type": "string", "enum": ["todo", "in_progress", "done", "blocked"]},
                        "priority": {"type": "string", "enum": ["low", "medium", "high", "urgent"]},
                        "due_date": {"type": "string", "format": "date-time"}
                    },
                    "required": ["project_id", "title"]
                }
            ),
            Tool(
                name="create_todo",
                description="Create a new todo/reminder",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "title": {"type": "string"},
                        "description": {"type": "string"},
                        "due_date": {"type": "string", "format": "date-time"},
                        "reminder_date": {"type": "string", "format": "date-time"},
                        "priority": {"type": "string", "enum": ["low", "medium", "high", "urgent"]},
                        "tags": {"type": "array", "items": {"type": "string"}}
                    },
                    "required": ["title"]
                }
            ),
            Tool(
                name="list_todos",
                description="List todos, optionally filtered by completion status",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "completed": {"type": "boolean"}
                    }
                }
            ),
            Tool(
                name="complete_todo",
                description="Mark a todo as completed",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "todo_id": {"type": "string"}
                    },
                    "required": ["todo_id"]
                }
            ),
            Tool(
                name="create_calendar_event",
                description="Create a calendar event",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "title": {"type": "string"},
                        "description": {"type": "string"},
                        "start_time": {"type": "string", "format": "date-time"},
                        "end_time": {"type": "string", "format": "date-time"},
                        "location": {"type": "string"},
                        "attendees": {"type": "array", "items": {"type": "string"}},
                        "reminder_minutes": {"type": "integer"}
                    },
                    "required": ["title", "start_time", "end_time"]
                }
            ),
            Tool(
                name="list_calendar_events",
                description="List calendar events within a date range",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "start_date": {"type": "string", "format": "date-time"},
                        "end_date": {"type": "string", "format": "date-time"}
                    }
                }
            ),
            Tool(
                name="upload_document",
                description="Upload a document to the personal assistant",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "title": {"type": "string"},
                        "content_base64": {"type": "string", "description": "Base64 encoded file content"},
                        "description": {"type": "string"},
                        "tags": {"type": "array", "items": {"type": "string"}}
                    },
                    "required": ["title", "content_base64"]
                }
            ),
            Tool(
                name="create_external_document",
                description="Create a reference to an external document (e.g., cloud storage link)",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "title": {"type": "string"},
                        "external_url": {"type": "string"},
                        "description": {"type": "string"},
                        "tags": {"type": "array", "items": {"type": "string"}}
                    },
                    "required": ["title", "external_url"]
                }
            ),
            Tool(
                name="list_documents",
                description="List all documents, optionally filtered by tags",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "tags": {"type": "array", "items": {"type": "string"}}
                    }
                }
            ),
            Tool(
                name="get_document",
                description="Get details of a specific document",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "document_id": {"type": "string"}
                    },
                    "required": ["document_id"]
                }
            ),
            Tool(
                name="get_dashboard",
                description="Get a dashboard view of active projects, upcoming todos, and events",
                inputSchema={
                    "type": "object",
                    "properties": {}
                }
            )
        ]
  • TinyDBDatabase implementation of update_status() - truncates the status table and inserts the serialized status data (with thread lock).
    class TinyDBDatabase(DatabaseInterface):
  • SQLiteDatabase implementation of update_status() - uses INSERT OR REPLACE into user_status table within a transaction.
    def update_status(self, status: UserStatus) -> UserStatus:
        conn = self._get_connection()
        with self._transaction():
            conn.execute(
                "INSERT OR REPLACE INTO user_status (id, data) VALUES (1, ?)",
                (self._serialize(status),)
            )
        return status
Behavior1/5

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

With no annotations present, the description bears full responsibility for disclosing behavior. It only states 'Update your status information' without mentioning whether the operation is destructive, if partial updates are possible, what authorization is needed, or any side effects. This is severely insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, which is concise, but it sacrifices essential information. It under-specifies the tool's functionality and provides no structure or elaboration, making it less useful despite its brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters, no output schema, and no annotations, the description is far too sparse. It fails to cover the tool's purpose, parameter usage, expected output, or operational context, leaving the agent unable to use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, meaning none of the 7 parameters have descriptions in the schema. The tool description adds no meaning to any parameter. The agent cannot infer what 'name', 'city', 'notes', etc., represent in this context.

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

Purpose3/5

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

The description states the tool updates status information, which aligns with the name. However, it is vague on what 'status information' entails; the schema reveals fields like personal details and laptop specs, which could be better described as profile information. Sibling tools include 'get_status' and 'update_project', but no differentiation is provided.

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 given on when to use this tool versus alternatives like 'update_project' or 'get_status'. There is no mention of prerequisites, context, or exclusions. The agent gets no help in selecting this tool over others.

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/swapnilsurdi/mcp-pa'

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