Skip to main content
Glama
x-agent-kit

x-agent-kit

by karthikrshet

x_whoami

Retrieve the authenticated X account to identify the active user and confirm which profile an MCP client is operating as.

Instructions

Return the authenticated X account.

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": "x_whoami"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure, and it does little with it. It never says that authentication is required or what happens on missing/invalid credentials, whether this makes a live network call, whether it is read-only or rate-limited, or what shape the response takes. Only the adjective 'authenticated' hints at an auth dependency.

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?

A single short sentence with zero filler, and the identifying information is front-loaded. It is arguably over-terse rather than padded, but nothing in it is wasted.

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?

For a trivial zero-parameter read tool this is close to sufficient, but with no output schema and no annotation coverage, the description is the only place an agent could learn what the call returns (handle, user id, display name) or how auth failure surfaces. Those omissions leave the definition only marginally complete.

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 there is nothing for the description to disambiguate beyond what the empty schema already conveys. Baseline 4 applies; no parameter-level meaning is missing.

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?

States a specific verb ('Return') and resource ('the authenticated X account'), which unambiguously identifies this as an identity/whoami lookup. It does not explicitly distinguish itself from siblings, but none of the listed siblings (x_post, x_search_recent, x_metrics, etc.) overlap with identity retrieval, so the risk of confusion is low. It stops short of saying what account details are returned, which keeps it below 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 Guidelines3/5

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

There is no explicit 'use when' clause, no prerequisites, and no exclusions. The word 'authenticated' implicitly signals the use case (confirming which credentials/account are in effect before acting), but the agent must infer that rather than read it. Adequate but with a clear gap.

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