Skip to main content
Glama

stackexchange-mcp-server

Get Stack Exchange User Profile

stackexchange_get_user
Read-onlyIdempotent

Fetch a Stack Exchange user profile by numeric user ID: reputation, badge counts, top tags by answer score, and account metadata. Useful for credibility context on an answer author — pass the authorUserId from any question or answer in stackexchange_get_thread output. Returns profile fields plus up to 10 top tags by answer score.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoStack Exchange site — use the api_site_parameter value (e.g. "stackoverflow", "superuser"). Defaults to "stackoverflow". Call stackexchange_list_sites to discover valid values.stackoverflow
userIdYesNumeric user ID — use the authorUserId field from a question or answer in stackexchange_get_thread output.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
linkNoDirect URL to the user profile.
errorNoPresent when the call failed. Absent on success.
userIdNoNumeric user ID on this Stack Exchange site.
topTagsNoTop tags by answer score (up to 10). Empty array for new users with no answers.
locationNoUser-provided location string when available.
quotaMaxNoMaximum API quota calls per day (300 keyless, ~10,000 with API key).
reputationNoUser reputation score.
websiteUrlNoUser-provided website URL when available.
answerCountNoTotal number of answers posted when provided by the API.
badgeCountsNoBadge counts when provided by the API.
displayNameNoDisplay name shown on the site.
questionCountNoTotal number of questions posted when provided by the API.
quotaRemainingNoRemaining API quota calls for the current day.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds behavioral detail about the returned data, including the cap of 10 top tags by answer score, which is useful beyond the annotations.

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 sentences with no filler: the first states the core operation, the second explains why and how to use it, and the third summarizes output scope. Information is front-loaded and every sentence 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 two-parameter read-only tool with a full input schema and an output schema present, the description provides everything needed to invoke it correctly: input source, purpose, and output characteristics. No critical usage context is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents both userId and site. The description reinforces how to obtain the userId, but largely repeats information already present in the schema rather than adding new parameter-level meaning.

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?

The description states a specific verb and resource ('Fetch a Stack Exchange user profile by numeric user ID') and enumerates the returned content (reputation, badge counts, top tags, account metadata). It clearly differentiates from sibling search and thread tools by framing the result as credibility context on an answer author.

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?

The description gives concrete when-to-use guidance: use it for credibility context and pass the authorUserId from stackexchange_get_thread output. It provides clear context but does not explicitly state when not to use it or name alternatives to exclude.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: site discovery, tag-based FAQ retrieval, free-text search, full thread retrieval, and user profile lookup. The descriptions explicitly cross-reference when to use which, eliminating ambiguity.

Naming Consistency5/5

All tools share the stackexchange_ prefix and follow a consistent verb_noun pattern (get_, list_, search_). The naming style is uniform and predictable.

Tool Count5/5

Five tools is well-scoped for a read-only Stack Exchange client. Each tool covers a distinct, necessary operation without redundancy or bloat.

Completeness5/5

The tool surface covers the full read-only workflow: discover sites, search questions, retrieve tag FAQs, fetch full threads with answers, and inspect user profiles. No significant gaps remain for the intended domain.