Appearance
Search Tools Area
BETA
Agent Gateway is in BETA, and we're continuing to expand its capabilities. Your feedback helps shape what we build next—reach out to us through Relewise Support.
The Search Tools Area lets you inspect Search rules and Search Indexes, and approve or disapprove existing rules. Use it to understand how searches are interpreted and results are modified. Creating, replacing, and deleting rules are outside this Area's scope.
Get Started covers connection and access setup. REST paths below are relative to the Dataset base URL.
Available Capabilities
Rules
For each collection below, use REST GET to list rules, GET with /{ruleId} appended to retrieve a rule, and PATCH with /{ruleId} appended to change approval. MCP provides the corresponding list, get, and approval tools.
| Rule Family | REST Collection Path | MCP Tools |
|---|---|---|
| Stemming | /search-tools/stemming-rules | list_stemming_rulesget_stemming_ruleset_stemming_rule_approved |
| Redirect | /search-tools/redirects | list_redirect_rulesget_redirect_ruleset_redirect_rule_approved |
| Search Term Modifier | /search-tools/search-term-modifiers | list_search_term_modifier_rulesget_search_term_modifier_ruleset_search_term_modifier_rule_approved |
| Decompounding | /search-tools/decompounding-rules | list_decompounding_rulesget_decompounding_ruleset_decompounding_rule_approved |
| Search Result Modifier | /search-tools/search-result-modifiers | list_search_result_modifier_rulesget_search_result_modifier_ruleset_search_result_modifier_rule_approved |
| Synonym | /search-tools/synonyms | list_synonym_rulesget_synonym_ruleset_synonym_rule_approved |
Search Index Operations
| Capability | REST Endpoint | MCP Tool |
|---|---|---|
| List Search Indexes | GET /search-tools/search-indexes | list_search_indexes |
| Get a Search Index | GET /search-tools/search-indexes/{searchIndexId} | get_search_index |
Inspect Rules
List rules to discover Rule IDs, optionally filtering by term or approval state. Lists support page-number pagination through REST and MCP. Retrieve a rule to inspect its complete conditions, actions, or other configuration.
Synonym lists also include complete definitions, so they can be used to inspect word relationships directly.
Change Rule Approval
Set isApproved to true to approve a rule for matching searches or false to remove approval. Approval changes can affect live searches while preserving the rule's definition and scope.
REST preserves approval if isApproved is omitted or null; MCP requires an explicit boolean value.
Inspect Search Indexes
List Search Indexes to discover their IDs, enabled state, default state, and rebuild state. Retrieve an index to inspect its languages and complete configuration. Use isDefault to identify the default index.
See Search Indexes for how index configuration affects searches.
Encoded Configuration
Search Index configuration (indexJson) and Search Result Modifier filters (filtersJson) are returned as JSON strings. Parse them to inspect the configuration and preserve Relewise $type metadata when storing or forwarding it. See Filters for filter meanings.
For complete inputs and response schemas, use the API reference or MCP tool discovery.