Skip to main content
Glama
NabuDesk MCP server

NabuDesk MCP server

Official
by NabuxAi

test_retrieval

Scores a question against all knowledge items and shows which clear the retrieval threshold, catching non-English cases where right document ranks first but scores below 0.2 and nothing is retrieved.

Instructions

Score a question against every knowledge item and show which ones clear the retrieval threshold. Use to catch the silent failure where a non-English question ranks the correct document first but still falls under the 0.2 minimum score, so nothing is retrieved at all.

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": {
      "question": "<question>"
    },
    "name": "test_retrieval"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoHow many results to return. Default 5.
questionYes
min_scoreNoThreshold to compare against. Default 0.2 — the production value.
business_idNoOptional if active business was set via switch_business.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the threshold-comparison behavior and frames the diagnostic purpose, but never states that the tool is read-only/no-side-effects, says nothing about cost or latency of scoring every item, and only vaguely implies the return shape ('show which ones clear').

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?

Two sentences, zero waste: the operation first, the distinguishing failure case second. Nothing redundant and the important scoping idea is front-loaded.

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 four-parameter tool with no annotations and no output schema, the definition covers what the tool does and why you would call it. It stops short of describing the result payload (per-item scores vs. only passing items) and gives no assurance about side effects.

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 75% and three of four parameters already carry descriptions, so the schema does most of the work. The description reinforces that 0.2 is the production threshold, which adds a little meaning to `min_score`, but `top` and `business_id` receive no additional context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and scope: score a question against every knowledge item and show which clear the threshold. That is clearly a diagnostic/inspection operation rather than an answering operation like `ask`, though the description never names a sibling to make the contrast 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?

Gives a concrete when-to-use condition: catching the silent failure where a non-English question ranks the right document first but still scores below the 0.2 minimum. No when-not guidance or named alternatives, but the motivating scenario is specific enough to route the agent correctly.

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