A content tool is a named lookup over one folder of your published Markdown. It
needs no server. Declare up to ten in root glue.json:
{
"schemaVersion": 1,
"mcp": {
"tools": [
{
"name": "find_checks",
"description": "Select audit checks by category and surface.",
"folder": "checks",
"filters": ["status", "category", "surfaces"],
"returns": ["id"],
"search": true
}
]
}
}
nameuses lowercase letters, numbers and underscores. It cannot reuse a built-in tool name such asread_page.folderis a repository folder that holds published Markdown. Publishing fails when it holds none.filterslists up to ten frontmatter fields a caller may filter on.returnslists up to twenty extra fields to include in each result. Field names match your frontmatter keys exactly, including case.searchis optional. Set it totrueto let callers also passquery, a text search over the folder.
Publish a release. The channel then offers find_checks, and MCP → Settings
→ Published tools lists it. A caller can pass
accessibility as the value for the category filter. A page matches when
its field equals the value or lists it.
With search, query keeps only pages whose title or Markdown contains that
text. It takes 1 to 200 characters, ignores case and matches the text
literally, with no wildcards or operators. It combines with filters.
Each result lists matching pages with their page address, title, path and
the fields you declared, plus total. Results never include page text. Results
are paged: the caller passes nextCursor back as cursor until none is
returned. limit sets the page size, from 1 to 200.
To read the pages, the caller passes a result's page address to read_page,
or up to 20 addresses at once as pages.
Read several pages at once
read_page takes page, one address, or pages, a list of 1 to 20 different
addresses. A pages call returns one entry per address, in the order asked:
- Each entry is what a single
read_pageof that address returns to the same caller. - A page that is unavailable to the caller is marked
unavailable. It does not fail the call. - Once the combined content would pass 400,000 characters, that page and the
rest are marked
deferred. Ask for those addresses again.
To make a page available through MCP only, see Control page visibility.