Skip to main content
Glama

osrs_wiki_search

Search the Old School RuneScape (OSRS) Wiki for pages matching specific terms using a dedicated tool. Retrieve relevant results with customizable limits and pagination offsets for precise queries.

Instructions

Search the OSRS Wiki for pages matching a search term.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of results to return (1-50)
offsetNoOffset for pagination (0-based)
searchYesThe term to search for on the OSRS Wiki

Implementation Reference

  • Handler for osrs_wiki_search: parses input, calls OSRS Wiki API search endpoint, formats and returns response.
    case "osrs_wiki_search":
        const { search, limit = 10, offset = 0 } = OsrsWikiSearchSchema.parse(args);
        const searchResponse = await osrsApiClient.get('', {
            params: {
                action: 'query',
                list: 'search',
                srsearch: search,
                srlimit: limit,
                sroffset: offset,
                srprop: 'snippet|titlesnippet|sectiontitle'
            }
        });
        return responseToString(searchResponse.data);
  • Zod input schema defining parameters for the osrs_wiki_search tool: search term, optional limit and offset.
    const OsrsWikiSearchSchema = z.object({
        search: z.string().describe("The term to search for on the OSRS Wiki"),
        limit: z.number().int().min(1).max(50).optional().describe("Number of results to return (1-50)"),
        offset: z.number().int().min(0).optional().describe("Offset for pagination (0-based)")
    });
  • index.ts:243-247 (registration)
    Tool registration in listTools handler, including name, description, and converted input schema.
    {
        name: "osrs_wiki_search",
        description: "Search the OSRS Wiki for pages matching a search term.",
        inputSchema: convertZodToJsonSchema(OsrsWikiSearchSchema),
    },
  • Axios client instance configured for OSRS Wiki API calls, used by the handler.
    const osrsApiClient = axios.create({
        baseURL: 'https://oldschool.runescape.wiki/api.php',
        params: {
            format: 'json'
        }
    });
  • Utility function to format tool responses into MCP content structure.
    const responseToString = (response: any) => {
        const contentText = typeof response === 'string' ? response : JSON.stringify(response);
        return {
            content: [{ type: "text", text: contentText }]
        };
    };
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Search') but doesn't describe what the search returns (e.g., page titles, snippets, URLs), any rate limits, authentication needs, or error conditions. This leaves significant gaps in understanding how the tool behaves beyond its basic function.

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?

The description is a single, efficient sentence that directly states the tool's purpose without any fluff or redundancy. It is appropriately sized and front-loaded, making it easy to understand at a glance.

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

Completeness2/5

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

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what the search returns (e.g., list of pages with metadata), how results are ordered, or any behavioral traits like pagination handling. For a search tool with no structured output documentation, this leaves the agent with insufficient context to use it effectively.

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 input schema has 100% description coverage, with clear documentation for all three parameters ('search', 'limit', 'offset'). The description adds no additional parameter semantics beyond what the schema provides, such as search syntax or result ordering. With high schema coverage, the baseline score of 3 is appropriate as the schema handles the heavy lifting.

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 clearly states the verb ('Search') and resource ('OSRS Wiki for pages'), making the purpose immediately understandable. It distinguishes from most siblings by specifying the OSRS Wiki domain, though it doesn't explicitly differentiate from other search tools like 'search_data_file' or 'search_iftypes' that operate on different data sources.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. While it implicitly suggests use for searching the OSRS Wiki, it doesn't mention when to choose this over other wiki-related tools like 'osrs_wiki_get_page_info' or 'osrs_wiki_parse_page', nor does it provide any context about prerequisites or exclusions.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JayArrowz/mcp-osrs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server