Skip to main content
Glama

live_pending

Capture a non-blocking snapshot of the Live Teaching pending queue, showing bridge state and sessions sorted by priority for the active pair.

Instructions

这不是值更工具 —— 值更请挂 live_wait 或后台看门脚本 scripts/live-watch.py, 反复空手调用这个属违纪(值更契约红线)。live_pending 只做一件事: 拍一张 Live Teaching pending queue 的快照 (bridge 状态 + 按优先级排序的 sessions, ad_hoc_question > ad_hoc_response > session_start > guided_response), 不阻塞、不等待。没传 pair_id 时用当前 active pair. 牙齿: 同一 pair 在 90s 内连续 6 次空手调用 (queue 里什么都没有) 会在回执里附结构化警告字段, 连续 12 次直接拒答该次查询——真有 pending 数据的调用永远正常返回并重置计数, 牙齿不吞真实数据。值更契约 v3(方法自由): 看门脚本 scripts/live-watch.py 与 live_wait 阻塞调用是平级合法路径, 你家 harness 有更好的监听机制也行——考核只看红线加四条目标, 见 recipe://live-teaching。每个 live_teaching item 带 pending_reason (session_start / learner_response_waiting / agent_owes_move): agent_owes_move 类只在 pending 快照出现, 不走 wait 事件流——欠的 move 是你的债, 不是学习者的事件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pair_idNo
Behavior5/5

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

With no annotations provided, the description carries full behavioral burden and does so thoroughly. It discloses anti-abuse 'teeth': 6 empty calls in 90 seconds attach a warning field, 12 reject the query, and real pending data resets the counter. It also clarifies that agent_owes_move items appear only in snapshots and not in the wait event stream, plus defines what the snapshot contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense and information-rich, but it front-loads a warning rather than the core purpose and mixes multiple concerns: anti-abuse rules, contract v3, priority ordering, and pending_reason taxonomy. While every sentence has value, the structure could be tighter and more purpose-first.

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?

This tool has no output schema and no annotations, yet the description covers the snapshot content, sorting priority, non-blocking nature, anti-abuse thresholds, fallback pair behavior, and event-stream semantics for agent_owes_move. It even points to recipe://live-teaching for further contract details, making it complete for a complex tool.

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?

The only parameter, pair_id, has zero schema description coverage, but the description compensates by stating that omitting it uses the current active pair. It does not specify the expected format or how 'active pair' is resolved, but for a single optional parameter this is sufficient practical guidance.

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 explicitly states 'live_pending 只做一件事: 拍一张 Live Teaching pending queue 的快照' (live_pending only does one thing: takes a snapshot of the Live Teaching pending queue), including priority ordering and non-blocking semantics. It also clearly distinguishes the tool from sibling live_wait and watchdog scripts, making its unique role unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit when-to-use guidance: it warns '这不是值更工具' (this is not the duty tool), instructs the agent to use live_wait or scripts/live-watch.py for duty monitoring, and declares repeated empty calls a contract violation. It also explains fallback behavior when pair_id is omitted, using the current active pair.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sf-shenfeng/learn-shell'

If you have feedback or need assistance with the MCP directory API, please join our Discord server