Skip to main content
Glama

lib_renew

Renew borrowed library books online by barcode, using a precheck by default and submitting only after confirmation.

Instructions

在借图书在线续借(写操作,带校验门禁)。

Input Schema

NameRequiredDescriptionDefault
barcodeYes图书条形码。
confirmNotrue 时真正提交续借,缺省仅预检。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the two most important traits: this mutates state (写操作) and it is gated by validation (带校验门禁). It does not say what the gate checks, whether renewal can fail (e.g., renewal limit reached, item on hold), how many times renewal is allowed, or what happens to the due date.

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?

A single short sentence with the resource first and the two key behavioral traits packed into a parenthetical. Nothing is redundant. It is arguably too terse rather than too long, but it is well front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with zero annotation coverage and no output schema, the description leaves out what an agent needs to call it safely: eligibility conditions, likely failure modes, whether the result reports a new due date, and confirmation semantics beyond the schema's one-liner. The dry-run gate is the only behavioral detail given.

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 100%: the barcode and the confirm pre-check/dry-run flag are both documented in the schema itself, including the default behavior when confirm is omitted. The description adds no parameter-level detail beyond that, so the baseline of 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?

States a specific verb and resource: online renewal of currently-borrowed books, plus a qualifier that it is a write operation with a validation gate. An agent can tell this is not a read/lookup tool. It stops short of naming any sibling or scope boundaries (e.g., which loan records qualify), so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, no prerequisites, and no alternatives named among the many sibling tools. The parenthetical hint that it is a write with a gate implies a two-step flow, but the agent must infer that entirely.

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