Skip to main content
Glama

Search the GMod wiki

wiki_search
Read-only

Finds official Garry's Mod wiki pages by name, not content, using exact, prefix, substring, and approximate matches ranked best first.

Instructions

Finds pages of the official wiki (https://wiki.facepunch.com/gmod/) by NAME, not by content: exact, then prefix, substring and approximate matches, best first. Names look like Entity:EmitSound, util.TraceLine, GM:PlayerSpawn, Global.EmitSound, Structures/TraceResult. The page list is downloaded once and cached 24 h (stale cache used offline). Result: {query, results: [{page, score, url}], total_matches, cache}. Then read one with wiki_page. Example: {"query": "TraceLine"}.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 20.
queryYes
refreshNoDownload the page list again (default false).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
nextNo
noteNo
cacheNo
queryYes
resultsYes
warningNo
next_callNo
answered_byNo
total_matchesYes
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, yet the description still adds real behavior: network dependency and the 24-hour page-list cache with stale-cache-offline fallback, plus the ranking algorithm for results. The refresh parameter's effect ('download the page list again') is corroborated in prose, so an agent knows the cost model of a call.

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 the core purpose and matching semantics, then name formats, caching, return shape and the sibling handoff. The 'Result: {query, results: ...}' sentence partly duplicates the existing output schema and is the one piece that does not fully earn its space.

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 4-parameter read-only search tool with an output schema already covering return values, the description covers purpose, matching semantics, caching/offline behavior, naming conventions, and the follow-up step. Nothing an agent needs in order to call this correctly is missing.

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 75%, so baseline is 3; limit, refresh and instance are already described in the schema, and the description only reinforces caching. It does add a concrete worked example ({"query": "TraceLine"}) and clarifies that the query targets page names rather than content, but it says nothing about limit's effect or valid page-name syntax beyond examples.

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 ('Finds pages of the official wiki') plus the exact matching dimension ('by NAME, not by content'), and enumerates the ranking order (exact, prefix, substring, approximate). Concrete name examples (Entity:EmitSound, util.TraceLine, GM:PlayerSpawn) make the resource granularity unambiguous and separate it from a page-reading or content-search tool.

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?

Explicitly rules out content search ('by NAME, not by content') and hands the agent off to the correct follow-up sibling ('Then read one with wiki_page'), forming a complete search-then-read workflow. No plausible alternative is left for the agent to infer.

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