Skip to main content
Glama
sonisoft-cnanda

now-sdk-ext-mcp

Discover Table Schema

discover_table_schema

Retrieve the full schema of a ServiceNow table, including fields, types, references, choice values, relationships, UI policies, and business rules. Ideal for understanding table structure before querying or scripting.

Instructions

Discover the full schema of a ServiceNow table including all fields, types, references, and optionally choice values, relationships, UI policies, and business rules.

Returns the table name, label, parent class, and for each field: name, label, type, maxLength, mandatory, readOnly, referenceTable, and defaultValue.

Key use cases:

  • Understand the structure of a table before querying or scripting against it

  • Discover reference fields to understand table relationships

  • Find choice values for dropdown fields

  • Review UI policies and business rules that affect the table

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 ServiceNow table name to discover (e.g., "incident", "sys_user", "cmdb_ci").
include_choicesNoInclude choice values for fields that have them (e.g., priority, state). Queries sys_choice.
include_relationshipsNoInclude relationship information extracted from reference fields.
include_ui_policiesNoInclude UI policies defined on the table.
include_business_rulesNoInclude business rules defined on the table.
Behavior3/5

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

No annotations exist, so the description must carry the load. It details what is returned (table name, label, parent class, field details) and optional includes. However, it does not disclose behavioral aspects like read-only nature, auth requirements, or error handling, leaving gaps.

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 with 6 sentences, front-loaded with the primary function, followed by return details and bulleted use cases. Every sentence adds value with no 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?

Given 6 parameters (only 1 required), no output schema, and no annotations, the description covers the purpose, return data, and use cases well. It lacks information on edge cases like invalid table names or missing parameters, but is otherwise 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% with descriptions for all 6 parameters. The description adds overarching context (e.g., 'including all fields, types, references') but does not add significant new meaning beyond the schema definitions. Baseline 3 is appropriate.

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 explicitly states 'Discover the full schema of a ServiceNow table' with a specific verb and resource. It differentiates from sibling tools like 'lookup_columns' by highlighting the comprehensive nature (fields, types, references, optional includes).

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?

Key use cases are listed (understand structure before querying, discover references, find choice values, review UI policies/business rules). These imply when to use the tool, but no explicit when-not-to-use or alternatives are provided.

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