Skip to main content
Glama

Get a record

table_get
Read-onlyIdempotent

Fetch a single ServiceNow record by table and sys_id, optionally returning full long-text fields and display labels; password fields are redacted.

Instructions

Get one record by table and sys_id. Long text fields are cut at the configured length; name them in fullFields to read them whole (e.g. script). Password fields are redacted. Use record_lookup first if you only have a number or name.

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>",
      "sysId": "<sysId>"
    },
    "name": "table_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
sysIdYesThe record sys_id (32 hex characters).
tableYesTable name, e.g. incident or cmdb_ci_server.
fieldsNoField names to return (dot-walking allowed, e.g. caller_id.name). Default: all.
instanceNoInstance alias from the config (see instance_list). Defaults to the default instance.
fullFieldsNoFields to return without truncation, e.g. ["script"].
displayValueNoraw = stored values, display = labels, both (default) = value and label when they differ.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare a safe, idempotent read, so the description correctly spends its words on non-obvious behavior: text fields are truncated at a configured length, fullFields restores them, and password fields are redacted. It does not say what happens when the sys_id matches nothing, which is the main remaining behavioral gap.

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?

Three short sentences ordered by importance: what it does, the opaque behaviors, then the routing hint. No filler, no restatement of the name or title.

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 six-parameter read tool with no output schema, the description covers the behaviors an agent would otherwise get wrong (truncation, redaction, which tool to use when). It stops short of describing the response envelope or not-found handling, which are the only things an agent would still have to discover by calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds genuine meaning by explaining the truncation/fullFields interplay and giving a concrete example ('script') that the schema's terse 'Fields to return without truncation' does not convey as clearly. The fields, displayValue, and instance parameters are left entirely to the schema, which is acceptable at full coverage.

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 ('Get one record by table and sys_id') and immediately scopes it as a single-record fetch, which separates it from the list/search siblings. It also names the retrieval key pair, so an agent knows exactly what identifies the target.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit routing rule with its condition: 'Use record_lookup first if you only have a number or name', which tells the agent precisely when this tool is the wrong entry point. It also implies usage for full-field reads by directing the agent to name truncated fields in fullFields.

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