Skip to main content
Glama

henosis

select

Read-only

Select a subset of entities with a CEL selection expression — the composable way to filter across types, attributes, and observation thresholds with boolean logic, and (with project/order_by) return ranked computed columns in ONE call instead of a per-entity fan-out. Examples: entity.type == 'Well' && entity.state.status in ['active','injection'] entity.type == 'Well' && has_obs(entity,'gas_rate') && latest(entity,'gas_rate') < 50000 avg(entity,'water_cut','30d') > 80 Functions: has_obs(entity,prop), latest(entity,prop), avg|min|max|sum|count(entity,prop,window), search(entity,text), related(entity,rel[,'inbound']) (neighbour-id list; size(...) counts them — use 'inbound' to count entities pointing AT this one, e.g. size(related(entity,'subject','inbound')) for interventions targeting a well), derived(entity,prop) (a derived_from state value, so you can rank by a computed metric — order_by="derived(entity,'constraint_ratio')"). Guard any observation/maybe-missing-field predicate (has_obs/has(...)).

    `project` = {column: cel_expr} computes a scalar per matched entity onto
    each result's `computed` (e.g. {"gas_rate":"latest(entity,'gas_rate')",
    "defects":"size(related(entity,'defects'))"}). `order_by` = a projection
    column name or its own cel_expr; `descending` reverses it; `limit` then
    keeps the top N. So "rank the wells feeding pipeline X by current gas
    rate, with defect counts" is a single select, not 3N calls. `types`
    narrows the scan (else inferred from the expression). `format`
    (json|tsv|md, default json) applies to this list result only: tsv/md
    return the rows (including any projected columns) as a compact table.

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": {
      "expression": "<expression>"
    },
    "name": "select"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
typesNo
formatNojson
projectNo
order_byNo
descendingNo
expressionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description is consistent and adds substantial behavior: project values are placed on each result's `computed` field, order_by accepts either a projection column name or its own CEL expression, descending reverses it, limit then keeps the top N after ordering, and types narrows the scan when not inferred. It also scopes `format` explicitly ('applies to this list result only') and explains what tsv/md return, which are meaningful details beyond the annotation.

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?

Purpose and the one-call-vs-fan-out argument are front-loaded, followed by examples, a function catalog, and then parameter semantics — a sensible layered structure for a complex tool. It is dense and the opening sentence runs long, but nearly every sentence adds information an agent needs; the example block is doing real work rather than padding.

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?

For a 7-parameter read-only query tool with an output schema and zero schema descriptions, this covers expression grammar, computed columns, ordering, and output formats thoroughly, so an agent could call it correctly. Gaps are minor: no mention of error/validation behavior for malformed CEL, no pagination beyond limit, and no explicit statement about what `types` accepts (type names vs ids).

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it does: expression is unpacked with three example expressions and a function catalog (has_obs, latest, avg/min/max/sum/count, search, related with 'inbound', derived), project/order_by/descending/limit/types/format are each explained with intent and examples. The one weak spot is that limit's interaction with the default of 200 is only implied, but overall it far exceeds the schema.

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 first clause gives a specific verb and resource ('Select a subset of entities with a CEL selection expression') and frames it against a per-entity fan-out ('ONE call instead of a per-entity fan-out', 'not 3N calls'), which tells an agent what it is at a glance. It stops short of naming the obvious siblings (list_entities, search_entities, count_entities, aggregate) as alternatives, even though its embedded search() function overlaps with search_entities, so the differentiation is conceptual rather than explicit.

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 concrete when-to-use conditions via worked examples and a canonical scenario ('rank the wells feeding pipeline X by current gas rate, with defect counts is a single select, not 3N calls'), plus a safety guideline to guard maybe-missing predicates with has_obs/has(). There are no explicit exclusions or named alternative tools to route to, so the agent must infer when a simpler sibling would suffice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.