Skip to main content
Glama

get_session

Retrieve full details of an exploratory session including mission, status, assignee, linked release, attachments, issues, and findings by providing the session ID.

Instructions

Get the full details of one exploratory session: name, mission, status, assignee, linked release, attachments, linked issues, findings. sessionId accepts either the internal _id or a counter-style ID like 'SES-12'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID (required).
sessionIdYesInternal _id or counter-style ID (required).

Implementation Reference

  • The main handler function for the get_session tool. It validates args, calls the API endpoint, and returns the session details as JSON text content.
    export async function handleGetSession(args?: GetSessionArgs) {
      const token = getApiKey(args);
      if (!token) {
        throw new Error(
          "Missing TESTDINO_PAT environment variable. Configure it in your .cursor/mcp.json under 'env'."
        );
      }
      if (!args?.projectId) throw new Error("projectId is required");
      if (!args?.sessionId) throw new Error("sessionId is required");
    
      try {
        const url = endpoints.getSession({
          projectId: args.projectId,
          sessionId: args.sessionId,
        });
        const response = await apiRequestJson<unknown>(url, {
          headers: { Authorization: `Bearer ${token}` },
        });
        return {
          content: [{ type: "text", text: JSON.stringify(response, null, 2) }],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        throw new Error(`Failed to get session: ${msg}`);
      }
    }
  • The TypeScript interface (GetSessionArgs) and inputSchema for the get_session tool defining required fields: projectId and sessionId.
    interface GetSessionArgs {
      projectId: string;
      sessionId: string;
    }
    
    export const getSessionTool = {
      name: "get_session",
      description:
        "Get the full details of one exploratory session: name, mission, status, assignee, linked release, attachments, linked issues, findings. sessionId accepts either the internal _id or a counter-style ID like 'SES-12'.",
      inputSchema: {
        type: "object",
        properties: {
          projectId: { type: "string", description: "Project ID (required)." },
          sessionId: {
            type: "string",
            description: "Internal _id or counter-style ID (required).",
          },
        },
        required: ["projectId", "sessionId"],
      },
    };
  • The tool definition object (getSessionTool) that registers 'get_session' as a named tool with description and input schema.
    export const getSessionTool = {
      name: "get_session",
      description:
  • src/index.ts:333-337 (registration)
    The handler routing in the main server: when tool name is 'get_session', calls handleGetSession with the parsed args.
    if (name === "get_session") {
      return await handleGetSession(
        args as Parameters<typeof handleGetSession>[0]
      );
    }
  • The URL builder helper that constructs the API endpoint path for a session: GET /api/mcp/sessions/:projectId/:sessionId.
    getSession: (params: { projectId: string; sessionId: string }): string => {
      const baseUrl = getBaseUrl();
      const { projectId, sessionId } = params;
      return `${baseUrl}/api/mcp/sessions/${projectId}/${sessionId}`;
    },
Behavior3/5

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

No annotations are provided, so the description carries the burden. It implies a read-only operation by stating 'Get...' but does not explicitly disclose behavioral traits like permissions, side effects, or rate limits.

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 sentences, concise and front-loaded with the purpose, listing key fields. 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?

With no output schema, the description adequately lists the returned fields (name, mission, status, etc.). It covers the main aspects of the tool for a retrieval operation given two simple required parameters.

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% with descriptions for both parameters. The description adds semantic value by explaining sessionId accepts both internal _id and counter-style IDs like 'SES-12', which is not in the schema.

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 gets full details of an exploratory session and lists specific fields (name, mission, status, assignee, etc.). It also distinguishes from siblings like list_sessions and update_session by specifying it retrieves a single session.

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

Usage Guidelines3/5

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

The description explains what the tool does but does not provide explicit guidance on when to use it vs alternatives or when not to use it. The sibling list offers implicit context but no direct usage recommendations.

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/testdino-hq/testdino-mcp'

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