Skip to main content
Glama

grok_agent_session_begin

Begin a session with plan compilation and budget enforcement. Submit intent, goal, and budget tier to receive a bounded execution plan, tool denials, and host script before proceeding.

Instructions

Session Protocol v1.2: begin session with plan compiler + budget guard. Pass intent, optional goal (≤500), host_budget tiny|small|normal. Returns mode, plan[≤5], budget, deny_tools, host_script, skill_ref. Call first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalNoUser goal ≤500 chars
intentNoauto
host_budgetNosmall
project_rootNo
test_commandsNo
correlation_idNo
max_tool_callsNo
expected_artifactsNo
Install Server

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the operation's return payload and the presence of a 'budget guard'. It does not explain side effects, whether an existing session is replaced, error behavior, or persistence implications of beginning a session, leaving meaningful behavioral gaps.

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

Conciseness4/5

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

The description is compact and front-loaded with the protocol version and core action before listing parameters and returns. The 'Session Protocol v1.2' prefix adds minor noise, but every other clause earns its place.

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 an 8-parameter tool with no output schema and no annotations, the description is too sparse. It helps an agent make a default 'call first' invocation, but it does not explain how to use five optional parameters, what the returned plan mode means, or how to react to deny_tools, making the description incomplete for the tool's complexity.

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?

Schema description coverage is only 13%, and the description mentions only intent, goal, and host_budget, leaving project_root, test_commands, correlation_id, max_tool_calls, and expected_artifacts unexplained. For those undocumented parameters, the description adds almost no semantic value beyond what the schema already provides.

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 identifies the operation as 'begin session' with a specific protocol resource, and the return fields ('mode, plan, budget, deny_tools, host_script, skill_ref') give it a distinct identity. It does not explicitly compare itself to sibling tools such as grok_agent_start or grok_agent_session_next, so it falls just short of full sibling differentiation.

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?

'Call first' gives explicit positional guidance within the session lifecycle, which is valuable and actionable. However, it does not state when to prefer this over grok_agent_start or grok_agent_session_tick, nor does it mention any exclusions or preconditions beyond being first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/zai-one/grok-build-mcp'

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