Skip to main content
Glama
onlyflowstech

@onlyflows/servicenow-mcp

sn_codesearch

Search ServiceNow code artifacts across business rules, script includes, UI scripts, client scripts, and REST operations by keyword to retrieve matching records with code snippets.

Instructions

Search across ServiceNow code artifacts — business rules, script includes, UI scripts, client scripts, and scripted REST operations. Returns matching records with code snippets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldNoSpecific field to search (default: script)
limitNoMax total results (default 20)
tableNoSearch a specific table only (default: searches all code tables). Options: sys_script, sys_script_include, sys_ui_script, sys_script_client, sys_ws_operation
search_termYesText to search for in script fields
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool returns matching records with code snippets, but does not cover permissions, rate limits, or any side effects. As a read-only search, this 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?

The description is two sentences, front-loaded with the action and resource, and every word earns its place. It is clear and efficient without redundancy.

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?

For a search tool with no output schema, the description explains the return value (matching records with code snippets) and the domain. It relies on the well-documented schema for parameter details, which is appropriate. Minor missing details like ordering or pagination are not critical.

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 descriptions already cover all parameters at 100%, so the tool description adds no extra parameter-level meaning. The baseline of 3 applies.

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 uses a specific verb ('Search across') and identifies a specific resource ('ServiceNow code artifacts') with a clear enumeration of artifact types. This distinguishes it from generic search tools like sn_query and sn_discover.

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 provides clear context for when to use this tool (searching code artifacts) and implies its scope, but it does not explicitly name alternatives or exclusions. Since siblings exist, the absence of explicit 'use this instead of X' guidance prevents a 5.

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/onlyflowstech/servicenow-mcp'

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