Skip to main content
Glama

loki_search_hubs

Read-only

Find a logistics hub's ID by name or code. Supports filtering by type, business client, and status for accurate identification of pharmacy or diagnostics hubs.

Instructions

Search logistics hubs. Use this first to find a hub's id (a Mongo ObjectId string) when you only know its name/code -- order and task search require hub_id.

Note on hub kinds: pharmacy delivery hubs are business_client="pharmacy" (types like RETAIL); diagnostics phlebo centers (PACs) are business_client="droplet", type="PAC". A "Sec-14 Gurgaon PAC" is therefore a droplet/PAC hub, not the same as the "sec_14_ggn_retail" pharmacy hub.

IMPORTANT: the server DEFAULTS business_client to "pharmacy" when it is omitted, so a search for a diagnostics/phlebo hub returns nothing unless you pass business_client="droplet". query is a substring match over both name AND code, so short numeric queries (e.g. "14") also match hub codes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based page number.
queryNoSubstring match on hub name OR code (sent as `name_code_query`).
statusNoe.g. "active".
compactNoIf True (default) return only key fields per hub (id, name, code, type, status, business_client, city, lat/long). Set False for the full hub objects (large -- may overflow on big pages).
hub_typeNoHub type filter, e.g. "PAC", "RETAIL".
per_pageNoPage size (default 20).
extra_filtersNoAny additional raw filter fields to merge into the payload (e.g. {"name": "...", "code": "...", "vendor_code": "..."}).
business_clientNoe.g. "pharmacy", "droplet".
Behavior5/5

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

Annotations already indicate readOnlyHint and openWorldHint. The description adds valuable behavioral details: server-side default for business_client, substring match behavior, compact mode to manage output size. No contradictions.

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?

Reasonably concise with no wasted sentences, though the note on hub kinds adds length. Structured with clear sections. Could be slightly more streamlined but effective.

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?

Given 8 parameters and no output schema, the description covers key aspects: purpose, defaults, filtering, and relation to other tools. Lacks explicit output format but mentions compact return fields. Adequate for the complexity.

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?

All parameters have schema descriptions (100% coverage). The description enhances understanding by explaining defaults, query substring matching, and extra_filters purpose. Adds context beyond schema.

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 clearly states the action (search), the resource (logistics hubs), and the primary goal (find hub ID by name/code). It distinguishes itself from sibling tools by noting that order and task search require hub_id, making the purpose explicit.

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?

The description provides clear when-to-use guidance (use first to find hub ID) and important context (business_client defaults, need to pass 'droplet' for diagnostics hubs). It does not explicitly exclude scenarios but covers key usage nuances.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhijain864/loki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server