Skip to main content
Glama

Search exact text

wiki_search
Read-onlyIdempotent

Find exact text in wiki pages and past session transcripts with a case-insensitive literal substring search. Use it to look up prior decisions and fixes before redoing work.

Instructions

Find exact text: a case-insensitive substring match, line by line, over wiki/ pages, plus raw session transcripts in raw/sessions/ when include_raw=true. term is literal: regex and glob characters have no special meaning. Transcripts are scanned newest first. Returns compact JSON {term, match_count, truncated, files: [{path, hits, lines: [[line, snippet]]}], more_files, scan_incomplete, files_scanned, files_total, skipped_oversize_files}: up to 40 files with up to 3 lines each, snippets of 200 chars centred on the match. The scan stops at 200 matches (truncated), skips files over 4 MiB and reads at most 256 MiB per call (scan_incomplete). Read-only. Use wiki_query instead for ranked, question-style lookup; open a hit with wiki_read_page.

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": {
      "term": "<term>"
    },
    "name": "wiki_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
termYesSearch term (literal substring match).
include_rawNoAlso search raw/sessions/ (default false — only wiki/).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavioral detail: newest-first transcript ordering, a 200-match truncation cap, 4 MiB per-file skip, 256 MiB per-call read budget surfaced as scan_incomplete. Its return-shape disclosure is a bonus since no output schema exists. It stops short of saying how skipped/oversize files are reported beyond a counter.

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 semantics, then scope, then return shape, then routing — a logical progression with no filler sentences. The enumerated JSON field list is dense but each field is load-bearing in the absence of an output schema.

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?

No output schema exists, and the description compensates fully by enumerating every returned field and the caps that produce them (truncated, more_files, scan_incomplete, files_scanned/files_total). For a two-parameter read-only search tool, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: term is treated literally, so regex and glob metacharacters carry no special meaning. include_raw semantics are largely restated from the schema rather than extended.

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 (find exact text) and resource (wiki/ pages plus raw/sessions/), and explicitly bounds the semantics as a case-insensitive substring match scanned line by line. This is clearly distinguishable from ranked lookup siblings without opening any schema.

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?

Names the alternative explicitly ('Use wiki_query instead for ranked, question-style lookup') and gives the follow-up path ('open a hit with wiki_read_page'). It also states the condition that widens scope (include_raw=true).

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