Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Lookup Table Columns

lookup_columns
Read-only

List or search ServiceNow table columns to retrieve field names, types, and metadata. Validate column names and check attributes like mandatory or reference before writing queries or scripts.

Instructions

List or search columns (fields) on a ServiceNow table. Queries the sys_dictionary table to find column names, types, and metadata for a given table.

Use this tool to:

  • List all columns on a table to see what fields are available

  • Validate a column name before using it in a query or script

  • Find the correct internal element name when you only know the display label

  • Check column types, whether a field is mandatory, read-only, or a reference

Returns: element name (internal), column label (display), type, max length, reference target, mandatory/read-only/active flags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of columns to return. Default is 50, max is 200.
tableYesThe internal table name to look up columns for (e.g., "incident", "cmdb_ci_server", "sys_user"). Use lookup_table first if you are unsure of the exact table name.
instanceNoThe ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable.
search_termNoOptional filter to search columns by element name or label. Case-insensitive partial matching (contains). Examples: "assigned", "priority", "sys_created". If omitted, returns all columns on the table.
Behavior4/5

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

Annotations already indicate readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds value by stating it queries sys_dictionary and enumerates the return fields (element name, label, type, etc.), giving the agent a clear model of the tool's behavior beyond the annotations.

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 opening sentence, a purpose-driven bullet list, and a return-value summary. No redundant or filler content, and the most important information is front-loaded.

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?

Despite no output schema, the description clearly states what the tool returns (fields list). It also covers typical use cases and points to sys_dictionary, making the tool understandable in context. With thorough parameter descriptions in the schema, the overall description is complete.

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 coverage is 100%, so the baseline is 3. The description's bullets imply parameter usage (e.g., search_term for finding elements) but don't add meaning beyond what the schema already describes for each parameter. Thus no bonus beyond baseline.

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 opens with a specific verb-resource pair ('List or search columns (fields) on a ServiceNow table') and clarifies the underlying mechanism (queries sys_dictionary). It also lists concrete use cases (validate column, find internal element name) that distinguish it from generic query tools like query_table or lookup_table.

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 'Use this tool to' section provides clear context for when to invoke this tool (e.g., listing columns, validating names, checking types). However, it does not explicitly mention alternative tools or when not to use it, so it falls short of the full 5 criteria.

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