Skip to main content
Glama

generate_site_config

Read-onlyIdempotent

Build and validate a single site's Prisma SD-WAN config fragment, returning structured YAML ready for downstream automation.

Instructions

Build and validate one site's Prisma SD-WAN config fragment.

Structures and validates a single site's device list against the prisma_sdwan.sites schema used by downstream automation (e.g. Ansible), then returns both the structured object and ready-to-save YAML text. This tool never writes to disk and never calls the Prisma SASE API — saving the returned data to a file, combining it with other sites, and applying it to the network is entirely up to the caller.

Args: site_id: Site identifier for the config (e.g. "BRANCH-101"). Free text — not resolved against the live tenant, so a typo will not be caught here. elements: Non-empty list of element objects, each requiring serial_number (string). Optional per-element keys: model_name, device_variables (object), policy_variables (object). Any other key is silently dropped, not an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idYesSite identifier for the config (e.g. ``"BRANCH-101"``). Free text — not resolved against the live tenant, so a typo will not be caught here.
elementsYesNon-empty list of element objects, each requiring ``serial_number`` (string). Optional per-element keys: ``model_name``, ``device_variables`` (object), ``policy_variables`` (object). Any other key is silently dropped, not an error.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond annotations (readOnly, idempotent, non-destructive), the description adds critical context: it never writes to disk, never calls the API, silently drops unknown element keys, and site_id is free text not resolved against the live tenant. No contradiction with annotations.

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 well-structured: a front-loaded summary, then key side-effect disclosures, then concise parameter details. Every sentence adds informational value, with no fluff or redundancy.

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?

The description covers return format (structured object + YAML), side effects (none), validation target, and caller responsibilities. It omits explicit error-handling behavior on validation failure, but the presence of an output schema and rich annotations reduces the need for further detail.

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%, and the description largely restates the schema's parameter descriptions. It adds no new formatting/syntax nuances beyond what the schema already provides, though the silent-drop behavior is useful context but also present in 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?

The description states a specific verb ('Build and validate') and resource ('one site's Prisma SD-WAN config fragment'), clearly distinguishing it from the sibling read-only/query tools. It also describes the output (structured object + YAML) and the validation target.

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?

The description explains the tool is for offline config generation used by downstream automation (e.g., Ansible) and explicitly states it never writes to disk or calls the Prisma SASE API, leaving application to the caller. This clearly implies when to use it versus live-network tools, though it doesn't explicitly name alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iamdheerajdubey/prisma-sdwan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server