Skip to main content
Glama

list_custom_fields

Read-onlyIdempotent

Fetches all custom fields from Paperless-NGX so you can cache them and search by name locally, avoiding redundant API calls when a query may refer to a custom field.

Instructions

List all custom fields. IMPORTANT: When a user query may refer to a custom field, you should fetch all custom fields up front (with a large enough page_size), cache them for the session, and search locally for matches by name before making further API calls. This reduces redundant requests and handles ambiguity efficiently.

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

Input Schema

NameRequiredDescriptionDefault
pageNo
orderingNo
page_sizeNo
name__iexactNo
name__icontainsNo
name__iendswithNo
name__istartswithNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds operational context beyond that: results are worth caching for the session and redundant calls should be avoided, which implies each call hits the API. It still says nothing about the response shape or pagination limits.

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?

The purpose is front-loaded in one short sentence and the workflow advice follows in a compact block. The emphasis marker and the 'reduces redundant requests' rationale are slightly padded but not wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a list tool with no output schema and zero parameter documentation, the description does well on strategy but leaves the mechanics thin. An agent still does not know what a field record contains, what the default or maximum page_size is, or how ordering and the four name filters behave.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across seven parameters, so the description carries the full burden and largely fails. It mentions only page_size and gestures vaguely at name matching, leaving page, ordering, name__iexact, name__icontains, name__istartswith and name__iendswith completely unexplained.

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?

The opening sentence states a specific verb and resource ('List all custom fields'), which cleanly separates it from get_custom_field and the create/update/delete siblings. It does not explicitly name those alternatives, so it stops short of a 5.

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?

It gives a concrete when-to-use rule: if a user query may refer to a custom field, fetch all fields up front, cache them for the session, and match locally before further API calls. What is missing is guidance on when to use the server-side name filters or paging versus the fetch-everything strategy it recommends.

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