Skip to main content
Glama

List affiliateCode

codecks_list_affiliate_code
Read-onlyIdempotent

Retrieve and filter affiliate codes with pagination, ordering, and field selection, including related stats, account, and creator data for Codecks affiliate management.

Instructions

List affiliateCode items with optional filters and selection.

Available fields: code, createdAt, isDeleted, isDisabled, label, message, remainingRedemptions, reward, ... Relations: stats, account, creator

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

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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is fully covered elsewhere. The description adds the available field and relation inventory, which is useful, but says nothing about pagination behavior, default sort order, or how filters/selection interact with relation expansion.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short lines, front-loaded with the action and scope, then the field and relation inventory that an agent actually needs. No filler sentences; the trailing ellipsis in the field list is the only minor loss.

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?

Ten optional parameters with nested filter objects and no output schema make this a moderately complex tool, and the description covers the field space but not the filter syntax, pagination/link semantics, or response_format behavior. Adequate for constructing a basic call, thin for a fully correct one.

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; the description earns above baseline by listing the concrete fields usable in selection and order_by and the relations (stats, account, creator) available for expansion, which the bare object-typed selection property does not convey. It still does not explain filter operator syntax or how include_relations interacts with the relation list.

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?

States a specific verb and resource ("List affiliateCode items") and enumerates the fields returned, so the agent knows this is a paginated read of affiliate codes. It does not distinguish itself from close siblings such as codecks_get_affiliate_code or codecks_list_affiliate_code_stat, leaving that inference to the caller.

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?

"with optional filters and selection" implies the tool is used for browsing/querying rather than single-record retrieval, which weakly signals when to pick it over a get-by-id sibling. There is no explicit statement of when not to use it, no prerequisites, and no named alternative.

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