Skip to main content
Glama

get_account_info

Extract account details by parsing Next.js flight data from rendered pages to access user information in the school portal.

Instructions

Extract account information by parsing Next.js flight data from a rendered page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for get_account_info: fetches account info via API and returns JSON response or error message.
    case "get_account_info":
      try {
        const accountInfo = await this.api.getAccountInfoFromScript();
    
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(accountInfo, null, 2),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: `Error: ${error instanceof Error ? error.message : "Unknown error"}\n\nEnsure valid authentication cookies are set with the set_cookies tool.`,
            },
          ],
        };
      }
  • src/server.ts:204-212 (registration)
    Registration of the get_account_info tool in ListToolsRequestHandler, defining name, description, and empty input schema.
    {
      name: "get_account_info",
      description:
        "Extract account information by parsing Next.js flight data from a rendered page",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Input schema for get_account_info tool: empty object (no parameters required).
    inputSchema: {
      type: "object",
      properties: {},
    },
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It mentions parsing from a rendered page, implying a read operation, but doesn't disclose behavioral traits like whether it requires authentication, potential rate limits, error conditions, or what format the extracted information is in. This is a significant gap for a tool with no annotation coverage.

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 with no wasted words. It's front-loaded with the core action ('Extract account information') and provides necessary context ('parsing Next.js flight data from a rendered page') without redundancy.

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

Completeness2/5

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

Given the complexity (parsing flight data from a rendered page), lack of annotations, and no output schema, the description is incomplete. It doesn't explain what account information is extracted, the return format, or error handling, leaving critical gaps for an AI agent to use it effectively.

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 tool has 0 parameters with 100% schema description coverage, so the schema fully documents the lack of inputs. The description adds value by implying the tool operates on an implicit rendered page context, but doesn't specify if this is a default or requires prior setup. Baseline is 4 for zero parameters, as no param info is needed.

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 tool's purpose with a specific verb ('Extract') and resource ('account information'), and specifies the source ('parsing Next.js flight data from a rendered page'). However, it doesn't explicitly differentiate from sibling tools like 'get_student_card_screenshot' or 'verify_authentication', which might also retrieve account-related data.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a rendered page), exclusions, or compare to siblings like 'get_student_card_screenshot' for visual account data or 'verify_authentication' for auth status.

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