Skip to main content
Glama

Get postcode

dar_get_postcode
Read-onlyIdempotent

Retrieve a Danish postcode by 4-digit code or UUID, returning id, code, name, and status. Use the id to list access addresses in that postcode.

Instructions

Fetch a Danish postcode (postnummer) by its 4-digit code or by UUID. Returns id, code, name and status.

Example: dar_get_postcode({ postcode: "1663" }) -> "København V", id d4a3a5ad-.... Use the returned id as postcode_id in dar_list_access_addresses to enumerate addresses in that postcode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postcodeNo4-digit postcode, e.g. "8000".
postcode_idNoPostnummer UUID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds value by naming the return fields and the downstream id handoff, but says nothing about lookup-miss behavior or the fact that both parameters are optional (required: 0), leaving the 'neither supplied' case undefined.

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?

Two compact sentences, front-loaded with the core action and return shape, followed by a concrete example and a workflow handoff. The example earns its place; nothing is padded, though the second sentence carries two distinct ideas.

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?

With only two params, no output schema and no nested objects, the definition is nearly self-contained: it names the return fields and the follow-up tool. The remaining gap is the optional-parameter edge case, which neither the description nor the schema resolves.

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 coverage is 100% so baseline is 3, but the description adds real semantics beyond the schema: it frames the two parameters as alternative lookup keys ('by its 4-digit code or by UUID'), which the schema does not state, and ties the returned id to the postcode_id parameter of another tool.

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?

States a specific verb (Fetch) and resource (Danish postcode/postnummer) with the two accepted key forms, and enumerates the returned fields (id, code, name, status). This clearly separates it from sibling getters like dar_get_street, dar_get_address and dar_get_access_address, which target different entities.

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?

Provides a concrete example call and, more importantly, states the downstream usage: pass the returned id as postcode_id to dar_list_access_addresses. That routes the agent through a real workflow. It stops short of explicit when-not guidance or stating what happens if neither identifier is supplied.

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