Skip to main content
Glama

StackExchange (Unofficial)

Stack Get User

stack_get_user
Read-onlyIdempotent

Look up a StackExchange user by numeric ID. Returns display name, reputation, badges (gold/silver/bronze counts), location, website, account age, last access, and per-site activity counts (questions/answers). Works on any StackExchange site (default: stackoverflow).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
siteNoStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics
_apiKeyNoOptional, a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.
user_idYesThe numeric StackExchange user ID (visible in profile URL, e.g., stackoverflow.com/users/17034 -> 17034)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override."New value: +"Optional, a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override."
    • changedInput schema / properties / user_id / description
      Previous value: -"The numeric StackExchange user ID (visible in profile URL, e.g., stackoverflow.com/users/17034 → 17034)"New value: +"The numeric StackExchange user ID (visible in profile URL, e.g., stackoverflow.com/users/17034 -> 17034)"
  2. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "found": {
      -        "description": "User not found",
      -        "enum": [
      -          false
      -        ],
      -        "type": "boolean"
      -      },
      -      "hint": {
      -        "description": "Explanation of why user was not found",
      -        "type": "string"
      -      },
      -      "site": {
      -        "description": "StackExchange site slug",
      -        "type": "string"
      -      },
      -      "user_id": {
      -        "description": "The user ID",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "site",
      -      "user_id",
      -      "found",
      -      "hint"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "activity": {
      -        "properties": {
      -          "answers": {
      -            "description": "Number of answers given",
      -            "type": "number"
      -          },
      -          "down_votes": {
      -            "description": "Downvotes received",
      -            "type": "number"
      -          },
      -          "profile_views": {
      -            "description": "Profile view count",
      -            "type": "number"
      -          },
      -          "questions": {
      -            "description": "Number of questions asked",
      -            "type": "number"
      -          },
      -          "up_votes": {
      -            "description": "Upvotes received",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "questions",
      -          "answers",
      -          "up_votes",
      -          "down_votes",
      -          "profile_views"
      -        ],
      -        "type": "object"
      -      },
      -      "badges": {
      -        "properties": {
      -          "bronze": {
      -            "description": "Bronze badges earned",
      -            "type": "number"
      -          },
      -          "gold": {
      -            "description": "Gold badges earned",
      -            "type": "number"
      -          },
      -          "silver": {
      -            "description": "Silver badges earned",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "gold",
      -          "silver",
      -          "bronze"
      -        ],
      -        "type": "object"
      -      },
      -      "created": {
      -        "description": "ISO 8601 account creation timestamp",
      -        "type": "string"
      -      },
      -      "display_name": {
      -        "description": "User's display name",
      -        "type": "string"
      -      },
      -      "found": {
      -        "description": "User was found",
      -        "enum": [
      -          true
      -        ],
      -        "type": "boolean"
      -      },
      -      "last_access": {
      -        "description": "ISO 8601 last access timestamp",
      -        "type": "string"
      -      },
      -      "link": {
      -        "description": "URL to user's profile",
      -        "type": "string"
      -      },
      -      "location": {
      -        "description": "User's location or null",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "quota_remaining": {
      -        "description": "Remaining API quota or null",
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "reputation": {
      -        "description": "User's reputation score",
      -        "type": "number"
      -      },
      -      "site": {
      -        "description": "StackExchange site slug",
      -        "type": "string"
      -      },
      -      "user_id": {
      -        "description": "The user ID",
      -        "type": "number"
      -      },
      -      "user_type": {
      -        "description": "User type (e.g., 'registered') or null",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "website_url": {
      -        "description": "User's website URL or null",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "site",
      -      "found",
      -      "user_id",
      -      "display_name",
      -      "reputation",
      -      "badges",
      -      "location",
      -      "website_url",
      -      "link",
      -      "user_type",
      -      "activity",
      -      "created",
      -      "last_access",
      -      "quota_remaining"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "found": {
      +        "description": "User not found",
      +        "enum": [
      +          false
      +        ],
      +        "type": "boolean"
      +      },
      +      "hint": {
      +        "description": "Explanation of why user was not found",
      +        "type": "string"
      +      },
      +      "site": {
      +        "description": "StackExchange site slug",
      +        "type": "string"
      +      },
      +      "user_id": {
      +        "description": "The user ID",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "site",
      +      "user_id",
      +      "found",
      +      "hint"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "activity": {
      +        "properties": {
      +          "answers": {
      +            "description": "Number of answers given",
      +            "type": "number"
      +          },
      +          "down_votes": {
      +            "description": "Downvotes received",
      +            "type": "number"
      +          },
      +          "profile_views": {
      +            "description": "Profile view count",
      +            "type": "number"
      +          },
      +          "questions": {
      +            "description": "Number of questions asked",
      +            "type": "number"
      +          },
      +          "up_votes": {
      +            "description": "Upvotes received",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "badges": {
      +        "properties": {
      +          "bronze": {
      +            "description": "Bronze badges earned",
      +            "type": "number"
      +          },
      +          "gold": {
      +            "description": "Gold badges earned",
      +            "type": "number"
      +          },
      +          "silver": {
      +            "description": "Silver badges earned",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "gold",
      +          "silver",
      +          "bronze"
      +        ],
      +        "type": "object"
      +      },
      +      "created": {
      +        "description": "ISO 8601 account creation timestamp",
      +        "type": "string"
      +      },
      +      "display_name": {
      +        "description": "User's display name",
      +        "type": "string"
      +      },
      +      "found": {
      +        "description": "User was found",
      +        "enum": [
      +          true
      +        ],
      +        "type": "boolean"
      +      },
      +      "last_access": {
      +        "description": "ISO 8601 last access timestamp",
      +        "type": "string"
      +      },
      +      "link": {
      +        "description": "URL to user's profile",
      +        "type": "string"
      +      },
      +      "location": {
      +        "description": "User's location or null",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "quota_remaining": {
      +        "description": "Remaining API quota or null",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "reputation": {
      +        "description": "User's reputation score",
      +        "type": "number"
      +      },
      +      "site": {
      +        "description": "StackExchange site slug",
      +        "type": "string"
      +      },
      +      "user_id": {
      +        "description": "The user ID",
      +        "type": "number"
      +      },
      +      "user_type": {
      +        "description": "User type (e.g., 'registered') or null",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "website_url": {
      +        "description": "User's website URL or null",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "site",
      +      "found",
      +      "user_id",
      +      "display_name",
      +      "reputation",
      +      "badges",
      +      "location",
      +      "website_url",
      +      "link",
      +      "user_type",
      +      "activity",
      +      "created",
      +      "last_access",
      +      "quota_remaining"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / _apiKey
      Added value: +{
      +  "description": "Optional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "user_id": 17034
      +  },
      +  {
      +    "site": "physics",
      +    "user_id": 22656
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "found": {
      +          "description": "User not found",
      +          "enum": [
      +            false
      +          ],
      +          "type": "boolean"
      +        },
      +        "hint": {
      +          "description": "Explanation of why user was not found",
      +          "type": "string"
      +        },
      +        "site": {
      +          "description": "StackExchange site slug",
      +          "type": "string"
      +        },
      +        "user_id": {
      +          "description": "The user ID",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "site",
      +        "user_id",
      +        "found",
      +        "hint"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "activity": {
      +          "properties": {
      +            "answers": {
      +              "description": "Number of answers given",
      +              "type": "number"
      +            },
      +            "down_votes": {
      +              "description": "Downvotes received",
      +              "type": "number"
      +            },
      +            "profile_views": {
      +              "description": "Profile view count",
      +              "type": "number"
      +            },
      +            "questions": {
      +              "description": "Number of questions asked",
      +              "type": "number"
      +            },
      +            "up_votes": {
      +              "description": "Upvotes received",
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "questions",
      +            "answers",
      +            "up_votes",
      +            "down_votes",
      +            "profile_views"
      +          ],
      +          "type": "object"
      +        },
      +        "badges": {
      +          "properties": {
      +            "bronze": {
      +              "description": "Bronze badges earned",
      +              "type": "number"
      +            },
      +            "gold": {
      +              "description": "Gold badges earned",
      +              "type": "number"
      +            },
      +            "silver": {
      +              "description": "Silver badges earned",
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "gold",
      +            "silver",
      +            "bronze"
      +          ],
      +          "type": "object"
      +        },
      +        "created": {
      +          "description": "ISO 8601 account creation timestamp",
      +          "type": "string"
      +        },
      +        "display_name": {
      +          "description": "User's display name",
      +          "type": "string"
      +        },
      +        "found": {
      +          "description": "User was found",
      +          "enum": [
      +            true
      +          ],
      +          "type": "boolean"
      +        },
      +        "last_access": {
      +          "description": "ISO 8601 last access timestamp",
      +          "type": "string"
      +        },
      +        "link": {
      +          "description": "URL to user's profile",
      +          "type": "string"
      +        },
      +        "location": {
      +          "description": "User's location or null",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "quota_remaining": {
      +          "description": "Remaining API quota or null",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "reputation": {
      +          "description": "User's reputation score",
      +          "type": "number"
      +        },
      +        "site": {
      +          "description": "StackExchange site slug",
      +          "type": "string"
      +        },
      +        "user_id": {
      +          "description": "The user ID",
      +          "type": "number"
      +        },
      +        "user_type": {
      +          "description": "User type (e.g., 'registered') or null",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "website_url": {
      +          "description": "User's website URL or null",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "site",
      +        "found",
      +        "user_id",
      +        "display_name",
      +        "reputation",
      +        "badges",
      +        "location",
      +        "website_url",
      +        "link",
      +        "user_type",
      +        "activity",
      +        "created",
      +        "last_access",
      +        "quota_remaining"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  5. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds cross-site behavior ('works on any StackExchange site') and the data categories returned, which is useful, but says nothing about failure modes for invalid IDs or quota exhaustion.

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?

Three tight sentences, front-loaded with the verb and resource, then the payload, then the site scope. Minor redundancy: the 'default: stackoverflow' detail duplicates the schema, and the return-field list partially overlaps the output schema.

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?

With an output schema present and full parameter coverage, the description only needs to establish purpose and scope, which it does. The main residual gap is error and quota behavior, but that is minor for a simple read-only lookup.

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 user_id, site, and _apiKey are already fully documented with examples and defaults. The description restates the site default and the multi-site capability but adds no syntax, format, or edge-case detail beyond the schema, so the baseline 3 applies.

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?

The description names a specific verb and resource ('Look up a StackExchange user by numeric ID') and enumerates the returned fields, so the operation is unmistakable. It never explicitly contrasts itself with content-oriented siblings such as get_answers or list_questions_by_tag, leaving that differentiation to inference.

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?

Usage is implied by the purpose — fetch profile data when you have a numeric user ID — but there is no explicit when-to-use statement, no conditions under which another tool (e.g. entity_profile) would be preferable, and no guidance on what to do with an invalid ID.

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.