Skip to main content
Glama
sgx-labs

Stateless Agent Memory Engine (SAME)

reindex

Refresh search results by updating the index of markdown notes. Re-embeds changed files to ensure accurate retrieval, with an option to force full re-indexing.

Instructions

Re-scan and re-index all markdown notes. Use this if the user has added or changed notes and search results seem stale. Incremental by default (only re-embeds changed files).

Args: force: Re-embed all files regardless of changes (default false)

Returns indexing statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceYesRe-embed all files regardless of changes

Implementation Reference

  • The tool "reindex" is called as a subcommand of a binary `SAME_BIN` (likely a prebuilt binary) via a subprocess call. The actual handler implementation resides within the compiled binary, not in the provided source code.
    reindex_result = subprocess.run(
        [SAME_BIN, "reindex", "--force"],

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/sgx-labs/statelessagent'

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