Skip to main content
Glama

Get Account

get_account

Retrieve current user account information including name, ID, email, and role for Codecks project management access.

Instructions

Get current account info (name, id, email, role).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool registration for 'get_account' with metadata and handler that calls client.getAccount() and returns formatted JSON response
    export function registerReadTools(server: McpServer, client: CodecksClient): void {
      server.registerTool(
        "get_account",
        {
          title: "Get Account",
          description: "Get current account info (name, id, email, role).",
          inputSchema: z.object({}),
        },
        async () => {
          try {
            const result = await client.getAccount();
            return {
              content: [{ type: "text", text: JSON.stringify(finalizeToolResult(result)) }],
            };
          } catch (err) {
            return {
              content: [
                {
                  type: "text",
                  text: JSON.stringify(finalizeToolResult(handleError(err))),
                },
              ],
            };
          }
        },
      );
  • Tool handler that executes the get_account logic by calling client.getAccount() and formatting the result with error handling
    async () => {
      try {
        const result = await client.getAccount();
        return {
          content: [{ type: "text", text: JSON.stringify(finalizeToolResult(result)) }],
        };
      } catch (err) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(finalizeToolResult(handleError(err))),
            },
          ],
        };
      }
    },
  • Implementation of getAccount() method that queries the Codecks API to retrieve account info (id, name, email, role) and throws SetupError if account cannot be fetched
    async getAccount(): Promise<Record<string, unknown>> {
      const result = await query({
        _root: [{ account: ["id", "name", "email", "role"] }],
      });
      const acct = result.account as Record<string, unknown> | undefined;
      if (!acct) throw new SetupError("[TOKEN_EXPIRED] Could not fetch account.");
      return acct;
    }
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 implies a read-only operation ('Get') but doesn't disclose behavioral traits like authentication requirements, rate limits, error conditions, or what 'current' means (e.g., session-based vs. system-wide). For a tool with zero annotation coverage, this is inadequate.

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 purpose ('Get current account info') and adds specifics in parentheses. There's zero waste—every word earns its place.

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 no annotations and no output schema, the description is incomplete. It doesn't explain the return format (e.g., structure of name, id, email, role), potential errors, or dependencies. For a tool in a complex server with many siblings, more context is needed to guide effective use.

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 no parameter documentation is needed. The description doesn't add parameter info, which is appropriate. Baseline is 4 for 0 parameters, as it avoids unnecessary details.

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 ('Get') and resource ('current account info') with specific attributes listed (name, id, email, role). It distinguishes from siblings like 'get_card' or 'list_decks' by focusing on account-level data. However, it doesn't explicitly differentiate from potential account-related siblings (none exist in the list), so it's not a perfect 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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication state), exclusions, or compare to other tools for account info. With many sibling tools present, this lack of context is a significant gap.

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/rangogamedev/codecks-mcp'

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