Skip to main content
Glama
LamPyrid
by RadCod3

search_rules

Find Firefly III rules by title, active status, trigger/action type, and regex patterns. Combines filters with AND logic to narrow results when no native rule search API exists.

Instructions

Search your rules using multiple filter criteria.

Since Firefly III doesn't have a built-in rule search API, this tool fetches all rules and filters them client-side using keyword matching and regex patterns for maximum flexibility.

Provide at least one search criterion. All criteria are combined with AND logic.

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": {
      "req": "<req>"
    },
    "name": "search_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest model for searching rules.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a genuinely important trait: there is no server-side search, so all rules are fetched and filtered client-side. That is valuable, but it omits error behavior for invalid regex patterns, any result-size or performance caveats, and whether matching is limited to certain fields.

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?

Three short, front-loaded paragraphs with no wasted wording; the key constraint (at least one criterion, AND logic) sits at the end where it is easy to find. Slightly padded by the explanation of why client-side filtering exists.

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?

An output schema exists, so return values need no explanation, and the single nested request object is fully documented. The remaining gap is the absence of guidance on invalid regex handling and on how many rules a fetch-all will realistically return.

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

Parameters4/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 each filter's matching semantics. The description reinforces this by calling out 'keyword matching and regex patterns for maximum flexibility', and the AND-combination rule adds meaning the schema does not express.

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?

States a specific verb and resource ('Search your rules') plus the filter criteria it operates on, so the agent knows exactly what it retrieves. It does not explicitly contrast itself with get_rule or the search_* siblings, leaving that distinction to be inferred from names.

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?

Explicitly requires at least one criterion and explains that criteria are ANDed together, which prevents an empty, unambiguous query. It stops short of saying when to prefer get_rule (exact ID lookup) or when to skip search entirely.

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