Skip to main content
Glama

get_student_card_screenshot

Capture a screenshot of your student ID card through the N Lobby school portal's secure authentication flow.

Instructions

Capture a screenshot of the student ID card by following the secure portal redirect flow

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:213-221 (registration)
    Tool registration entry in ListToolsRequestSchema handler, defining the tool name, description, and input schema (empty object).
    {
      name: "get_student_card_screenshot",
      description:
        "Capture a screenshot of the student ID card by following the secure portal redirect flow",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Input schema definition for the tool: empty object (no parameters required).
    inputSchema: {
      type: "object",
      properties: {},
    },
  • MCP CallToolRequestSchema handler for get_student_card_screenshot. Calls this.api.getStudentCardScreenshot() to get the screenshot data, returns text metadata and base64 PNG image content, with error handling.
    case "get_student_card_screenshot":
      try {
        const result = await this.api.getStudentCardScreenshot();
    
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(
                {
                  message:
                    "Student card screenshot captured successfully. Image data attached as base64.",
                  filePath: result.path,
                  studentNo: result.studentNo,
                  secureHost: result.secureHost,
                  callbackUrl: result.callbackUrl,
                  finalUrl: result.finalUrl,
                  elementSize: result.elementSize,
                },
                null,
                2,
              ),
            },
            {
              type: "image",
              mimeType: "image/png",
              data: result.base64,
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: `Error capturing student card screenshot: ${error instanceof Error ? error.message : "Unknown error"}\n\nPlease verify authentication (set_cookies or interactive_login) and ensure the student portal is accessible.`,
            },
          ],
        };
      }
Behavior2/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 a 'secure portal redirect flow,' hinting at authentication or multi-step processes, but doesn't detail what this entails (e.g., user interaction, timeouts, or side effects). For a tool that likely involves sensitive data capture, this is insufficient.

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, efficient sentence that front-loads the core action ('Capture a screenshot') and adds necessary context ('by following the secure portal redirect flow'). Every word contributes to understanding without waste.

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 tool's complexity (involving screenshots and redirect flows) and lack of annotations or output schema, the description is minimally adequate. It states what the tool does but lacks details on behavior, output format, or error handling, leaving gaps for an AI agent.

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 input schema has 0 parameters with 100% coverage, so there's no need for parameter documentation in the description. The description appropriately avoids discussing parameters, earning a baseline score of 4 for not adding unnecessary information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Capture a screenshot') and target resource ('student ID card'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from its many siblings (like get_account_info or get_schedule), which would require a 5.

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

Usage Guidelines2/5

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

The description mentions 'following the secure portal redirect flow,' which provides some context about the process, but it doesn't offer explicit guidance on when to use this tool versus alternatives (e.g., when a screenshot is needed vs. other student data tools). No exclusions or prerequisites are stated.

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/minagishl/nlobby-cli'

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