Skip to main content
Glama

get_listing

Fetch a complete finn.no listing by finnkode, including description, photo URLs, and category-specific specs; specify vertical to skip automatic probing and cache lookup.

Instructions

Fetch a full listing by its finnkode.

If ``vertical`` is omitted the server tries a cache hint first, then
probes each vertical until one returns a valid page. Pages are cached
for 24 hours in a local SQLite database.

``description`` is plain text and ``images`` has one URL per photo.
``attributes`` carries the spec list of the page (cars: year, mileage,
fuel, transmission, fees ...; real estate: areas, costs, facilities ...).

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": {
      "finnkode": "<finnkode>"
    },
    "name": "get_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
finnkodeYes
verticalNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and does so well: it discloses the cache-hint-then-probe fallback when `vertical` is missing and the 24-hour SQLite page cache, both of which affect freshness and latency expectations. It does not mention auth requirements or what happens when an invalid or unknown ``finnkode`` is passed, so it stops short of full transparency.

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 core action is front-loaded in a single sentence, followed by operational details and then return-field notes, so the reader can stop early. The blank-line-separated prose is mildly loose but no sentence is redundant.

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?

For a two-parameter read tool, the description covers the identifier, the optional filter's fallback semantics, caching behavior, and the shape of the key return fields (plain-text ``description``, one URL per photo in ``images``, per-vertical ``attributes``). Together with the existing output schema, an agent has what it needs to call this correctly.

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?

Schema description coverage is 0%, so the description must compensate, and it does for ``vertical``: it explains the cost and mechanism of omitting it (cache hint, then probing each vertical). It adds nothing about the ``finnkode`` format or the meaning of the six enum values, so coverage is partial rather than complete.

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?

"Fetch a full listing by its ``finnkode``" names a specific verb (fetch) and resource (full listing) plus the identifier needed to get it. An agent can distinguish it from search_finn or list_drafts without opening the schema, though it never explicitly contrasts itself with those siblings.

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

Usage Guidelines3/5

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

The description implies the use case (you already have a finnkode and want the complete record) and explains the fallback behavior when ``vertical`` is omitted, which is a genuine usage decision point. It offers no explicit when-not-to-use guidance nor names an alternative tool for lookup-by-query scenarios.

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