Skip to main content
Glama

Describe a table

table_schema
Read-onlyIdempotent

Inspect a ServiceNow table's fields, types, references, constraints, and class hierarchy—including inherited fields—before querying or writing unfamiliar data.

Instructions

Describe a table: its fields (name, label, type, reference target, max length, mandatory, read-only, which table defines each) and its class hierarchy. Use it before querying or writing an unfamiliar table. Inherited fields are included by default.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>"
    },
    "name": "table_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name, e.g. incident or cmdb_ci_server.
instanceNoInstance alias from the config (see instance_list). Defaults to the default instance.
includeInheritedNoInclude fields inherited from parent tables. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuine behavioral context beyond them: what metadata is returned, that class hierarchy is included, and that inherited fields appear by default — the last being the kind of default-behavior disclosure that materially changes results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the verb and resource, then return contents, then usage guidance. The parenthetical field list is dense but earns its place because there is no output schema. Minimal waste.

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?

With no output schema, the description carries the burden of explaining return values and does so thoroughly, including the inherited-fields default. It leaves minor gaps only, such as behavior for an invalid or nonexistent table name, which is not addressed anywhere.

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 description coverage is 100%, with table pattern/example, instance alias, and includeInherited all documented inline, so the baseline is 3. The description's note that inherited fields are included by default reinforces includeInherited but adds no syntax or format detail beyond the schema.

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?

States a specific verb and resource ('Describe a table') and immediately enumerates what the description contains: fields with name, label, type, reference target, max length, mandatory, read-only, defining table, plus class hierarchy. An agent can distinguish this metadata introspection from data-reading siblings like table_query or table_find without opening the schema.

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?

'Use it before querying or writing an unfamiliar table' gives a clear triggering condition and implicitly rules out using it on familiar tables. It stops short of naming which sibling to call instead for the actual query/write, so it is not a full when/when-not/alternatives statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.