Skip to main content
Glama

Ask in plain English (NLWeb)

ask
Read-onlyIdempotent

NLWeb ask: a question in plain English, e.g. "English-speaking lawyer in Valencia for the non-lucrative visa" or "NIE appointment". Returns schema.org-typed results (LegalService, AccountingService, InsuranceAgency, MovingCompany, School, Article) in the NLWeb v0.55 answer format, each with url to cite. The question is read with word lists, not a model: for precise filters use search_listings, for multi-step questions use execute.

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": "ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
metaNoProtocol metadata, e.g. { version: "0.55" }
queryYesThe query: text plus optional site ("listings" or "guides") and itemType (a schema.org type)
preferNomode: "list" or "summarize"; response_format: "conversational_search" or "chatgpt_app"
contextNoConversationalContext: { prev: [earlier queries] }

Output Schema

NameRequiredDescriptionDefault
_metaYes
errorNo
resultsNo
structuredDataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses the mechanism ("read with word lists, not a model"), the output format (NLWeb v0.55 answer shape), the typed result categories, and that each result carries a url to cite. The keyword-matching disclosure is the most valuable part, since it tells the agent the matching is lexical rather than semantic.

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?

Three dense sentences, front-loaded with purpose and examples, then routing, then return shape — a logical order with no filler. It is slightly jargon-heavy ("NLWeb v0.55 answer format") but that phrasing carries real information about the response envelope.

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 tool with nested objects and an output schema, the description covers purpose, alternatives, matching behavior, and result shape adequately. The remaining gap is the optional meta/prefer/context plumbing, whose effect on behavior (list vs summarize, prior-query chaining) is not explained anywhere in prose.

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 documents query.text, site, itemType, meta, prefer, and context, making 3 the baseline. The description adds one genuinely useful hint about how query text is matched (word lists), but says nothing about site values, prefer.mode, or context.prev, so it does not exceed baseline.

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 names a specific verb and resource ("ask: a question in plain English") and immediately grounds it with two concrete example queries. It also names the schema.org result types returned, so an agent knows exactly what class of operation this is and how it differs from search_listings and execute.

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?

Explicit routing is provided: use search_listings for precise filters and execute for multi-step questions. That gives both a when-to-use and a when-not-to-use with named alternatives, leaving nothing to inference.

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