Skip to main content
Glama

get_users_by_ids

Resolve multiple X/Twitter user IDs in one batched call to fetch their profiles at once, returning unresolved IDs in a missing list instead of failing the request.

Instructions

Resolve many user ids at once (comma-separated).

One call per id internally, so keep it to a handful; missing ids come back in missing rather than failing the batch.

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": {
      "user_ids": "<user_ids>"
    },
    "name": "get_users_by_ids"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.6

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the internal cost model ('One call per id internally'), warns about scale, and states partial-failure semantics ('missing ids come back in `missing` rather than failing the batch'). It stops short of noting auth requirements or a concrete rate limit, so not a 5.

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?

Two short sentences, front-loaded with the core purpose, with no filler. The '(comma-separated)' parenthetical is awkwardly wedged mid-sentence and the line break splits a thought, but nothing is wasteful.

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?

An output schema exists, so return shape needn't be explained, and the description still flags the `missing` field which is the one piece of return behavior that affects caller logic. For a single-parameter read tool, nothing needed to call it correctly is absent.

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% and the single parameter is an undescribed string, so the description must compensate — and it does, specifying that user_ids is comma-separated, which is the one fact an agent cannot infer from the schema. It omits ambiguity details such as whether ids are numeric, max count, or whitespace handling.

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+resource ('Resolve many user ids') and makes the batch scope explicit ('many ... at once'), which distinguishes it in spirit from the singular get_user_by_id sibling without naming it. An agent can tell what it returns: resolved users keyed off a list of ids.

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?

Offers a soft usage constraint ('keep it to a handful') that signals when this tool is inappropriate, which is genuinely useful. However, it never routes the agent between this and get_user_by_id for single lookups or search_users when ids are unknown, so the when-to-use decision is only implied.

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