Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Add Code Search Table

add_code_search_table

Add a table to a code search group to expand search coverage. Provide table name, fields to search, and the group's sys_id.

Instructions

Add a new table to an existing code search group, expanding what gets searched. After adding a table, code searches using that group will also search the specified fields on the new table.

Requires the search group's sys_id (get it from list_code_search_groups) and the table name and fields to search.

IMPORTANT: This modifies the code search configuration on the instance. Verify the table name and fields before adding.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
tableYesThe table name to add to the search group (e.g., "sys_script_include", "sys_ui_script"). Use `lookup_table` to verify the table name exists.
search_fieldsYesComma-separated field names to search on this table (e.g., "script,name", "script"). Use `lookup_columns` to find available fields on the table.
search_groupYesThe sys_id of the target code search group. Get this from `list_code_search_groups`.
Behavior3/5

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

With no annotations, the description carries the full burden. It states that the tool modifies configuration and warns to verify inputs, but it does not detail behaviors such as whether adding a duplicate table overwrites or errors, permissions required, or rollback options. It is adequate but not rich.

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?

Three concise sentences: first states purpose, second explains effect, third lists requirements and a warning. No unnecessary information. Front-loaded with key verb and resource.

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

Completeness4/5

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

Given the tool is a mutation with no output schema, the description covers prerequisites and a warning. It could mention what confirmation or response to expect on success, but overall it provides sufficient context for an agent to decide and execute.

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

Parameters4/5

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

Schema coverage is 100% and the description adds value by advising how to obtain valid values (e.g., 'get it from list_code_search_groups', 'use lookup_table to verify', 'use lookup_columns to find fields'). This goes beyond the schema descriptions.

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 verb 'add', the resource 'table to an existing code search group', and the effect 'expanding what gets searched'. It distinguishes from sibling tools like 'code_search' (searching) and 'list_code_search_groups' (listing groups).

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

Usage Guidelines4/5

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

The description explains when to use (to add a table to a search group) and provides context by mentioning prerequisites (sys_id, table name, fields) and a warning to verify. It does not explicitly state when not to use, but the warning implies careful consideration and the need for prior verification.

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