Skip to main content
Glama

归还图书

return_book
Idempotent

Return a book using the loan ID. The action is idempotent, so calling it again does not change the result.

Instructions

根据借阅单归还图书;重复调用结果不变

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loan_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
book_idYes
loan_idYes
member_idYes
Install Server

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description restates idempotency ('重复调用结果不变') without adding new behavioral context such as side effects on book availability, permissions required, or error behavior. The description does not contradict annotations, but it also does not enrich the safety profile beyond what structured data provides.

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 a single, concise sentence with no filler. It front-loads the core action ('根据借阅单归还图书') and appends the idempotency note, which is directly relevant. Every word contributes meaning.

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

Completeness4/5

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

For a simple one-parameter tool with output schema and annotations covering idempotency and non-destructiveness, the description is mostly sufficient. It lacks explicit mention of error cases or prerequisites (e.g., loan must exist and be active), but the simplicity of the tool and the supporting structured data make it reasonably complete.

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?

The schema provides only the bare parameter name loan_id with no description, and schema description coverage is 0%. The description's '借阅单' (loan slip) gives a hint that loan_id references a loan slip, adding a small amount of meaning beyond the schema. However, it does not explain the format, where to obtain it, or how it relates to the returned book, leaving the agent partially in the dark.

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 uses a specific verb (归还/return) and resource (图书/book), and clarifies the basis (借阅单/loan slip). It clearly distinguishes itself from sibling tools like checkout_book by representing the inverse operation, and from search_books and audit_inventory which do not mutate loans.

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?

Usage context is implied: a book is returned after being checked out, using the loan slip. However, there is no explicit guidance about when to use this tool versus alternatives, nor any mention of prerequisites such as the loan being active or already returned. The route to the right tool is obvious from the name and description but not spelled out.

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

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/debuger00/MCPdemo'

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