Skip to main content
Glama

getBenefits

Read-only

List benefits. Omit locationRef and categoryRef to list across all locations, or provide one to scope to a location or category. Call getLocations to list locations, or getLocation to fetch one by locationId. Get categoryRef from getBenefitCategories.

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": "getBenefits"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of benefits per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
featuredNoFilter by featured status. Pass true or false.
categoryRefNoUUID of the benefit category.
locationRefNoUUID of the location. Omit both locationRef and categoryRef to list benefits across every location of the network.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
benefitsYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered without the description. The description adds scope semantics (omitting both refs means network-wide listing), which is genuine behavioral context, but it says nothing about pagination behavior or result ordering despite the presence of nextPageToken.

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 sentences, front-loaded with the core action and the scoping rule, with no redundant wording. Each sentence earns its place by adding either scope rules or a pointer to a companion tool.

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?

Since an output schema exists, return-value documentation is unnecessary, and the description covers the two things an agent cannot infer structurally: how the filters scope the result and where the refs come from. It is close to complete for a simple filtered-list tool, missing only combined-filter behavior.

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?

Schema description coverage is 100%, so the schema already documents limit, featured, categoryRef, locationRef, and nextPageToken in detail. The description reinforces the ref semantics and how to source the UUIDs, but adds no information about how locationRef and categoryRef interact when both are supplied, nor any detail on featured or limit. Baseline 3 is appropriate when the schema does the heavy lifting.

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

Purpose5/5

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

States a specific verb and resource ('List benefits') and immediately clarifies scope, which distinguishes it from the singular getBenefit sibling. An agent can tell from the first sentence whether this is the collection tool it needs.

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 says to omit locationRef and categoryRef to list across all locations, or supply one to scope results, and directs the agent to getLocations, getLocation, and getBenefitCategories for obtaining refs. It gives no guidance on when to prefer the singular getBenefit instead, which is the only meaningful gap.

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