Skip to main content
Glama

openwisp_get_device_group_from_cert

Resolve the OpenWISP device group linked to a certificate common name, with optional organization slugs, to map certificates to their correct device groups.

Instructions

[Category: Devices & Controller] Resolve the device group linked to a certificate common name. (HTTP GET /api/v1/controller/cert/{common_name}/group/)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgNoOptional comma-separated organization slugs
common_nameYesCertificate common name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the HTTP method GET, which signals a safe read-only lookup, but it does not cover authentication requirements, not-found behavior, or org-scoping effects.

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?

The description is one efficient sentence plus the endpoint, with the category front-loaded and no wasted words. It is appropriately sized for a simple lookup tool.

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?

With no annotations and no output schema, the description should do more to describe the return value and error cases. It is minimally sufficient for invocation but leaves gaps about what the resolved device group response contains.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both the required common_name and optional org parameters. The description adds no parameter meaning beyond restating that the common name identifies the certificate.

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 ('Resolve'), resource ('device group'), and scope ('linked to a certificate common name'), with the HTTP endpoint. This distinguishes it from sibling tools like get_device_group and list_device_groups via the certificate-common-name lookup key.

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?

The description implies its usage context: use it when you have a certificate common name and need the associated device group. However, it gives no explicit when-to-use guidance, no exclusions, and no routing to alternative sibling tools.

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

Deploy Server

Other Tools