Skip to main content
Glama

kiro_session_create

Create a new CLI session for managing multiple projects with isolated contexts and faster response times through process pooling.

Instructions

Create a new kiro-cli session. If working_directory is not provided or does not exist, the current directory will be used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentNoOptional agent name to use for this session
working_directoryNoWorking directory for the session. Must be an existing directory path. If not provided or invalid, defaults to current directory.

Implementation Reference

  • Primary handler function that implements the logic for the kiro_session_create tool by calling SessionManager.create_session.
    async def _handle_session_create(
        session_manager: SessionManager,
        arguments: dict[str, Any]
    ) -> dict[str, Any]:
        """Handle kiro_session_create tool call."""
        agent = arguments.get("agent")
        working_directory = arguments.get("working_directory")
    
        session = await session_manager.create_session(agent, working_directory)
        return session.to_info().to_dict()
  • Tool schema definition including name, description, and input schema for kiro_session_create.
    {
        "name": "kiro_session_create",
        "description": "Create a new kiro-cli session. If working_directory is not provided or does not exist, the current directory will be used.",
        "inputSchema": {
            "type": "object",
            "properties": {
                "agent": {
                    "type": "string",
                    "description": "Optional agent name to use for this session"
                },
                "working_directory": {
                    "type": "string",
                    "description": "Working directory for the session. Must be an existing directory path. If not provided or invalid, defaults to current directory."
                }
            }
        }
    },
  • Tool dispatch/registration in the main call_tool handler where kiro_session_create is routed to its handler function.
    elif name == "kiro_session_create":
        result = await _handle_session_create(session_manager, arguments)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While it mentions the default directory behavior, it doesn't cover critical aspects like whether this requires specific permissions, what a 'session' entails (e.g., resource usage, persistence), error handling, or what the tool returns. For a creation tool with zero annotation coverage, this is a significant gap in transparency.

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 appropriately sized and front-loaded, consisting of two concise sentences that directly address the tool's purpose and key parameter behavior. There is no wasted text, making it efficient for an agent to parse.

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?

Given the complexity of a session creation tool (which likely involves state management and resource allocation), the description is insufficient. With no annotations, no output schema, and minimal behavioral details, it fails to provide complete context for an agent to understand the full implications of invoking this tool, such as what is returned or how sessions interact with 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?

Schema description coverage is 100%, meaning the input schema already documents both parameters ('agent' and 'working_directory') with their descriptions. The description adds marginal value by reinforcing the default behavior for 'working_directory', but doesn't provide additional semantic context beyond what the schema offers, such as examples or edge cases.

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

Purpose4/5

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

The description clearly states the action ('Create') and resource ('new kiro-cli session'), making the purpose understandable. However, it doesn't explicitly differentiate this from sibling tools like 'kiro_session_switch' or 'kiro_session_list', which would require more specific context about what distinguishes session creation from other session operations.

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 provides implied usage context by mentioning the default behavior for 'working_directory' (defaults to current directory if not provided or invalid). However, it lacks explicit guidance on when to use this tool versus alternatives like 'kiro_session_switch' or prerequisites, leaving some ambiguity for the agent.

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/vanphappi/kiro-cli-mcp'

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