Skip to main content
Glama

Kliendiotsing

find_customers
Read-onlyIdempotent

Otsi KLIENTI müügiarve koostamiseks. Otsib firma kliendiregistrist nime, registrikoodi või KMKR-i järgi ja tagastab iga vaste kohta: id, rekvisiidid, eelistatud arve keele, vaikimisi tulukonto ning viimased arved koos ridadega (kirjeldus, kogus, ühik, hind, konto) — nende põhjal saab korrata „sama arvet mis eelmisel kuul". Kui kliendiregistris vastet pole, otsib ka äriregistrist (nimi + registrikood). Kasuta ALATI enne propose_sales_invoice, kui kliendi id pole teada.

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_customers"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesKliendi nimi (või selle osa), registrikood või KMKR, nt "Acme" või "12345678".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the fallback path (if no match in the customer register, it also queries the business register by name + reg code) and by spelling out the return payload, including recent invoices with line items, which explains why it is useful for repeating last month's invoice. Annotations already cover read-only/idempotent safety, so the remaining gap (no mention of rate limits or ambiguity handling for multiple matches) keeps it at 4 rather than 5.

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?

Front-loaded with the action and purpose, then the search keys, then the return contents, then the mandatory ordering rule. The long field enumeration in the middle is dense but every element earns its place because there is no output schema to carry that information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter lookup with no output schema, the description supplies what structured fields do not: the result shape, the cross-registry fallback, and the required call ordering before propose_sales_invoice. Nothing an agent needs to invoke it correctly is missing.

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% and already documents the single `query` parameter with examples, so the description's mention of name / registrikood / KMKR largely restates it. Baseline 3 applies; no extra syntax or matching-precedence detail is added.

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 and resource ("Otsi KLIENTI" — find a customer) and pins the business goal ("müügiarve koostamiseks"). It also names the search keys (name, registrikood, KMKR) and enumerates what each hit returns, so the agent knows exactly what this tool gives versus the invoice-creation siblings.

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?

Explicitly routes the agent: "Kasuta ALATI enne propose_sales_invoice, kui kliendi id pole teada" — always call this before propose_sales_invoice when the customer id is unknown. That is both a when-to-use rule and a named alternative with the condition that selects it.

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