Skip to main content
Glama

find_patterns

Discover connections among stored news items using their ids. Saves and returns patterns, skipping unknown ids.

Instructions

Find the connections among the stored news items with these ids, save them and return them.

The ids come from an earlier fetch_news/ingest run or from query_qdrant. An id that is not in the store is skipped rather than refused, and an empty list answers [] without asking the model — "nothing connects" and "nothing to look at" stay tellable apart. Each returned pattern carries the discovered_at timestamp save_pattern stamped. Needs Qdrant and an LLM endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
news_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the write side effect (patterns are saved), the missing-id policy (skipped, not refused), the empty-input behavior (returns [] without an LLM call), the discovered_at provenance, and the external dependencies (Qdrant + LLM endpoint). That is unusually rich behavioral disclosure.

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?

The core action is front-loaded in the first sentence, and the follow-on sentences each add distinct operational detail rather than padding. It is slightly long and stylistically loose (backticked inline code, quoted phrases), but nothing is wasted.

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 one-parameter tool with an output schema, the description covers the pieces the schema cannot: side effects, error handling, dependency requirements, and return provenance. An agent has everything needed to call it correctly and interpret an empty result.

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 coverage is 0%, so the description must compensate for the single news_ids parameter — and it does, explaining where the ids originate and how invalid or empty inputs are treated. It does not state the id format (UUID) explicitly, but the schema supplies that, so the gap is minor.

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+resource+side effect: find connections among stored news items, save them, return them. It names siblings (fetch_news, query_qdrant, save_pattern) as the id source and timestamp origin, so an agent can place it in the workflow. It stops short of an explicit 'use this instead of X' contrast, but the purpose is unmistakable.

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?

It gives clear context of use: the ids must come from an earlier fetch_news/ingest run or query_qdrant, implying the tool is invoked downstream of ingestion. Edge cases are spelled out (unknown ids skipped, empty list short-circuits). No explicit when-not-to-use or alternative tool is named, which keeps it at 4 rather than 5.

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