Skip to main content
Glama
WaterSippin

OSRS MCP Server

Official
by WaterSippin

osrs_wiki_parse_page

Extract parsed HTML content from any OSRS Wiki page using the exact title for precise data retrieval and integration into applications or workflows.

Instructions

Get the parsed HTML content of a specific OSRS Wiki page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYesThe exact title of the wiki page to parse (e.g., 'Dragon scimitar', 'Abyssal whip'). Case-sensitive.

Implementation Reference

  • The handler function that executes the tool logic: validates input, makes API call to parse the specified wiki page, and returns the parsed HTML text.
    case "osrs_wiki_parse_page": const parsePageArgs = getSchemaForTool(name).parse(args) as { page: string }; const { page } = parsePageArgs; const parseResponse = await osrsApiClient.get('', { params: { action: 'parse', page: page, prop: 'text', formatversion: 2 } }); return responseToString(parseResponse.data?.parse?.text || 'Page content not found.');
  • Zod schema defining the input parameter 'page' for the tool.
    const OsrsWikiParsePageSchema = z.object({ page: z.string().describe("The exact title of the wiki page to parse (e.g., 'Dragon scimitar', 'Abyssal whip'). Case-sensitive.") });
  • index.ts:309-311 (registration)
    Registration of the tool in the list of available tools returned by listTools, with name and description.
    { name: "osrs_wiki_parse_page", description: "Get the parsed HTML content of a specific OSRS Wiki page.",
  • Mapping of tool name to its Zod schema in the getSchemaForTool function used for input validation.
    case "osrs_wiki_parse_page": return OsrsWikiParsePageSchema;
  • index.ts:262-262 (registration)
    Schema conversion and inclusion in toolSchemas object (note: uses camelCase key).
    osrsWikiParsePage: convertZodToJsonSchema(OsrsWikiParsePageSchema),

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/WaterSippin/mcp-osrs'

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