Skip to main content
Glama

It's back

return_loan

Closes a loan: a lent thing is back, or a borrowed one was given back. Use it when the person says so ("Sam returned the ladder"); the id comes from list_loans.

Instructions

Closes a loan: a lent thing is back, or a borrowed one was given back. Use it when the person says so ("Sam returned the ladder"); the id comes from list_loans. The loan stays in the item's history and the borrower's reminder emails stop; nothing else about the item changes. Calling it again for the same loan is refused (it's already back).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "return_loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe loan's id, from list_loans
onNoThe day it came back, yyyy-mm-dd; today if left out

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2026.11.10

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), it discloses real consequences: the loan persists in the item's history, the borrower's reminder emails stop, nothing else about the item changes, and repeat calls are rejected. That tells the agent both what the mutation does and its blast radius, which the hints alone do not.

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?

The purpose lands in the first clause, followed by trigger, dependency, effects, and the repeat-call caveat, with no filler sentences. The parenthetical example is slightly redundant with the clause it follows, but the length is well matched to a two-parameter mutation.

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 two-parameter mutation with no output schema, the description covers trigger, effects, and the idempotency failure mode. It does not say what a successful call returns or what happens with an unknown or already-closed id, which are the remaining gaps.

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 100%, so both parameters are already documented, and the description only repeats the id provenance instead of adding to it. It never mentions the optional `on` date at all, so nothing hints at backdating a return. Baseline 3 is appropriate when the schema carries the load.

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?

"Closes a loan: a lent thing is back, or a borrowed one was given back" states a specific verb (closes) plus the resource (loan) and covers both directions of the relationship. It is clearly distinct from save_loan (create/edit) and list_loans (which is named only as the id source), so an agent can pick it without opening a schema.

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

Usage Guidelines4/5

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

"Use it when the person says so ('Sam returned the ladder')" plus "the id comes from list_loans" gives a concrete trigger and a pointer to the dependency tool. It also warns that a repeat call is refused because the loan is already back. It stops short of naming save_loan as the tool for correcting a loan or explaining how to undo a mistaken return.

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