Skip to main content
Glama

find_service

Read-onlyIdempotent

Locate running services across your fleet by container name, image, Compose project, or published port. Use this read-only search to answer "where is X running?" before placement or rebalance.

Instructions

Locate services across the fleet by container name fragment, image, Compose project, expected service name, or published port. Use before placement or rebalance when the user asks “where is X running?”. Read-only search over live/observed facts.

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": {
      "query": "<query>"
    },
    "name": "find_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch string: container/service/image/Compose project name fragment, or a published port number as a string (e.g. "443").
inventoryNoOptional path to servers.json (absolute or ~/…). Overrides FLEETLOOM_INVENTORY for this call. When omitted, uses FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.6
    • addedInput schema / properties / inventory / description
      Added value: +"Optional path to servers.json (absolute or ~/…). Overrides FLEETLOOM_INVENTORY for this call. When omitted, uses FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json)."
    • changedInput schema / properties / query / description
      Previous value: -"Search query (name fragment or port number)"New value: +"Search string: container/service/image/Compose project name fragment, or a published port number as a string (e.g. \"443\")."
  2. First observedv0.2.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world behavior, so the description only needs to add beyond that. 'Live/observed facts' is the real value-add: it tells the agent results reflect observed state rather than desired configuration, which matters when comparing against intended placement. It does not discuss result shape, empty-result behavior, or scope of the fleet scan.

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?

Three short sentences ordered as what / when / behavior, with the search axes front-loaded. 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?

For a two-parameter, read-only lookup with no output schema, this covers purpose, trigger, and data provenance adequately. The only shortfall is that it never indicates what a match contains (host, container, port bindings), which an agent may need to decide follow-up calls.

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 100%, so the schema already defines both parameters, including the port-as-string example. The description's enumeration of search axes mirrors the schema's own wording and never mentions the optional 'inventory' override path, so it adds little beyond what structured data provides.

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 ('Locate') and resource ('services across the fleet') and enumerates the exact search axes: container name fragment, image, Compose project, expected service name, published port. The trigger phrase 'where is X running?' plus the 'before placement or rebalance' framing cleanly separates it from siblings like place_service and suggest_rebalance.

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?

Gives a clear when-to-use rule: call it before placement or rebalance when the user asks where something runs. It implies the sibling handoff (placement/rebalance) without naming the exact tools or stating an explicit when-not condition, which keeps it just below the top score.

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