Skip to main content
Glama

find_session

Recover a learner's session ID by providing the learner ID and optional topic after reopening a chat window.

Instructions

Find existing sessions by learner and optionally topic.

Use this to recover a session id after a chat window is reopened.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicNo
learner_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations available, the description carries the full burden. It clearly implies a read-only lookup of existing sessions and says the result is a session id, but it does not mention whether multiple sessions may be returned, what happens on no match, or any other behavioral details.

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 two short sentences with no filler. The core function is front-loaded, and the usage context is clearly separated for 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?

For a simple two-parameter lookup with no nested objects or output schema, the description provides enough context: the purpose, the filter parameters, and the use case. It could be stronger by noting whether it returns one session id or a list, but the essential information is present.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It does explain that learner_id is the primary filter and topic is optional, but it adds little beyond what the schema already encodes (required learner_id, topic with null default) and does not clarify matching semantics or return behavior.

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 states a specific verb ('Find') and a resource ('existing sessions') with clear search criteria ('by learner and optionally topic'). It also states the concrete outcome ('recover a session id'), which differentiates it from create_session and get_session_info.

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 second sentence gives a clear trigger condition: 'after a chat window is reopened.' This tells an agent when this tool is appropriate, though it does not explicitly mention alternatives or when not to use it.

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