Skip to main content
Glama

nautobot_call_nautobot

Execute REST CRUD operations against any Nautobot API endpoint, including core and plugin APIs, to manage network automation data. Use the API catalog first to discover endpoint paths.

Instructions

Execute a REST CRUD operation against any Nautobot API endpoint.

Provides direct access to any Nautobot REST endpoint — core API and plugin endpoints (CMS, Golden Config, etc.). Supports full CRUD. Use nautobot_api_catalog first to discover endpoint paths.

Args: method: HTTP method — GET, POST, PATCH, PUT, DELETE. endpoint: API path (e.g., '/api/dcim/devices/', '/api/plugins/cms/bgp-groups/'). Can be partial path; bridge performs fuzzy matching if needed. params: Query parameters for filtering (GET requests). Optional. Example: {"device": "core-rtr-01"} Note: prefer top-level limit and offset args over putting them in params. body: Request body for write operations (POST, PATCH, PUT). Optional. Must match Nautobot's expected schema for the endpoint. limit: Server-side max results for GET list operations (default 50, hard cap 200). offset: Skip N results for pagination (default 0). Requires limit > 0. skip_count: If True, skip count() calls where applicable (default False).

Returns: Dict with 'count' (returned record count), 'results' (list of records), 'endpoint', and 'method'.

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": {
      "method": "<method>",
      "endpoint": "<endpoint>"
    },
    "name": "nautobot_call_nautobot"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
limitNo
methodYes
offsetNo
paramsNo
endpointYes
skip_countNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose concrete operational traits: a default limit of 50 with a hard cap of 200, that `offset` requires `limit > 0`, that endpoint paths undergo fuzzy matching, and the shape of the returned dict. It omits auth/permission requirements, error behavior, and any warning that DELETE/PUT are destructive and irreversible.

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?

Front-loaded with a one-line purpose followed by scope and the catalog pointer, then a structured Args/Returns block. The docstring-style layout is slightly verbose and partly restates the schema, but given zero schema coverage each line carries useful information rather than filler.

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

Completeness5/5

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

For a 7-parameter, unannotated generic mutation-capable tool, the definition supplies everything needed to call it correctly: full parameter semantics, pagination limits, fuzzy path matching, and return shape. An output schema exists, so the extra Returns section is redundant but harmless, and no critical invocation detail is missing.

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 description coverage is 0%, so the description must compensate, and it documents all 7 parameters with meaning, defaults, and constraints. It provides concrete endpoint and params examples, explains that `body` must match the target endpoint's schema, and clarifies the non-obvious interaction between `offset` and `limit` plus the purpose of `skip_count`.

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 ('Execute a REST CRUD operation against any Nautobot API endpoint') and immediately bounds the scope to core API plus plugin endpoints. It also distinguishes itself from the discovery sibling by naming nautobot_api_catalog as the tool to consult first for endpoint paths.

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 clear when-to-use guidance by routing the agent to nautobot_api_catalog before calling, and advises preferring the top-level `limit`/`offset` args over stuffing them into `params`. It stops short of stating exclusions — e.g., when a dedicated workflow tool (nautobot_run_workflow) is preferable to raw REST calls.

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