Skip to main content
Glama
@mistereman22/osrs-wiki-mcp-server

@mistereman22/osrs-wiki-mcp-server

by mistereman22

bucket-query

Read-onlyIdempotent

Run Bucket extension queries on a wiki to retrieve, filter, sort, and limit matching rows, with pagination for large result sets.

Instructions

Runs a Bucket extension query against the targeted wiki. One row per match. Enabled only when the wiki has Bucket installed.

Ground bucket and field names first: schemas are JSON pages in the Bucket: namespace (id 9592). The bucket(...) argument is the page title lowercased with spaces replaced by underscores — page Bucket:Combat achievement is queried as bucket("combat_achievement"). Discover with search-page-by-prefix (namespace 9592 plus a starting-letter prefix), then get-page to read the schema. Field names appear already lowercase-underscored in the schema; pass them verbatim.

Examples:

  • Lookup: bucket("exchange").select("name","high_alch").where("name","Abyssal whip").run()

  • Sort: bucket("exchange").select("name","value").orderBy("value","desc").limit(10).run()

  • Comparator: bucket("exchange").select("name","value").where({"value",">",1000000}).run()

Where syntax: shorthand where("field","value") for equality; table form where({"field","op","value"}) for =, !=, >, <, >=, <=. Compose with Bucket.And/Or/Not. Full Lua reference: https://meta.weirdgloop.org/w/Extension:Bucket/Usage.

Up to 500 rows per call, and only the whole rows that fit in 75000 bytes by default; paginate with continueFrom. Bucket's API is not yet stable upstream — error wording may shift, but errors come through verbatim.

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": "bucket-query"
  }
}

Input Schema

NameRequiredDescriptionDefault
wikiNoWiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki.
limitNoAppended as `.limit(N)` before `.run()`. Hard cap 500.
queryYesBucket Lua chain ending in `.run()`. Example: bucket("exchange").select("name","high_alch").where("name","Abyssal whip").run()
continueFromNoPagination token from a prior response (non-negative integer offset).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description still adds meaningful operational detail: the 500-row cap, the 75,000-byte row-size limit, the need to paginate with `continueFrom`, and the caveat that upstream errors come through verbatim and may shift. That is context the annotations do not supply.

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, then prerequisites, then examples, then limits — a sensible order for an agent to read. It is dense but nearly every line carries information; the three worked examples are the main length cost and partly duplicate the schema's example.

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?

With no output schema, the description still tells the agent what a result looks like (one row per match, capped at 500 rows / 75,000 bytes, resumable via `continueFrom`). Combined with the prerequisite discovery steps and full Lua reference link, an agent has everything needed to call it correctly.

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 real meaning about what goes *inside* the `query` string — the lowercased-underscore bucket naming convention, verbatim field names, and where-syntax forms. It does not re-explain `limit`/`continueFrom` beyond the schema, so it stops short of a 5.

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 ("Runs a Bucket extension query against the targeted wiki") plus the return granularity ("One row per match"), which no sibling tool provides. The note that it is "Enabled only when the wiki has Bucket installed" further separates it from generic page-search siblings.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite workflow (discover with `search-page-by-prefix` on namespace 9592, then `get-page` to read the schema) and a clear enabling condition. It falls short of a 5 because it never states directly when an agent should prefer this over the general `search-page` sibling for a lookup task.

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