Skip to main content
Glama

List Leases

list_leases
Read-only

Liste les baux de location à l'année de l'utilisateur, avec filtre optionnel par bien. Retourne pour chaque bail : locataire, dates de début et de fin, loyer hors charges, charges et leur mode (forfait ou provisions), jour d'échéance et nombre de loyers générés. Les loyers eux-mêmes se lisent avec list_incomes, filtre lease_id.

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_leases"
  }
}

Input Schema

NameRequiredDescriptionDefault
property_idNoFiltrer par identifiant de bien (optionnel)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

The readOnlyHint annotation already declares this is a safe read, so the bar is lower; the description adds value by enumerating the returned fields (tenant, start/end dates, rent excluding charges, charges and their mode, due day, number of generated rents), which compensates for the missing output schema. It says nothing about permissions, pagination, or behavior when the property_id filter matches nothing, so the disclosure beyond annotations is moderate.

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?

Two compact sentences, front-loaded with what is listed and its scope, followed by the return fields and the cross-reference to list_incomes. Every clause carries call-relevant information; nothing is filler.

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?

Because there is no output schema, the description correctly takes on the burden of describing return values, and it does so field by field. The remaining gap is operational detail (empty results, pagination, auth) for a single-optional-parameter read tool, which is minor.

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?

With 100% schema description coverage on a single optional parameter, the baseline is 3; the description restates the filter's purpose ('filtre optionnel par bien') in context of the returned data, confirming it narrows results rather than changing shape. It adds no format or edge-case semantics (e.g. invalid property id), so it sits just above baseline.

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 names a specific verb and resource ('Liste les baux de location à l'année') plus the scope ('de l'utilisateur'), and it distinguishes the most confusable sibling by stating that the rents themselves are read with list_incomes. It stops short of contrasting with the other list_* siblings, but an agent can tell what this tool returns without opening the 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?

It states the optional filtering condition ('filtre optionnel par bien') and explicitly routes rent-level data to list_incomes with the lease_id filter, which is the main usage ambiguity. There are no explicit when-not-conditions or prerequisites (e.g. auth scope), so it falls short of a full 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.