Skip to main content
Glama

ai_session_ensure

Ensures a cloud session for a project, creating or reusing one based on external ID. Use to manage AI conversation contexts per workspace.

Instructions

Crea o reutiliza una Session en el backend cloud (Django), asociada a un Project. Si existe una sesión con el mismo external_id para ese project, retorna la primera.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesProject slug en cloud (requerido)
external_idNoID externo (conversación/run). Recomendado.
titleNoTítulo opcional
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 for behavioral traits. It mentions creation and reuse but omits key details: idempotency, side effects on the project, return value structure, authentication needs, or error conditions. For a mutating tool that creates/reuses resources, significant transparency gaps remain.

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 sentence in Spanish that concisely states the primary behavior (create/reuse) and the conditional reuse logic. No wasted words; the action is front-loaded with the verb. Perfect conciseness for the information provided.

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

Completeness3/5

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

Given the absence of an output schema and annotations, the description does not explain the return value (e.g., session ID, object, boolean) or error scenarios. It adequately describes input parameters and core behavior but leaves the agent guessing about what to expect as output, which is a notable gap for a tool that creates or retrieves a resource.

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

Parameters4/5

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

Schema coverage is 100%, baseline is 3. The description adds meaning beyond the schema by explaining 'project' is a cloud slug, 'external_id' is recommended as an external conversation/run ID, and 'title' is optional. This provides useful context for parameter usage.

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 creates or reuses a session in the cloud backend (Django) associated with a Project, and explicitly specifies the reuse condition (same external_id for that project). This is a specific verb+resource combination and is well-differentiated from sibling tools, none of which target session management.

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 provides clear context for when to use the tool: when a session needs to be created or reused for a project with an optional external_id. It does not explicitly state when not to use or list alternatives, but the context is sufficient given no sibling tools overlap in functionality.

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/dannybombastic/mcp-standard-ai'

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