Skip to main content
Glama

get_punch_day

Retrieve the complete content of a punch day, including goals, modules with items, and review, for display or round-trip editing via upsert.

Instructions

读回「第 N 天」完整内容 → {ok, goals, modules, review}(展示页/生成器回读共用)。

modules 结构与 upsert_punch_day 入参同构:计算模块带 items:[{q,a}]; 🔴 返回与 upsert 入参同构(round-trip 语义):轮换位返 {type:'rotating',title,qids}—— 不含题面(改字回读→upsert 直接可用);要渲染态题面走 BE /teacher/punch/preview (blocks 由 BE 现取 block_json 组装,agent 无需自行拉题)。 review = {status, issues:[{module,seq,kind,note,resolved}]}。 🔴 局部改一天内容 = 先 get 拿全量 → 改 → 整天 upsert_punch_day 回灌(覆盖语义)。 参数: book_id 字符串;day 第几天(1 起)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayYes
book_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Without annotations, the description fully covers behavioral traits: round-trip semantics, rotating items returned without question text, review status structure, and that blocks are assembled by the backend. This is comprehensive.

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?

The description is concise but information-dense, using bullet points and icons to convey key points. It is front-loaded with purpose and every sentence adds value.

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?

Given the presence of an output schema, the description provides enough context on the return structure and round-trip semantics. It covers the main components and how to use the tool in conjunction with upsert_punch_day.

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?

Schema coverage is 0%, so the description must explain parameters. It does: book_id as string, day as integer (1-indexed). However, it doesn't elaborate on constraints like format or range, but it's sufficient for basic usage.

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 clearly states the tool reads back the full content for a given day, listing the fields (ok, goals, modules, review). It distinguishes from siblings like list_punch_days and upsert_punch_day by specifying its role in the round-trip workflow.

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 explicitly explains when to use this tool: before modifying a day's content (get full data, then modify and upsert). It also notes that for rendering previews, a different endpoint should be used.

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/RuntimeAll/teacher-mcp'

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