Skip to main content
Glama

set_context

Initialize conversation context by specifying a Zulip stream and topic to fetch recent message history for AI agents or bots.

Instructions

Initialize the session context for a conversation. Call this once at the start of a session to set where you're chatting.

Args: stream: The name of the Zulip stream/channel. topic: The topic name within the stream. num_messages: Number of recent messages to fetch for context (default 20).

Returns: Confirmation with recent message history to get you up to speed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
streamYes
topicYes
num_messagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool 'Initialize[s] the session context' and fetches recent messages, which implies read-only behavior, but doesn't explicitly state permissions, rate limits, or whether it modifies server state. It adds some context (one-time use, fetches history) but lacks details on error handling or side effects.

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 well-structured and appropriately sized, with a clear purpose statement followed by Args and Returns sections. Every sentence adds value, though the 'Args' and 'Returns' labels are slightly redundant with schema fields, but they help readability.

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?

Given the tool's moderate complexity (session initialization with 3 parameters), no annotations, and an output schema (implied by 'Returns'), the description is fairly complete. It covers purpose, usage, parameters, and return confirmation, though it could benefit from more behavioral details like error cases or session persistence.

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?

The schema description coverage is 0%, so the description must compensate. It provides clear semantics for all three parameters: 'stream' as 'The name of the Zulip stream/channel', 'topic' as 'The topic name within the stream', and 'num_messages' as 'Number of recent messages to fetch for context (default 20)'. This adds meaningful context beyond the bare schema types.

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's purpose with specific verbs ('Initialize the session context') and resources ('Zulip stream/channel', 'topic'), distinguishing it from siblings like 'send_message' or 'get_messages' by focusing on session setup rather than message operations. It explicitly defines the action as a one-time initialization at session start.

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?

The description provides explicit usage guidance: 'Call this once at the start of a session to set where you're chatting.' This clearly indicates when to use it (session initialization) and implies when not to use it (after session start), differentiating it from ongoing interaction tools like 'reply' or 'listen'.

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/windborne/zulipmcp'

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