Skip to main content
Glama

context_open

Resume or open a persistent working context for the current session. Specify a space reference to pick up prior state, while a token budget and query shape the initial context pack.

Instructions

Open or resume durable private working context for this host session.

Call at task/session start and after compaction. Supply the response's opaque contextRef as space_ref and bindingRef as session_ref on later calls; tenant, company, and user scope always come from authentication. The returned pack is bounded by token_budget (128..16384) and augments, but does not enlarge, the model's native context window.

Args: host: Harness name, for example codex, claude_code, or chatgpt host_session_ref: Optional opaque session/thread reference from the host model: Optional active model name space_ref: Existing Context Space reference, or empty to create/resume token_budget: Maximum tokens in the initial working pack (128..16384) query: Optional current task or prompt used to rank the initial pack repository_json: Optional repository fingerprint JSON object company_ref: Optional public company handle; must be paired with project_ref project_ref: Optional public project handle resolved in authenticated scope

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
modelNo
queryNo
space_refNo
company_refNo
project_refNo
token_budgetNo
repository_jsonNo{}
host_session_refNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does well by disclosing that tenant/company/user scope comes from authentication, that the returned pack is bounded by token_budget, and that it augments but does not enlarge the native context window. This gives an agent useful expectations about side effects and boundaries. It could still note things like error behavior or whether creating context persists externally, but current coverage is strong.

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 well-organized: a front-loaded opening that states purpose and usage, followed by a compact, single-purpose Args list. Every sentence adds information—no filler or repetition of schema titles. Despite describing nine parameters, it remains tight and scannable.

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

Completeness5/5

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

For a complex tool with nine parameters, no annotations, and no schema descriptions, the description provides comprehensive guidance: when to call, how to chain refs, auth scoping, token limits, parameter semantics, and cross-parameter constraints. An output schema exists, so return values are covered elsewhere; nothing critical for correct invocation is missing.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates fully by explaining all nine parameters, including the pairing constraint between company_ref and project_ref, the token_budget range, the meaning of an empty space_ref, and the ranking role of query. This is exactly the kind of semantic enrichment the schema lacks.

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 tool's function: 'Open or resume durable private working context for this host session.' This is a specific verb plus resource, and it is readily distinguishable from sibling tools like context_read or context_status. However, it does not explicitly name or differentiate from those siblings, so it falls short of the top score.

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?

The description gives explicit invocation timing: 'Call at task/session start and after compaction.' It also explains how to use returned references on later calls, which is practical usage guidance. It does not mention exclusions or specific alternatives, so it stops short of a 5.

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/RPasquale/lightbulb-mcp'

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