Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
nowcoder_searchA

在牛客网上搜索内容,支持按类型筛选。可搜索讨论帖、面经、编程题、职位等。

Args:

  • query (string): 搜索关键词

  • type (string): 搜索类型 - "all"(综合), "discuss"(讨论/面经), "problem"(题库), "job"(职位)

  • page (number): 页码,从1开始

  • response_format (string): 输出格式 - "markdown"(默认, 人类可读) 或 "json"(机器可解析)

Returns: 搜索结果列表,包含标题、链接、摘要、作者、时间

Examples:

  • 搜索Java面经: { "query": "Java面经", "type": "discuss", "page": 1 }

  • 搜索算法题(JSON格式): { "query": "二叉树", "type": "problem", "response_format": "json" }

  • 综合搜索: { "query": "字节跳动", "type": "all", "page": 2 }

Error Handling:

  • 页面加载超时时会返回友好的超时提示

  • 网络连接失败时会提示检查网络

  • 无搜索结果时会建议更换关键词

nowcoder_list_problemsA

列出牛客网 ACM/OJ 编程题目,支持按关键词和难度筛选。

Args:

  • keyword (string): 搜索关键词(可选)

  • difficulty (number): 难度 0(全部) 1-5(星级)

  • page (number): 页码

  • response_format (string): 输出格式 - "markdown"(默认, 人类可读) 或 "json"(机器可解析)

Returns: 题目列表,包含 ID、标题、难度、通过率、标签

Examples:

  • 浏览全部题目: { "page": 1 }

  • 按难度筛选: { "difficulty": 3, "page": 1 }

  • 搜索关键词(JSON格式): { "keyword": "二叉树", "response_format": "json" }

Error Handling:

  • 页面加载超时时返回超时提示

  • 网络连接失败时提示检查网络

  • 无匹配题目时建议调整筛选条件

nowcoder_get_problemA

获取牛客网特定编程题目的完整描述,包括题面、输入输出格式、示例和限制。

Args:

  • problemId (string): 题目ID

  • response_format (string): 输出格式 - "markdown"(默认) 或 "json"

Returns: 题目详情,包含标题、时间/内存限制、题目描述

Examples:

  • 获取题目: { "problemId": "1001" }

  • JSON格式: { "problemId": "1001", "response_format": "json" }

Error Handling:

  • 题目不存在时返回错误提示

  • 页面加载超时时返回超时提示

nowcoder_get_problem_solutionsA

获取牛客网特定题目的社区题解列表。

Args:

  • problemId (string): 题目ID

  • page (number): 页码

  • response_format (string): 输出格式 - "markdown"(默认) 或 "json"

Returns: 题解列表,包含作者、标题、摘要、点赞数

Examples:

  • 获取题解: { "problemId": "1001", "page": 1 }

  • JSON格式: { "problemId": "1001", "response_format": "json" }

Error Handling:

  • 题目无题解时返回空结果提示

  • 页面加载超时时返回超时提示

nowcoder_list_topic_problemsA

获取牛客网特定专题(如面试TOP101、SQL篇)的题目列表。

常用 topicId:

  • 295: 面试TOP101

  • 199: SQL篇

  • 196: 面试高频题目

  • 182: 笔试大厂真题

  • 383: 算法学习篇

  • 389: 笔试模板必刷

  • 372: 输入输出练习

  • 260: 前端篇

  • 301: Verilog篇

  • 195: SHELL篇

Args:

  • topicId (string): 专题ID

  • page (number): 页码

  • response_format (string): 输出格式 - "markdown"(默认) 或 "json"

Returns: 专题题目列表,包含编号、标题、难度、通过率

Examples:

  • 面试TOP101: { "topicId": "295", "page": 1 }

  • SQL篇(JSON格式): { "topicId": "199", "response_format": "json" }

Error Handling:

  • 专题不存在时返回错误提示

  • 页面加载超时时返回超时提示

nowcoder_get_discussionA

获取牛客网讨论帖或动态的完整内容。

Args:

Returns: 帖子内容,包含标题、作者、时间、正文、标签、链接

Examples:

  • 获取帖子详情 (markdown): { "url": "353154004265934848" }

  • 获取帖子详情 (json): { "url": "353154004265934848", "response_format": "json" }

Error Handling:

  • 页面加载超时时返回超时错误提示

  • 网络连接失败时返回网络错误提示

nowcoder_get_hot_topicsA

获取牛客网当前热门讨论和话题。

Returns: 热门话题列表,包含标题和链接(最多20条)

Examples:

  • 获取热门内容: 无需参数,直接调用即可

Error Handling:

  • 页面加载超时时返回超时错误提示

  • 网络连接失败时返回网络错误提示

  • 无热门内容时返回空结果提示

nowcoder_browse_interviewA

浏览牛客网面试经验,支持按公司名筛选。

Args:

  • company (string): 公司名称(可选),如 "字节跳动", "阿里巴巴", "腾讯"

  • page (number): 页码,从1开始

  • response_format (string): 输出格式 - "markdown"(默认, 人类可读) 或 "json"(机器可解析)

Returns: 面经列表,包含标题、公司、作者、摘要、时间

Examples:

  1. 浏览全部面经第1页: { "page": 1 }

  2. 按公司筛选面经: { "company": "字节跳动", "page": 1 }

  3. 获取JSON格式结果用于程序处理: { "company": "阿里巴巴", "page": 2, "response_format": "json" }

Error Handling:

  • 若页面加载超时,将返回超时错误提示,建议稍后重试

  • 若网络异常,将返回网络连接失败提示

  • 若未找到指定公司的面经,将返回空结果提示并建议更换关键词

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 8 tools

Disambiguation4/5

Most tools target clearly distinct resources or actions, such as problem details, problem solutions, topic problem lists, discussions, and interview experiences. There is some overlap because nowcoder_search can search problems/discussions/jobs, which may overlap with nowcoder_list_problems, nowcoder_get_discussion, and nowcoder_browse_interview, but the type filters and descriptions make the intended use mostly clear.

Naming Consistency4/5

All tools use the nowcoder_ prefix and snake_case, and most follow a predictable verb_noun pattern. Minor deviations exist, such as nowcoder_search lacking a clear noun, browse_interview instead of list/get, and slight pluralization differences, but the set remains readable and consistent overall.

Tool Count5/5

Eight tools are well-scoped for a read-only Nowcoder browsing server. Each tool maps to a distinct content retrieval need, and there is no obvious redundancy or missing bulk operation that would justify a different count.

Completeness4/5

The surface covers the core browsing lifecycle for problems, solutions, topic lists, discussions, hot topics, and interview experiences. Some adjacent Nowcoder content such as contests, rankings, user profiles, or submission history is missing, but these are not central to the apparent read-only browsing purpose.

Maintenance

ActivityInactive
ResponsivenessNo issues