Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

find_object_by_field

Read-only

Locate pfSense objects by a field value instead of unstable IDs. Provide endpoint, field, and value to retrieve firewall rules, aliases, or other configurations reliably after deletions.

Instructions

Find an object by a specific field value (safer than using IDs).

Use this instead of IDs when you need a stable reference to an object, since pfSense object IDs change after deletions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldYesField name to search by (e.g. "descr", "name")
valueYesValue to search for
endpointYesRelative API path (e.g. "/firewall/rules", "/firewall/aliases")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds valuable context about ID instability and why field-based lookup is preferable, which is beyond the annotations. It doesn't disclose edge cases like multiple matches, but given the output schema exists, this is acceptable.

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 two sentences, front-loaded with the primary action, and every sentence earns its place. It is concise without losing important guidance.

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 tool has three well-described parameters and an output schema. The description adds the key context about when to use it. It doesn't explain what happens if no match is found or if multiple matches exist, but the output schema likely conveys return shape. The description is complete enough for this complexity level.

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%, with each parameter (field, value, endpoint) already described. The description adds only marginal context by saying 'specific field value' and 'stable reference,' but it doesn't introduce new parameter semantics or syntax beyond what the schema already provides. Baseline 3 is appropriate.

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 clearly states the tool's function: 'Find an object by a specific field value.' It also differentiates from the many search_* siblings by emphasizing 'safer than using IDs' and its generic applicability across endpoints. This gives a specific verb, resource, and unique positioning.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided: 'Use this instead of IDs when you need a stable reference to an object, since pfSense object IDs change after deletions.' This tells the agent when to choose this tool over alternatives and explains the underlying rationale, which is strong usage guidance.

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/gensecaihq/pfsense-mcp-server'

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