Skip to main content
Glama
io.github.rctruta/ashby-location-filter

io.github.rctruta/ashby-location-filter

by rctruta

normalize_location

Converts raw ATS job location strings and optional postal address fields into canonical country, city, region, and geographic scope to standardize location filtering.

Instructions

Normalize a raw ATS job location string and optional postal address into canonical country (Unicode CLDR), canonical city, region, and geographical scope (global, country, region, metro, unspecified).

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": {
      "rawName": "<rawName>"
    },
    "name": "normalize_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoOptional postalAddress.addressRegion
countryNoOptional postalAddress.addressCountry (name or 2-letter ISO code)
rawNameYesRaw location string from the job posting (e.g. 'San Fransisco, CA (HQ)' or 'Remote - US')
localityNoOptional postalAddress.addressLocality

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It usefully discloses the output taxonomy, including the CLDR standard and the scope enum values (global, country, region, metro, unspecified), which is real behavioral context. However, it never states whether this is a pure deterministic transformation with no side effects, what happens when a location cannot be resolved, or how ambiguous inputs are handled.

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?

A single dense sentence that front-loads the input and then lists the outputs. Every clause carries information; nothing is redundant or padded.

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?

Since there is no output schema, the description correctly takes on the job of enumerating return fields (country, city, region, scope) and naming the canonicalization standard. What is missing is edge-case behavior for unresolvable or ambiguous inputs, which matters for a normalizer operating on noisy ATS strings.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter is already documented in the input schema, making 3 the baseline. The description adds modest value by framing the three address fields (region, country, locality) collectively as an 'optional postal address' that supplements rawName, hinting at a primary/fallback relationship, but it gives no precedence or conflict-resolution rules when rawName and the postal fields disagree.

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 names a specific verb (normalize) and a specific resource (raw ATS job location string plus optional postal address), then enumerates the exact outputs: canonical country, canonical city, region, and geographical scope. Siblings (list_companies, search_jobs) are clearly different operations, so an agent can route to this tool without ambiguity.

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?

Usage is only implied: the phrase 'raw ATS job location string' and the example 'San Fransisco, CA (HQ)' suggest it is used when ingesting messy job-posting locations. There is no explicit statement of when to call it versus handling a location string directly, and no exclusions or prerequisites.

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

Deploy Server

Other Tools