Skip to main content
Glama

List attachments

attachment_list
Read-onlyIdempotent

Lists attachment metadata (file name, type, size, owning record) for a ServiceNow record or exact file name so you can pick files to download. Returns metadata only, not content.

Instructions

List attachment metadata (file name, type, size, owning record), not content. Filter by the record's table and sys_id, and/or by exact file name. Use attachment_download to read one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "attachment_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum records to return. Defaults to the configured default, capped at maxRecords.
sysIdNosys_id of that record (needs table).
tableNoTable of the record the files are attached to.
offsetNoRecords to skip (paging). Use nextOffset from the previous result.
fileNameNoExact file name.
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

A4.2/5.0
Behavior3/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 the useful metadata-only scope, but says nothing about pagination behavior or the volume returned when no filters are supplied — with six optional parameters and zero required, an unfiltered call is a real behavioral question left unanswered.

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?

Two tight sentences: the first defines what is returned and what is excluded, the second gives filters and the alternative tool. No filler and the most important constraint leads.

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 helpfully names the metadata fields returned, which compensates well. The remaining gap is minor: nothing describes default result volume or paging expectations when all six optional filters are omitted.

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; the description earns above that by explaining the dependency between table and sysId and the 'and/or' combination logic with fileName, which the schema documents only per-field. Limit, offset, and instance still rely entirely on 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 ('List attachment metadata') and immediately bounds the scope with 'not content', plus enumerates the returned fields (file name, type, size, owning record). This cleanly separates it from attachment_download, which handles content.

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?

Gives concrete filtering combinations ('by the record's table and sys_id, and/or by exact file name') and explicitly routes the read-one case to attachment_download. It stops short of stating exclusions, e.g. that partial/fuzzy name matching is unsupported or what an unfiltered call returns.

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