Skip to main content
Glama

Smile.io MCP by usefulapi

List earning rules (ways to earn)

smile_list_earning_rules
Read-only

List the enabled earning rules — the ways customers earn points or rewards (placing an order, signing up, birthdays, custom activities), with reward, reward_value, earning_limit and any VIP-tier restriction. Cursor-paginated. Smile: GET /earning_rules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results, 1-250 (Smile default 50).
cursorNoCursor from the previous response's metadata.next_cursor (or previous_cursor). Omit for the first page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds meaningful behavior beyond that: it restricts results to enabled rules only, names the fields in each rule, and states the pagination style (cursor-paginated) with the required vocabulary. It stops short of noting auth scopes, rate limits, or what happens if the store has no rules configured.

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?

Front-loaded with the core action and resource, followed by a dense but useful enumeration of returned fields and a terse raw-endpoint reference. Every clause carries information; the only slight redundancy is pairing 'Cursor-paginated' with a schema that already explains the cursor.

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?

There is no output schema, so the description must convey the return shape — and it does, listing reward, reward_value, earning_limit and VIP-tier restriction. Combined with annotations covering the read-only profile and a fully documented two-parameter schema, an agent has everything needed to call it correctly.

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 both limit (1-250, default 50) and cursor semantics are already fully documented in the schema. The description's 'Cursor-paginated' phrase reinforces usage but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb (List) and resource (earning rules), then defines the resource in plain language and enumerates the salient fields returned. Easily distinguished from siblings like smile_list_points_transactions or smile_list_vip_tiers.

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 word 'enabled' implies a scoping filter (disabled rules are excluded), and the tool is clearly a read/list operation, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative sibling for related data such as points transactions or reward fulfillments.

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.