Skip to main content
Glama

get_user

Fetches a user's full profile by username, returning the numeric ID required for follow, block, DM, and like actions, and confirms whether the account still exists before you act.

Instructions

Full profile for one handle (without the @).

Returns the numeric id you need for follow/block/DM/like-style tools. Also the right call to check whether an account still exists before acting on it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "username": "<username>"
    },
    "name": "get_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
usernameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.6
    • removedInput schema / properties / username / description
      Removed value: -"The @handle (without the @). Example: \"elonmusk\""
  2. First observedv1.0.3

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden, and it partially meets it: it signals the existence-check use case, which hints at how missing accounts behave, and it names the id as the reusable key. It does not state error behavior for unknown/suspended handles, rate limits, or whether the id is stable across lookups — material gaps for a tool used as a prerequisite step.

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?

Three short sentences, front-loaded with what it returns, then why it matters. No filler and no restatement of the tool name.

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?

An output schema exists, so return values need no explanation, and one required param is handled well. For a prerequisite lookup tool with no annotations this is nearly sufficient; only the failure mode for nonexistent accounts is left implicit.

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 0%, so the description must compensate, and it does the highest-value thing: it specifies the input format as a handle without the leading '@', which the bare {"username": string} schema does not convey. It adds no guidance on case sensitivity, URL-form input, or what happens if an '@' is included, leaving some ambiguity.

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 — a full profile keyed by a handle — and the parenthetical '(without the @)' makes clear this is the username-input variant, distinguishing it implicitly from get_user_by_id. It also names the primary output (the numeric id), so an agent knows exactly what it gets back.

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

Usage Guidelines4/5

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

Gives concrete when-to-use guidance: call this to obtain the numeric id needed by follow/block/DM/like-style tools, and call it to verify an account still exists before acting. It stops short of explicit exclusions (e.g., 'if you already have the id, use get_user_by_id instead'), which is why it is not a 5.

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

Deploy Server

Other Tools