Skip to main content
Glama
slaufer

library-of-babel-mcp

by slaufer

Search for text

search_text

Find the exact Library of Babel page address containing your text. The address works with get_page to retrieve that content.

Instructions

Find the address of a page containing the given text (up to 3200 characters). The Library of Babel already contains every possible page, so 'search' doesn't scan anything: it constructs the exact page you asked for and inverts the address mapping to learn where that page sits. The returned address is a genuine location — get_page on it returns your text. Padding and offset are part of the page, so changing either yields a different address. Text is lowercased and restricted to the library's 29-symbol alphabet (a-z, comma, space, period); unsupported characters are dropped or converted to spaces.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to locate in the library
offsetNoWhere the text starts on the page: a character offset, or "random"
paddingNoFill the rest of the page with spaces, or with random charactersspaces
Behavior5/5

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

With no annotations, the description fully carries the behavioral burden. It discloses that no actual scanning occurs, text is lowercased and restricted to a 29-symbol alphabet, unsupported characters are dropped/converted, and padding/offset affect the resulting address. This goes beyond a simple read/write hint and provides operational detail.

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?

The description is well-structured, front-loads the purpose, and every sentence adds value. It is somewhat dense as a single paragraph but remains appropriate in length and clarity.

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?

Despite lacking an output schema, the description explains the return value (an address), how to validate it (get_page returns your text), and the behavioral implications of parameters. For a tool with three parameters and no output schema, this is thoroughly complete.

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

Parameters5/5

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

Even though schema coverage is 100%, the description adds meaningful semantics: the text length limit, the alphabet restriction, character handling, and that offset/padding are part of the page and thus change the address. This enriches understanding beyond the schema fields.

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?

The description uses a specific verb and resource: 'Find the address of a page containing the given text.' It also distinguishes itself from siblings by explaining that it constructs and inverts the address mapping rather than scanning, making its unique functionality clear.

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?

The description provides clear context for when to use this tool: you want an address for a page containing given text, and get_page on that address returns the text. It implies the relationship with sibling tools but does not explicitly list alternatives or state when not to use it, so it falls short of a 5.

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

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/slaufer/library-of-babel-mcp'

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