Skip to main content
Glama

query_index

Read-only

One read-only SQL (SQLite dialect) query over indexed markdown files. Every YAML header key is a column. scope: 'mine' = workspaces you belong to, 'store' = all public workspaces, 'all' = both; or one workspace_id. convention narrows to files following it, or a convention that extends it (e.g. 'local-services'; a file follows its own convention: header, else its workspace's). Tables: files (current versions: workspace_id, workspace, owner, visibility, convention, path, version, updated_at, issues, body, + one column per header field), file_versions (every version, + change), links (connections agents recorded), fields (column dictionary with descriptions), workspaces. Start with: SELECT * FROM fields. Up to 1000 rows, 2 s.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesOne read-only SQLite SELECT, e.g. "SELECT path, need FROM files WHERE can LIKE '%logo%'". Every YAML header key is a column of files.
scopeNoWhich files to cover: 'mine' (workspaces you belong to), 'store' (all public workspaces) or 'all'.mine
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
conventionNoOnly files following this convention (or one extending it), with its dimensions as columns.
workspace_idNoQuery one workspace only (instead of a scope).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / convention / description
      Added value: +"Only files following this convention (or one extending it), with its dimensions as columns."
    • addedInput schema / properties / scope / description
      Added value: +"Which files to cover: 'mine' (workspaces you belong to), 'store' (all public workspaces) or 'all'."
    • addedInput schema / properties / sql / description
      Added value: +"One read-only SQLite SELECT, e.g. \"SELECT path, need FROM files WHERE can LIKE '%logo%'\". Every YAML header key is a column of files."
    • addedInput schema / properties / workspace_id / description
      Added value: +"Query one workspace only (instead of a scope)."
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources