Skip to main content
Glama

Search API

search-api
Read-only

Web search on the Desearch index (POST /search). Returns ranked pages, each with its title, URL, publication date when known, and the passage that best matches the query. Set summary: true for a short answer written from the results with numbered citations; [n] in summary.text refers to summary.citations[].index. Set page_text to add each page's full text. Returns { summary, results, meta, cost_usd, usage_count, service, currency }, with summary first when requested; summary is null and meta.notices says 'Summary unavailable.' when it could not be written. Use search for titles and links only, and web-search for SERP-style snippets.

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": "search-api"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'fast' returns results sooner; 'balanced' (API default) favors relevance.
countNoNumber of results: 10 (API default), 15, or 20.
queryYesSearch query, example: 'Who won the 2024 Nobel Prize in Physics?'
summaryNoAlso return a short answer written from the results, with numbered citations (API default false). No extra charge.
end_dateNoOnly pages published on or before this date (YYYY-MM-DD).
page_textNoInclude each page's full text (API default false).
highlightsNoInclude the passage that best matches the query (API default true).
start_dateNoOnly pages published on or after this date (YYYY-MM-DD).
exclude_domainsNoNever pages on these domains or their subdomains (at most 1,200). Wins over include_domains and site:.
include_domainsNoOnly pages on these domains or their subdomains (at most 100), example: ['bbc.com', 'reuters.com']

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / exclude_domains
      Added value: +{
      +  "description": "Never pages on these domains or their subdomains (at most 1,200). Wins over include_domains and site:.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 1200,
      +  "type": "array"
      +}
    • addedInput schema / properties / include_domains
      Added value: +{
      +  "description": "Only pages on these domains or their subdomains (at most 100), example: ['bbc.com', 'reuters.com']",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedInput schema / properties / summary
      Added value: +{
      +  "description": "Also return a short answer written from the results, with numbered citations (API default false). No extra charge.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior3/5

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

The annotations already establish readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that, documenting the returned envelope including cost_usd and usage_count, that summary is free, and the degraded path where summary is null and meta.notices reads 'Summary unavailable.' It stops short of describing ranking behavior or truncation and pagination limits, so it is solid but not exhaustive.

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?

Front-loaded with purpose and return shape, and every sentence carries information, including the response envelope, which matters because there is no output schema. It is still one dense block enumerating many fields and flags, which is harder to scan than a structured layout would be.

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?

With no output schema and ten parameters, the description accepts the burden of describing return values, the citation convention, the summary failure mode, and the cost fields. Combined with 100% schema coverage on inputs and the annotations, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description genuinely adds meaning on top: it explains that [n] in summary.text maps to summary.citations[].index, and that page_text adds full page text and highlights adds the best-matching passage. Those details go beyond the schema's phrasing, though other parameters such as mode and the domain filters are only covered by the schema.

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 ('Web search on the Desearch index (POST /search)') and immediately characterizes the result shape: ranked pages with title, URL, publication date, and best-matching passage. It also explicitly separates itself from siblings by saying to use 'search' for titles and links only and 'web-search' for SERP-style snippets.

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?

It gives concrete when-to-use guidance for optional behaviors ('Set summary: true for a short answer', 'Set page_text to add each page's full text') and names two explicit alternatives with the condition that selects each. Nothing about selecting this tool over its siblings is left 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.