Skip to main content
Glama

netbox_get_changelogs

Fetch filtered NetBox changelog entries by user, action, object, or time range to audit modifications and track configuration history.

Instructions

Get object change records (changelogs) from NetBox based on filters.

Args: filters: dict of filters to apply to the API call based on the NetBox API filtering options

Returns: Paginated response dict with the following structure: - count: Total number of changelog entries matching the query ALWAYS REFER TO THIS FIELD FOR THE TOTAL NUMBER OF CHANGELOG ENTRIES MATCHING THE QUERY - next: URL to next page (or null if no more pages) ALWAYS REFER TO THIS FIELD FOR THE NEXT PAGE OF RESULTS - previous: URL to previous page (or null if on first page) ALWAYS REFER TO THIS FIELD FOR THE PREVIOUS PAGE OF RESULTS - results: Array of changelog entries for this page ALWAYS REFER TO THIS FIELD FOR THE CHANGELOG ENTRIES ON THIS PAGE

Filtering options include:

  • user_id: Filter by user ID who made the change

  • user: Filter by username who made the change

  • changed_object_type_id: Filter by numeric ContentType ID (e.g., 21 for dcim.device) Note: This expects a numeric ID, not an object type string

  • changed_object_id: Filter by ID of the changed object

  • object_repr: Filter by object representation (usually contains object name)

  • action: Filter by action type (created, updated, deleted)

  • time_before: Filter for changes made before a given time (ISO 8601 format)

  • time_after: Filter for changes made after a given time (ISO 8601 format)

  • q: Search term to filter by object representation

Examples: To find all changes made to a specific object by ID: {"changed_object_id": 123}

To find changes by object name pattern: {"object_repr": "router-01"}

To find all deletions in the last 24 hours: {"action": "delete", "time_after": "2023-01-01T00:00:00Z"}

Each changelog entry contains:

  • id: The unique identifier of the changelog entry

  • user: The user who made the change

  • user_name: The username of the user who made the change

  • request_id: The unique identifier of the request that made the change

  • action: The type of action performed (created, updated, deleted)

  • changed_object_type: The type of object that was changed

  • changed_object_id: The ID of the object that was changed

  • object_repr: String representation of the changed object

  • object_data: The object's data after the change (null for deletions)

  • object_data_v2: Enhanced data representation

  • prechange_data: The object's data before the change (null for creations)

  • postchange_data: The object's data after the change (null for deletions)

  • time: The timestamp when the change was made

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": {
      "filters": "<filters>"
    },
    "name": "netbox_get_changelogs"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersYes

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?

With no annotations, the description carries the full burden and does substantial work: it discloses the paginated envelope (count/next/previous/results), states that object_data is null for deletions and prechange_data is null for creations, and warns that changed_object_type_id expects a numeric ContentType ID rather than a type string. It stops short of stating auth requirements, rate limits, or ordering of results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The structure is front-loaded and logical (purpose, args, returns, filters, examples, entry fields), but four near-identical shouted lines ('ALWAYS REFER TO THIS FIELD FOR...') restate the same envelope semantics and add bulk without new information. The per-field changelog entry list is useful since no output schema exists, but the return section is roughly twice the length it needs to be.

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 free-form filter dict with no output schema, the description supplies both the query vocabulary and the full response shape, which is what an agent needs to call and interpret it. Remaining gaps are peripheral: no auth/permission notes and no statement about result ordering or default page size.

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

Parameters5/5

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

Schema coverage is 0% for the single nested 'filters' object, so the description must compensate entirely, and it does: nine filter keys are enumerated with meaning, accepted action values, ISO 8601 time formats, and a caveat about numeric ContentType IDs. Concrete JSON examples anchor the syntax for the free-form dict.

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 line names a specific verb and resource ('Get object change records (changelogs) from NetBox') and scopes it to filter-based retrieval, which is distinct from the object-read siblings. It never explicitly states that it is not the tool for reading current object state, leaving the differentiation to be inferred from the resource name alone.

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 is conveyed through worked examples ('To find all changes made to a specific object by ID', 'To find all deletions in the last 24 hours'), which imply the intended scenarios well. However, there is no explicit when-to-use versus when-not guidance, no mention of the sibling tools, and no prerequisites such as permissions needed to read changelogs.

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