Skip to main content
Glama
Library Loans MCP Server

Library Loans MCP Server

return_loan

Mark a library loan as returned, defaulting to today or accepting a YYYY-MM-DD date to update loan records.

Instructions

Mark a loan returned (default today, or YYYY-MM-DD).

Input Schema

NameRequiredDescriptionDefault
loan_idYes
returned_onNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses that a return date defaults to today and can be overridden, but it does not mention permissions, idempotency, side effects such as fines or availability changes, or error behavior for a mutation tool.

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 front-loaded sentence with no wasted words. The default-date and format information is attached directly to the relevant action.

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?

The tool is simple and has an output schema, so return values need not be described. However, as an unannotated mutation tool, it should say more about side effects, errors, or permissions to be fully complete for an agent.

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 description coverage is 0%, so the description must compensate. It usefully explains returned_on as defaulting to today and accepting YYYY-MM-DD, but it says nothing about loan_id beyond its obvious identifier role, leaving one parameter undocumented.

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?

The description states a specific verb and resource: 'Mark a loan returned.' This clearly distinguishes the tool from siblings such as renew_loan and record_loan, though it does not explicitly differentiate itself from them in wording.

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?

The action implies when it would be used, but there is no explicit guidance on when to choose this over renew_loan or other loan-management tools, nor are prerequisites or exclusions mentioned.

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