Skip to main content
Glama

query_topic

Run semantic topic searches across all Modernity data sources to get ranked, relevance-scored results with source, age, title, and summary; widen the timeframe if no results appear.

Instructions

Semantic search across all Modernity data sources. Returns ranked results with relevance scores, source, age, title, and summary. Best for finding information about a specific topic. Use a longer timeframe (1h, 24h) if the default 60s returns no results.

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": {
      "topic": "<topic>"
    },
    "name": "query_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (default 10, max 100)
topicYesNatural language topic or query to search for
formatNoOutput format: json or markdown (default json)
timeframeNoHow far back to search: 60s, 5m, 10m, 20m, 1h, 24h (default 60s). Use 1h or 24h for broader results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the return shape (ranked results with relevance score, source, age, title, summary), the default 60-second recency window, and the empty-result failure mode with a remedy. It omits rate limits, permissions, and whether the search spans configured sources vs. all sources, so it is strong 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?

Three short sentences, front-loaded with the core operation and with the result shape before the caveat. The only waste is the timeframe tip, which duplicates the schema description of that parameter.

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 simple four-parameter search with no output schema, the description covers purpose, return fields, and the recency-window pitfall that would otherwise cause empty results. What is missing is scope detail—which 'Modernity data sources' are actually searched—which an agent would need to interpret coverage.

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%, so all four parameters are already documented, and the description's timeframe advice largely restates the schema's 'Use 1h or 24h for broader results' note. 'Topic' is clarified as natural-language semantic input, but limit and format gain nothing beyond the schema, so baseline 3 fits.

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 specific verb and resource ('Semantic search across all Modernity data sources') and enumerates the result fields (relevance scores, source, age, title, summary), so the agent knows exactly what kind of operation this is. It does not name or distinguish itself from siblings such as get_recent_data or analyze_topic, which would be the natural confusion points, so it falls short of a 5.

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?

'Best for finding information about a specific topic' gives clear situational context, and the fallback rule ('use a longer timeframe if the default 60s returns no results') is a concrete operational guideline. There is no explicit when-not-to-use guidance or named alternative for browsing/recent-data needs, so no 5.

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