mcpField
G
glean-cli-search

glean-cli-search

github.com/gleanworkProductivity6439 installsUpdated 13w ago
Repository

About glean-cli-search

A CLI skill reference for searching content in a Glean instance, intended for users querying indexed workplace information. It documents filters, output formats, response options, and command-schema discovery.

Key features

  1. 01Search Glean content
  2. 02Filter by source and type
  3. 03JSON, NDJSON, and text output
  4. 04Control snippets and response hints
  5. 05Inspect command schemas

Use cases

  1. 01Finding policy documents
  2. 02Searching selected data sources
  3. 03Returning expanded LLM-friendly content
  4. 04Checking search command options

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/gleanwork/glean-cli --skill glean-cli-search

After installing, type/glean-cli-searchin Claude Code to confirm it loaded.

Details

From the project README

glean search

PREREQUISITE: Read ../glean-cli/SKILL.md for auth, global flags, and security rules.

Search for content in your Glean instance. Results are JSON.

glean search [flags]

Flags

FlagTypeDefaultDescription
--datasource[]stringFilter by datasource (repeatable)
--disable-query-autocorrectbooleanfalseDisable automatic query corrections
--disable-spellcheckbooleanfalseDisable spellcheck
--dry-runbooleanfalsePrint request body without sending
--facet-bucket-sizeinteger10Maximum facet buckets per result
--fetch-all-datasource-countsbooleanfalseReturn counts for all datasources
--jsonstringComplete JSON request body (overrides individual flags)
--max-snippet-sizeinteger0Maximum snippet size in characters
--outputjson | ndjson | textjsonOutput format
--page-sizeinteger10Number of results per page
--querystringSearch query (positional arg) (required)
--query-overrides-facet-filtersbooleanfalseAllow query operators to override facet filters
--response-hints[]string[RESULTS QUERY_METADATA]Response hints
--return-llm-contentbooleanfalseReturn expanded LLM-friendly content
--tab[]stringFilter by result tab IDs (repeatable)
--timeoutinteger30000Request timeout in milliseconds
--type[]stringFilter by document type (repeatable)

Examples

glean search "vacation policy" | jq '.results[].document.title'
glean search --json '{"query":"Q1 reports","pageSize":5,"datasources":["confluence"]}' | jq .

Discovering Commands

# Show machine-readable schema for this command
glean schema search

# List all available commands
glean schema | jq '.commands'

Comments

Markdown supported