Skip to main content
Glama

List affiliateCodeStat

codecks_list_affiliate_code_stat
Read-onlyIdempotent

Retrieve and filter affiliate code statistics by month/year, including visits, signups, revenue, and new visitors, with pagination, ordering, and optional relation expansion.

Instructions

List affiliateCodeStat items with optional filters and selection.

Available fields: month, newVisitors, revenue, signups, visits, year Relations: affiliateCode

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

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
filtersNoFilter object for the query
order_byNoField to order by
selectionNoSelection array (fields/relations)
order_descNoWhether to order descending
project_idNoUnified project filter key (mapped to projectId internally)
include_deletedNoInclude deleted entities where model-specific deleted flags exist
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datamarkdown
include_relationsNoAttempt safe first-level relation expansion with guarded fallback

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive behavior, and open-world access, so the safety profile is covered. The description adds the concrete field and relation inventory, which is useful, but it does not explain include_deleted, include_relations, response_format, or the ordering behavior.

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?

Two short sentences front-load the operation and then list the queryable fields without filler. The field list is bare, but it is well structured and every line contributes information.

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?

For a 10-parameter list tool with nested filters and no output schema, the description covers the queryable fields but omits pagination semantics, response format behavior, soft-delete handling, and relation-expansion behavior. It is adequate but has clear gaps relative to the tool's complexity.

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

Parameters4/5

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

Schema description coverage is 80%, so the baseline is 3, and the description earns an additional point by enumerating the valid fields (month, newVisitors, revenue, signups, visits, year) and the affiliateCode relation. Those names give meaning to the otherwise vague selection and order_by parameters, though filter syntax remains unexplained.

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 states a specific verb and resource ('List affiliateCodeStat items') and enumerates the available fields and relations, so an agent can tell this is a collection-query tool for affiliate code statistics. It does not explicitly distinguish itself from the sibling get tool, but the list/get split is clear from the verb.

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?

The phrasing 'with optional filters and selection' implies a paginated collection query, but there is no explicit when-to-use guidance, no mention of when to choose codecks_get_affiliate_code_stat instead, and no guidance on pagination or filter construction.

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

Deploy Server

Other Tools