Skip to main content
Glama

Search lore

search_lore
Read-onlyIdempotent

Free-text search a campaign's lore entities by name and description.

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": {
      "campaign_id": "<campaign_id>",
      "query": "<query>"
    },
    "name": "search_lore"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items to return (1-50).
queryYesFree-text query matched against name, aliases, and description.
cursorNoOpaque pagination cursor from a previous response.
campaign_idYesThe campaign to search within.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and idempotency are covered structurally. The description adds little beyond that—no mention of pagination behavior, result ordering, or what happens with an expired cursor. It also says matches occur on 'name and description' while the schema adds aliases, a minor underspecification rather than a contradiction.

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?

A single front-loaded sentence with no filler—everything present earns its place. The tradeoff is that brevity here edges toward under-specification rather than maximal efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four params fully documented and rich annotations, the essentials are covered. Without an output schema, however, the description could usefully say what a result looks like (entity summaries, pagination via cursor), and it omits any note on empty results or cursor expiry.

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 query, campaign_id, limit, and cursor are all documented in the schema. The description restates only the matching fields and adds no new meaning about query syntax, cursor lifecycle, or limit behavior; baseline 3 applies.

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 (search) and resource (lore entities) scoped to a campaign, with 'free-text' clarifying the search mode. It implicitly distinguishes itself from list_lore_entities, but never names that sibling, so the differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Free-text search' implies the usage context (you have a text query), and the campaign scoping is stated. However there is no explicit when-to-use vs. list_lore_entities or get_lore_entity guidance, and no exclusions or preconditions given.

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