Skip to main content
Glama

new_session

Creates a new AI conversation session, returning a session URL and platform for follow-up queries. Use only when no session exists or user requests a new dialogue.

Instructions

向 Web AI 对话服务发起新的咨询对话。返回值中包含 sessionUrl 和 platform,后续调用 ask_ai 时必须传入这两个值。不要在消息中包含密钥等敏感信息。注意:如果你的上下文中已有之前 new_session 返回的 sessionUrl,应优先使用 ask_ai 继续该对话,而不是创建新会话。只在以下情况使用 new_session:1) 上下文中没有 sessionUrl(首次咨询)2) 用户明确要求新建对话。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes你要咨询的问题,包括问题描述、已尝试的方案、卡在哪里、关键代码片段
platformNo使用哪个 AI 平台:doubao(豆包)或 chatgptdoubao
Behavior4/5

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

No annotations provided, so description carries full burden. It covers return values, security (no sensitive info), and session reuse. However, it lacks details on error handling, rate limits, or state changes beyond creation.

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?

Concise single paragraph, front-loaded with main purpose, then specific guidelines. Every sentence adds value with no redundancy.

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

Completeness4/5

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

No output schema, but description mentions essential return values (sessionUrl, platform). For a session creation tool, it is fairly complete, though could detail response structure and error cases.

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 coverage is 100%, and description adds value by explaining what to include in message (problem, attempts, blockers, code) and platform options. Also warns against including sensitive info.

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?

Description explicitly states the tool initiates a new consultation session with Web AI, mentions return values (sessionUrl, platform), and clearly distinguishes from ask_ai by specifying when to use each.

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

Usage Guidelines5/5

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

Provides specific conditions for use (no sessionUrl in context or user requests new session) and advises preferring ask_ai otherwise, effectively differentiating from the sibling tool.

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/SoulChildTc/ai-bridge'

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