Skip to main content
Glama
Alex-Shirazi1

AI Switch MCP Server

get_latest_session

Retrieve the most recently updated session for a project, including handoff context to continue work across AI assistants.

Instructions

Get the most recently updated session, optionally scoped by project path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathNo
include_handoffNo
target_assistantNo
include_completedNo
Behavior3/5

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

The description clearly indicates a read operation ('Get') and an optional scoping behavior, but it does not disclose edge cases (e.g., behavior when no sessions exist), return format, or any permission requirements. Since there are no annotations, the description carries the full transparency burden but leaves these aspects unaddressed.

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 a single, well-structured sentence. It front-loads the action and resource, includes an optional modifier, and contains no unnecessary words or repetition.

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

Completeness2/5

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

The tool has 4 parameters and no output schema, yet the description only covers the core retrieval action. It does not explain how the parameters affect behavior, what the return value looks like, or any constraints. This is insufficient for an agent to use the tool correctly without additional information.

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

Parameters2/5

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

With schema description coverage at 0%, the description must compensate for the lack of parameter documentation. It only hints at 'project_path' via the phrase 'optionally scoped by project path.' The other three parameters (include_handoff, target_assistant, include_completed) are not mentioned at all, leaving their meanings undefined.

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 uses a specific verb 'Get' with a clear resource 'session' and a defining qualifier ('most recently updated'). This clearly distinguishes it from get_session (which targets a specific session) and list_sessions (which lists multiple sessions), and the optional project path scope adds further precision.

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

Usage Guidelines3/5

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

The description implies usage for retrieving the latest session and mentions optional scoping, but it does not explicitly state when to choose this tool over alternatives like get_session or list_sessions, nor does it provide any exclusions or prerequisites. The guidance is implicit rather than explicit.

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/Alex-Shirazi1/AISwitchMCPServer'

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