Skip to main content
Glama

List comments and work notes

journal_list
Read-onlyIdempotent

Lists a ServiceNow record's customer-visible comments and internal work notes, newest first, with type filtering and paging.

Instructions

List the comments (customer-visible) and work notes (internal) of a record, newest first. Reads sys_journal_field, so a record with no entries returns an empty list. Use the table the record itself is in (e.g. incident, not its parent task).

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": "journal_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoWhich entries: comments, work_notes or all (default).
limitNoMaximum records to return. Defaults to the configured default, capped at maxRecords.
sysIdYesThe record sys_id (32 hex characters).
tableYesTable name, e.g. incident or cmdb_ci_server.
offsetNoRecords to skip (paging). Use nextOffset from the previous result.
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.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value beyond that: the source table it reads, newest-first ordering, the empty-list behavior, and the customer-visible vs internal distinction between the two entry types.

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, each carrying distinct information (what it returns and ordering, the empty-result behavior and data source, then the table-selection caveat). Nothing is redundant and the core purpose is front-loaded.

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 describing the return shape, and it does state ordering (newest first) and the empty-list case. It omits any mention of pagination behavior or the shape of returned entries, which the schema's nextOffset hint only partially covers.

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 would be 3, but the description genuinely enriches two parameters: it explains what 'comments' versus 'work_notes' actually mean (customer-visible vs internal) and warns that `table` must be the record's own table, not its parent task's. Paging via limit/offset/nextOffset is left entirely to the schema.

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?

States a specific verb and resource ('List the comments ... and work notes ... of a record') and disambiguates the two entry kinds as customer-visible vs internal. It also names the backing table (sys_journal_field), which separates it from generic query tools, though it never explicitly contrasts itself with table_query or record_lookup.

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?

Offers a real correctness rule: 'Use the table the record itself is in (e.g. incident, not its parent task)', and explains that a record with no entries yields an empty list. However, it gives no guidance on when to pick this over sibling readers like table_query or record_lookup, so tool selection is left to inference.

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