Skip to main content
Glama

grok_session_ensure

Connect or create a Grok session for a Codex task and project path with a specific Git branch. Establishes the session without initiating coding.

Instructions

当任务涉及代码项目时,先调用此工具连接或创建当前 Codex 任务、项目路径和 Git 分支对应的 Grok 会话。它只建立会话,不会让 Grok 开始编码。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNo
project_rootYes
codex_task_idYes
open_observerNo
working_directoryNo
Behavior2/5

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

No annotations provided, so description must bear full burden. It reveals the tool only establishes a session, not coding, but omits details like session reuse, return values, error behavior, and parameter meanings, leaving significant gaps.

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?

Two sentences, front-loaded with condition, no wasted words. Efficient and clear.

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?

For a tool with 5 parameters, no annotations, and no output schema, the description lacks explanation of parameters, return value, edge cases, and behavior under various inputs. Incomplete for robust agent usage.

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 coverage is 0%, so description should explain parameters. It mentions codex_task_id, project_root, and branch implicitly, but does not cover open_observer or working_directory. Partial value, but not sufficient to fully compensate.

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 tool connects or creates a Grok session for a Codex task, project path, and Git branch, and explicitly notes it only establishes a session, not coding. It distinguishes from siblings like grok_task_start and grok_session_close.

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

Usage Guidelines4/5

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

States 'when tasks involve code projects, call this tool first', providing clear context. Also clarifies it does not start coding, implying other tools are for that purpose. Missing explicit alternatives, but context is strong.

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/Nurkic4/grok-to-codex'

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