Skip to main content
Glama
gura105

Operational Ontology

intersect_product

Intersect two product sets by primary keys and reload the common products for this session, returning only those present in both lists.

Instructions

intersect two Product sets, identified by primary keys and reloaded for this session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
leftYes
rightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.1

TDQS

A3.5/5.0
Behavior3/5

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

There are no annotations, so the description must carry the behavioral disclosure burden. It does add useful context by saying the sets are 'identified by primary keys and reloaded for this session,' suggesting session-scoped behavior rather than persistent mutation. However, it does not disclose whether the operation has side effects, how results are returned, or what happens with duplicate or missing keys.

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 a single concise sentence that front-loads the core operation ('intersect two Product sets') and then adds the key contextual detail about primary keys and session reloading. Every phrase earns its place, with no filler or repetition.

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?

Given a simple schema with two array parameters, no output schema, and no annotations, the description gives the essential operation and input semantics. However, it leaves out return value expectations and edge-case behavior such as empty sets, duplicates, or invalid keys, so it is only minimally complete for an agent to invoke it confidently.

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?

The schema provides only 'left' and 'right' as string arrays with no descriptions, and schema description coverage is 0%. The description compensates partially by stating that the arrays are Product sets identified by primary keys, which is essential. It does not explain the key format, ordering, or whether duplicates are allowed, leaving some ambiguity.

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?

The description opens with a specific verb and resource: 'intersect two Product sets.' It further clarifies that the inputs are primary keys, which distinguishes this from get/search operations. It does not explicitly contrast itself with union_product or subtract_product, but the set-operation semantics are clear from the name and phrasing.

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 usage: it is for intersecting two Product sets identified by primary keys. However, it gives no explicit guidance about when to choose this over union_product, subtract_product, or aggregate_product, and no exclusions or alternative scenarios. The intended use is inferable but not directly stated.

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