Skip to main content
Glama

读取课程条目

lexue_get_activity
Read-onlyIdempotent

Retrieve a course assignment, courseware item, or announcement by exact title; if duplicate titles exist, return ambiguity so the intended entry can be verified.

Instructions

按精确标题查看作业、课件或公告。发现同名条目时返回歧义,便于核对。

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": {
      "courseId": "<courseId>",
      "title": "<title>",
      "section": "<section>"
    },
    "name": "lexue_get_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
sectionYes
courseIdYes新乐学课程编号,例如 lexue_list_courses 返回的 courseId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Since annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, the description's job is to add behavior beyond safety, and it meaningfully does so by disclosing the duplicate-title ambiguity failure mode. It still leaves the not-found case unexplained (error vs empty result) and says nothing about what a successful result contains.

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, front-loaded sentences with no filler, and the ambiguity caveat follows the core statement logically. It is close to under-specification rather than verbosity, which is scored elsewhere.

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 read-only lookup tool with 33% schema coverage and no output schema, the definition covers what it finds and the duplicate case but not the shape of a successful return or the not-found behavior. An agent can call it, but must discover result structure empirically.

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 coverage is 33% – only courseId is documented – but the description adds real meaning for the 'title' parameter by stating the match must be exact, and it maps section values to 作业/课件/公告. It does not clarify case sensitivity, whitespace normalization, or whether section narrows or is required to scope the lookup.

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 (按精确标题查看) and the exact resource types it covers (作业、课件、公告), which lets an agent see it is a targeted lookup rather than a listing tool. It does not name a sibling, but the 'exact title' qualifier separates it from the lexue_list_* family well enough.

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?

The phrase '按精确标题' implicitly tells the agent to use this only when the exact title is known, and '发现同名条目时返回歧义' warns about duplicate titles. However, there is no explicit when-not-to-use instruction and no pointer to the lexical alternative (e.g. lexue_list_assignments) if the title is unknown or inexact.

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