Skip to main content
Glama

Question to search

dv_parse_query
Read-onlyIdempotent

Converts a plain Persian property or car search into structured dv_search arguments, including city, neighborhoods, price bounds, category, and leftover terms, with notes for assumptions.

Instructions

Turn a plain Persian request into dv_search arguments: city, neighbourhoods, price bounds, category and leftover words.

Rule-based. Pass search to dv_search as it is; notes say what was assumed. Rooms, year and mileage are not extracted.

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": {
      "text": "<text>"
    },
    "name": "dv_parse_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesA search as a person would write it, e.g. 'آپارتمان اجاره ونک زیر ۸ میلیارد' or 'پراید کرج تا ۲۰۰ میلیون'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, and the description sensibly adds that the parser is "rule-based" and returns "notes" describing assumptions. Its most valuable disclosure is the exclusion list (rooms, year, mileage are not extracted), which tells the agent it must fill those itself. It does not say how reliable or lossy the parse is, nor how the price bounds are normalised (e.g. "۸ میلیارد" to a number and unit).

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 tight blocks, front-loaded with the transform and its outputs, then the chaining rule, then the limitation. Every clause carries information an agent would otherwise have to guess, including what to do with the two returned keys.

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?

There is no output schema, and the description discharges that duty in part by naming the two returned keys (`search`, `notes`) and their purpose. It stops short of describing the shape or units of the produced arguments (price representation, neighbourhood granularity), which an agent needs before trusting the hand-off. For a one-parameter helper, it is close to sufficient.

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?

With one parameter at 100% schema coverage, the schema already documents `text` with two worked examples in the target language. The description adds semantics about what the single input yields rather than about the parameter itself, so the baseline of 3 is appropriate.

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?

"Turn a plain Persian request into dv_search arguments" is a specific verb plus a specific resource, and it names the exact output fields (city, neighbourhoods, price bounds, category, leftover words). It is clearly distinguishable from dv_search itself: this is the pre-parser, not the searcher.

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?

"Pass `search` to dv_search as it is" gives explicit downstream chaining guidance, which is the main decision an agent needs. It lacks a negative condition (e.g. skip this when you already have structured filters, or when the query is not Persian), so it stops short of full when/when-not coverage.

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