Skip to main content
Glama

get_current_user

Read-only

Get the signed-in user's account details, plan and settings. Needs a login session: call start_login, then wait_for_login until it reports success. An API key alone cannot read this — for the key's own account use get_self_api_key or get_settings.

ACCESS: needs a Proof account, signed in: call start_login, show the user its challenge, then wait_for_login, then call this tool again. Authenticating this client alone does NOT open this tool.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_current_user"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
idYesMongoDB ObjectId
tenantYes
deletionYesWhere the account stands with deletion; the dashboard routes a locked session to the lock page from it.
avatar_urlYesThe primary sub-account's avatar, else any sub-account's; null when none has one.
created_atYes
login_emailNoThe email this session signed in with; absent for a phone sign-in.
login_phoneNoThe phone this session signed in with, else the account's login phone; absent for an account with neither.
display_nameNo
phone_numberNoThe account's login phone, when it has one.
last_login_atNo
login_channelYes
verification_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedOutput schema / description
      Added value: +"The signed-in account, as `GET /auth/me` answers it."
    • addedOutput schema / properties / avatar_url
      Added value: +{
      +  "description": "The primary sub-account's avatar, else any sub-account's; null when none has one.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / created_at / type
      Added value: +"string"
    • addedOutput schema / properties / deletion
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Where the account stands with deletion; the dashboard routes a locked session to the lock page from it.",
      +  "properties": {
      +    "hold_reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "scheduled_for": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "state": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "scheduled_for",
      +    "hold_reason"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / display_name
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / emails
      Removed value: -{}
    • addedOutput schema / properties / id / type
      Added value: +"string"
    • addedOutput schema / properties / last_login_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / login_channel
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / login_email
      Added value: +{
      +  "description": "The email this session signed in with; absent for a phone sign-in.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / login_phone
      Added value: +{
      +  "description": "The phone this session signed in with, else the account's login phone; absent for an account with neither.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / phone_number
      Added value: +{
      +  "description": "The account's login phone, when it has one.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / phone_numbers
      Removed value: -{}
    • addedOutput schema / properties / tenant
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "id": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "plan": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name",
      +    "plan"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / verification_count
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "id",
      +  "avatar_url",
      +  "login_channel",
      +  "verification_count",
      +  "created_at",
      +  "tenant",
      +  "deletion"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "created_at": {},
      +    "emails": {},
      +    "id": {
      +      "description": "MongoDB ObjectId"
      +    },
      +    "phone_numbers": {}
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior3/5

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

The readOnlyHint=true annotation is consistent with a read-only getter, so the safety profile is already covered. The description adds real value beyond annotations: it discloses the authentication flow required, including that authenticating the client alone does not authorize the call and that a challenge must be shown to the user. It stops short of describing return shape or any rate-limit behavior, but the output schema covers the former.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause and the critical auth gate follows immediately. The ACCESS block repeats the start_login/wait_for_login sequence already given in the first sentence, which is slightly redundant, though the restatement of consequences (client auth alone is insufficient) earns its place.

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

Completeness5/5

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

For a zero-parameter read tool with an output schema and readOnly annotation, the description supplies everything an agent needs: what it returns conceptually, who can call it, and the precise multi-step login sequence. Nothing operationally necessary is missing.

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 takes zero parameters, so the schema baseline applies and no parameter semantics are needed. The description does not need to add meaning here and correctly focuses on auth preconditions instead.

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?

States a specific verb and resource ("Get the signed-in user's account details, plan and settings") and explicitly distinguishes itself from get_self_api_key and get_settings by scope (API-key account vs. signed-in user). An agent can select it over its siblings without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use and when-not-to-use guidance: the caller must have a login session, must run start_login then wait_for_login, and must NOT use this for the API key's own account (route to get_self_api_key or get_settings instead). Alternatives and prerequisites are both named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.