Skip to main content
Glama

Search Mechanics

search_mechanics

Niedrigstufige Volltextsuche im lokalen Index für Spielmechaniken und Wissensseiten. Aktualisiert bei Bedarf den Index, sofern sync_before nicht false ist. Für eine direkte kurze Regelantwort zuerst get_help(topic=.../query=...) verwenden; hiermit gefundene Quelltexte abschnittsweise vertiefen.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_mechanics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoVolltextsuche nach Wörtern; Präfixsuche mit * (z. B. Transfer*).
offsetNo
sectionNoAbschnitte: limit=1/include_body=true; document erhält alle Felder. headings/document liefern JSON-Fragmente in data.results[0].chunk: alle Chunks mit derselben Revision in Reihenfolge verketten, dann JSON parsen. Einzelne Fragmente müssen kein vollständiges JSON sein. Metadaten stehen unter data.results[0].read_view; dessen pagination.next_offset bis null verfolgen.
page_typesNo
chunk_limitNoMaximale Codepunkte; Escape-Budget kann weniger zurückgeben.
sync_beforeNo
chunk_offsetNoUnicode-Codepunkte; next_offset übernehmen, Revision vergleichen.
include_bodyNo

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
toolYes
traceNo
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / allOf
      Removed value: -[
      -  {
      -    "if": {
      -      "properties": {
      -        "section": {
      -          "not": {
      -            "const": "all"
      -          }
      -        }
      -      },
      -      "required": [
      -        "section"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "include_body": {
      -          "const": true
      -        },
      -        "limit": {
      -          "const": 1
      -        },
      -        "offset": {
      -          "minimum": 0
      -        }
      -      }
      -    }
      -  },
      -  {
      -    "if": {
      -      "anyOf": [
      -        {
      -          "required": [
      -            "chunk_offset"
      -          ]
      -        },
      -        {
      -          "required": [
      -            "chunk_limit"
      -          ]
      -        }
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "section": {
      -          "enum": [
      -            "indexed_body",
      -            "html",
      -            "text",
      -            "headings",
      -            "document"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "section"
      -      ]
      -    }
      -  }
      -]
    • addedInput schema / description
      Added value: +"Chunk-Parameter nur für die dokumentierte section; positive Offsets erfordern den zugehörigen Snapshot und seine Revision. Bedingte Parameterregeln werden vor Ausführung serverseitig geprüft; VALIDATION_ERROR nennt den betroffenen Parameter."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "data": {},
      +    "meta": {
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "error"
      +      ],
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "trace": {
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "tool",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations flag readOnlyHint=false and idempotentHint=false, which would be surprising for a search tool. The description explains this by stating that the index is updated on demand unless sync_before is false, and it also states non-obvious usage: fetched texts must be deepened section by section. It does not disclose cost, latency, or consequences of index synchronization, so this is strong but not complete.

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 sentences, front-loaded with what the tool is, then the side effect on the index, then the routing to get_help and the follow-up workflow. No filler; every clause carries information.

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?

For a nine-parameter search tool with an output schema, the description covers purpose, the write side effect that justifies the annotations, the alternative tool, and how to consume results. With an output schema present, return values do not need explanation here.

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 only 44%, so the description has to compensate. It adds real meaning for sync_before: the index is refreshed by default unless set to false, which the schema does not say. The remaining parameters (limit, offset, page_types, include_body, chunk_*) get no mention in the description; their meaning comes from the schema's own per-field text.

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: 'Niedrigstufige Volltextsuche im lokalen Index für Spielmechaniken und Wissensseiten', scoping it to a local index and a content domain. This is enough to distinguish it from get_help, which the description names. It does not distinguish it from other search_* siblings, but those names alone do not establish their behavior.

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?

Gives explicit routing: for a direct short rule answer use get_help(topic=.../query=...) first, and use this tool to deepen source texts section by section. The alternative is named and the condition that selects each path is stated. No significant inference is left to the agent.

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.