Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

List Code Search Groups

list_code_search_groups
Read-only

List code search groups on a ServiceNow instance to see which tables and fields are included in code searches. Use group names as search_group parameters and sys_ids to add tables.

Instructions

List available code search groups on a ServiceNow instance. Search groups define which tables and fields are included when performing a code search. Each instance typically has a default search group, and additional groups can be created for specific use cases.

Use the group name as the search_group parameter in code_search. Use the group sys_id when adding tables via add_code_search_table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of search groups to return. Default is 100.
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=true, indicating a safe read operation. The description adds behavioral context by explaining what search groups are and that each instance typically has a default group. It does not contradict annotations and provides meaningful domain context beyond the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a clear first sentence stating purpose, followed by a short explanatory paragraph, and a final sentence with precise cross-tool usage. Every sentence earns its place with no redundancy or verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with no output schema, the description provides sufficient context: what search groups are, default behavior, and how to use the results with related tools. It covers all necessary operational knowledge for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the two parameters (limit and instance), so the schema already fully documents them. The description does not add further parameter-level meaning beyond the schema, but it does contextualize the output fields (name, sys_id) in relation to other tools. Overall, it meets the baseline without adding extra parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists code search groups on a ServiceNow instance, using a specific verb and resource. It distinguishes itself from related sibling tools like code_search and add_code_search_table by explaining how its output is used as inputs to those tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: the group `name` should be used as the `search_group` parameter in `code_search`, and `sys_id` when adding tables via `add_code_search_table`. This clearly instructs when and how to use the tool's results, effectively differentiating it from alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/sonisoft-cnanda/now-sdk-ext-mcp'

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