Skip to main content
Glama

Search account locations

search_account_locations
Read-only

Look up where the workspace's accounts are headquartered: regions, countries, states and cities matching the text, each with its account count. Returns the exact HQ_LOCATION_FILTER_FIELD values (e.g. 'region:EMEA', 'state:US|Minnesota', 'city:US|Illinois|Chicago') to pass to SearchAccountsWithFilters. Regions: NAMER, LATAM, EMEA, APAC, EUROPE, MIDDLE_EAST, AFRICA, UKI, DACH, NORDICS, BENELUX, ANZ, SEA, US-WEST, US-MIDWEST, US-NORTHEAST, US-SOUTH.

Use when: Use before filtering accounts by headquarters location (a territory, region, state or city such as 'accounts in the Midwest', 'companies based in Chicago'). Call once per place the user names, then pass the returned values together in one HQ_LOCATION_FILTER_FIELD filter (values are OR-combined). Not for where a contact lives.

Behavior: read_only

workspace_id / user_id are injected from request headers.

Returns options[] with fields: value label kind account_count

IMPORTANT: If the response contains more than one record, always present the options to the user and ask them to choose before taking any follow-up action. Do not act on all results automatically.

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": "search_account_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, closed-world behavior, and the description adds real value on top: workspace_id/user_id are header-injected (no auth param needed), values are OR-combined when passed together, and an 'IMPORTANT' rule requires presenting multiple options to the user before acting. The only gap is that it does not describe the effect of the limit parameter or ambiguity handling for zero results.

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 structure is strong and front-loaded: purpose, then 'Use when', then 'Behavior'. The listing of returns options[] fields (value/label/kind/account_count) partly duplicates the available output schema, and the long region enumeration is expensive, though it does help an agent recognize place synonyms.

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?

For a two-param lookup with an output schema and full annotations, the description covers when to call, what the returned values look like and how to feed them downstream, plus the multi-option confirmation rule. The only incompleteness is the undocumented limit parameter and lack of empty-result guidance.

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 description coverage is 0%, so the description must carry param meaning. 'matching the text' implicitly defines the query parameter as the place text to match, but the limit parameter is never mentioned and there is no guidance on match semantics (prefix vs substring, case, singular vs plural).

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 opens with a specific verb and resource: 'Look up where the workspace's accounts are headquartered', enumerating the dimensions (region, country, state, city) and the account count. It also makes clear this is a filter-value resolver for search_accounts_with_filters, which cleanly separates it from that sibling.

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?

It gives an explicit 'Use when' clause with concrete user phrasings ('accounts in the Midwest', 'companies based in Chicago') and an explicit exclusion ('Not for where a contact lives'). It also names the downstream consumer (SearchAccountsWithFilters) and explains how to combine multiple results in one OR-combined filter.

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