Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Add Code Search Table

add_code_search_table
Idempotent

Add a table to an existing code search group to expand what gets searched. Provide the group's sys_id, table name, and fields to search, and the group will include those fields.

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
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.
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
search_groupYesThe sys_id of the target code search group. Get this from `list_code_search_groups`.
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.
Behavior4/5

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

The description discloses that the tool 'modifies the code search configuration on the instance' and includes a warning to verify table name and fields. This adds context beyond the annotations, which already indicate readOnlyHint=false and destructiveHint=false. The behavioral effect on future searches is also explained.

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 compact, with three sentences: purpose, prerequisites, and warning. It is front-loaded and every sentence contributes operational value.

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?

Given a simple 4-parameter tool with annotations and full schema coverage, the description covers the action, the prerequisite sys_id lookup, the effect on searches, and a safety warning. No output schema is needed, and the description adequately prepares the agent for invocation.

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?

The schema covers 100% of parameters with detailed descriptions, including examples and references to lookup_table/lookup_columns. The tool description adds minimal param-specific detail beyond the schema, summarizing requirements but not enriching the semantics further.

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 action ('Add a new table to an existing code search group') and its effect ('expanding what gets searched'). It distinguishes from sibling tools like list_code_search_groups and code_search by focusing on the modification action.

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?

It provides explicit prerequisites: 'Requires the search group's sys_id (get it from list_code_search_groups) and the table name and fields to search.' This tells the agent when to use it and what preparatory steps are needed. However, it doesn't explicitly contrast with alternatives for when not to use it.

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