Skip to main content
Glama

analyze_topic

Analyzes a topic before querying to recommend data types, search terms, data sources, and reasoning—use it first when unsure how to query.

Instructions

Use AI to analyze a topic before querying. Returns recommended data types, search terms, relevant data sources, and reasoning. Call this first when unsure how to query a topic.

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

Input Schema

NameRequiredDescriptionDefault
topicYesTopic to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses that the result is AI-generated and enumerates the returned fields, which is genuinely useful. However, it says nothing about latency or cost of an LLM-backed call, whether results are deterministic, or that it is a read-only operation, which are the traits an agent most needs to decide whether to spend a call on it.

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?

Three short sentences with zero filler: purpose, return value, and the trigger condition, with the usage rule front-loaded at the end. Nothing could be removed without losing information.

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 one-parameter tool with no output schema, the description covers what to pass and what comes back, which is the essential surface. It stops short of explaining how the returned search terms and data types are meant to be fed into a subsequent query, which would close the loop for an agent.

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?

The single parameter is fully documented in the schema (100% coverage), so the schema does the work. The description does not add meaning beyond 'topic' — no guidance on how specific or broad the topic string should be, or how phrasing affects the recommendations.

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?

The description gives a specific verb and resource ('analyze a topic') and states the output ('recommended data types, search terms, relevant data sources, and reasoning'), which is more than a restatement of the name. It differentiates by position ('before querying') rather than naming the sibling query_topic explicitly, so it stops just 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?

'Call this first when unsure how to query a topic' gives a concrete trigger condition tied to the sibling query flow. It does not state a when-not case (e.g., skip this if you already know the schema), so it is clear context without exclusions.

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