Skip to main content
Glama

Facet Counts

facets
Read-onlyIdempotent

Every facet value with its count, under an optional filter set.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoA sentence or keywords: "2 vcpu 4gb under $10 in germany". Parsed into the fields below; explicit fields win.
gpuNo
hasNoProvider automation required.
newNoOnly offers first seen within this window: 24h, 7d, 2w (a bare number is days). Pair with sort=new for the newest first.
archNo
kindNoOffer kinds.
sortNo
limitNo
orderNo
stockNodiscontinued = the provider no longer lists the plan; hidden unless asked for by name
offsetNo
regionNoA region word (eu, europe, asia, north america, nordics, dach…) expanded to countries.
countryNoISO 3166 alpha-2 codes the offer is available in.
max_ramNoGB
min_ramNoGB
tenancyNo
currencyNoBilled-in currency code
intervalNo
max_diskNoGB
max_vcpuNo
min_diskNoGB
min_vcpuNo
platformNoWhere the row was read: api, whmcs, openserver…
providerNoProvider slugs, domains or names.
gpu_modelNoSubstring of the GPU model, e.g. h100
max_priceNoUSD per month, estimated
min_priceNoUSD per month, estimated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / new
      Added value: +{
      +  "description": "Only offers first seen within this window: 24h, 7d, 2w (a bare number is days). Pair with sort=new for the newest first.",
      +  "examples": [
      +    "7d"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "relevance",
      -  "price",
      -  "value",
      -  "ram",
      -  "vcpu",
      -  "disk",
      -  "updated",
      -  "name"
      -]New value: +[
      +  "relevance",
      +  "price",
      +  "value",
      +  "ram",
      +  "vcpu",
      +  "disk",
      +  "updated",
      +  "new",
      +  "name"
      +]
    • addedInput schema / properties / stock / description
      Added value: +"discontinued = the provider no longer lists the plan; hidden unless asked for by name"
    • changedInput schema / properties / stock / enum
      Previous value: -[
      -  "in_stock",
      -  "out_of_stock",
      -  "unknown"
      -]New value: +[
      +  "in_stock",
      +  "out_of_stock",
      +  "unknown",
      +  "discontinued"
      +]
  2. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. Beyond that the description adds almost nothing: it does not say which dimensions get faceted, whether counts reflect post-filter or pre-filter results, or whether facets with zero matches appear.

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?

It is a single short sentence with the resource front-loaded and no filler, which is structurally clean. The terseness costs information rather than wasting words, so it is efficient but under-built.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 27-parameter aggregation tool with no output schema, one sentence is far too thin. The agent cannot tell what the return shape is (facet name to value/count map?), which dimensions are faceted, or whether limit/offset/sort even apply to facet output.

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

Parameters2/5

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

Schema description coverage is only 63% across 27 parameters, so the schema does not fully carry the burden. The description offers just "optional filter set" and adds no semantics about how the filters scope the returned counts or how limit/offset interact with an aggregation result.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource ("facet values with their count") and the scoping ("under an optional filter set"), so an agent can infer it aggregates counts rather than listing offers. However it uses no verb and never distinguishes itself from siblings like stats or search_servers, which plausibly return overlapping count-style data.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says to call this before search_servers to discover available filters, or instead of stats. The phrase "optional filter set" hints the parameters are the same filter set as the search tool but never states it, leaving the agent to infer the relationship.

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.

Resources