Skip to main content
Glama

Look up a record

record_lookup
Read-onlyIdempotent

Convert a record number or display value into its ServiceNow sys_id. Exact matches only; ambiguous values return candidate references.

Instructions

Turn a record number (e.g. INC0010001) or a display value (e.g. a user's name) into the record's sys_id. A sys_id is checked and echoed back. Exact match only; more than one match returns REFERENCE_AMBIGUOUS with candidates.

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>",
      "value": "<value>"
    },
    "name": "record_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name, e.g. incident or cmdb_ci_server.
valueYesA record number, a display value, or a sys_id.
instanceNoInstance alias from the config (see instance_list). Defaults to the default instance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description needn't restate safety. It adds real behavior beyond that: exact-match-only resolution, a validation/echo path when a sys_id is supplied, and a named failure mode (REFERENCE_AMBIGUOUS) with candidates returned. It doesn't say how candidates are shaped, but the extra context is substantive.

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, front-loaded with the transformation result, followed by validation behavior and the ambiguity constraint. No filler and no repetition of annotation data.

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?

Three parameters with a read-only profile and no output schema; the description states the return (sys_id) and the primary non-success outcome, which is the information an agent needs to call and handle results. Missing only detail on candidate payload shape and instance defaulting, the latter being covered by the schema.

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 and the schema already documents table, value, and instance. The description reinforces that `value` accepts a record number, display value, or sys_id and adds the exact-match constraint on it, which is modest added meaning rather than new syntax or fallback guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ('Turn ... into the record's sys_id') with a concrete input format (INC0010001, display value) and a concrete output (sys_id). It is clearly distinct from search/query siblings, though it never names an alternative to disambiguate against (e.g. table_find vs table_get).

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: 'Exact match only' tells the agent this is not a search/fuzzy tool, and the ambiguity error hints at preferring unique identifiers. However, no explicit when-to-use or when-not-to-use guidance versus the other lookup-style siblings is given.

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