Skip to main content
Glama

Lent and borrowed

list_loans
Read-only

Things lent out (who has them, since when, when they're due back) and things borrowed from others, still out, overdue ones marked, each with its loanId.

Instructions

Things lent out (who has them, since when, when they're due back) and things borrowed from others, still out, overdue ones marked, each with its loanId. Use it for "who has the ladder?" or "what have I lent out?", and to get the loanId (pass it as id) for return_loan or save_loan. Only open loans; returned ones are in each item's item_history.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior: results are filtered to open loans only, overdue entries are visually marked, and each row carries a loanId keyed to id in sibling tools. It does not mention ordering, pagination, or volume limits, which keeps it from a 5.

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?

It is a single compact paragraph with the payload description front-loaded ahead of the usage examples and the sibling handoff. The heavy parenthetical stacking on the first sentence makes it slightly dense to parse, but every clause carries information an agent needs.

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?

With no output schema, the description must describe return values, and it does: counterparty, start date, due date, overdue marking, and the loanId. Combined with the explicit scope restriction to open loans, an agent has everything needed to call and interpret this tool.

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?

The tool takes zero parameters, so the baseline is 4 and there is no parameter meaning to add. The only instruction, that the returned loanId is passed as id elsewhere, is downstream usage rather than input semantics.

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 opens with a specific verb-and-resource pair: things lent out and things borrowed, restricted to still-open loans. It names the returned fields (who has them, since when, due back, overdue flag, loanId), which lets an agent separate it from siblings like item_history or return_loan without opening any schema.

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?

It gives concrete example questions ("who has the ladder?", "what have I lent out?") and an explicit downstream handoff: use the returned loanId as id for return_loan or save_loan. It also states an exclusion — only open loans, returned ones live in item_history — which routes the agent away from this tool when appropriate.

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