Skip to main content
Glama

List Unit Files

list_unit_files
Read-onlyIdempotent

Every file on one unit — History-note attachments and UDF files.

Use for "what documents do we have on lot 24", "is the title on file", "find the title for this home". Lists each file's FileID, where it is filed (History note or UDF), date, size when Rent Manager reports it, and name. Read-only. Download one with download_unit_attachment(unit_id=..., file_id=...). Photos on the unit's IMAGES tab are separate: use get_unit_images.

``location`` (optional): a Rent Manager Location ID, a comma-separated
list, or ``"all"`` to run across every Location on this connection (see
``list_locations``). Blank = all Locations if the connection has several,
else its only Location. Output is labelled per Location; a Location that
can't be reached is listed as skipped. IDs (property, tenant, ...) belong
to one Location, so pass that Location when you filter by one.

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

Input Schema

NameRequiredDescriptionDefault
unit_idNo
locationNo
shortnameNo
unit_nameNo
property_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds behavior the annotations cannot: size is only present "when Rent Manager reports it", output is labelled per Location, unreachable Locations are reported as skipped, and blank location falls back to all-or-only Location. That is exactly the kind of operational context annotations cannot carry.

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?

Purpose, example phrasings, alternatives, and return fields are front-loaded, and the location paragraph follows logically as the one non-obvious parameter. Slightly long, and the location block carries stray indentation and trailing blank lines, but no sentence is filler.

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?

Purpose, alternatives, output fields, and the multi-Location resolution rules are covered, and an output schema exists so return shaping needn't be spelled out. The definition is nonetheless incomplete for a five-parameter tool: the identity/selector parameters (shortname, unit_name, property_id, unit_id) are undocumented, leaving ambiguity about how a unit is targeted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 document five parameters. Only `location` is explained in depth (single ID, comma list, "all", default fallback, per-location labelling, skipped locations), with a passing hint that filtering by property/tenant IDs requires passing that Location. The other four parameters — unit_id, shortname, unit_name, property_id — are never mentioned, so an agent cannot tell whether they are alternative unit identifiers, filters, or required combinations.

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?

Opens with a specific scope statement ("Every file on one unit — History-note attachments and UDF files") and enumerates the returned fields (FileID, filing location, date, size, name). It also explicitly separates itself from get_unit_images (IMAGES tab) and download_unit_attachment, 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 Guidelines5/5

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

Gives concrete user-question triggers ("what documents do we have on lot 24", "is the title on file") and names the alternatives with the condition that selects each: download_unit_attachment for retrieving one file, get_unit_images for photos, list_locations for location IDs. When-not-to-use is stated rather than inferred.

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.

Resources