Skip to main content
Glama

Get affiliateCode

codecks_get_affiliate_code
Read-onlyIdempotent

Retrieve a single affiliate code by ID, optionally selecting fields and expanding related stats, account, or creator data for targeted lookups.

Instructions

Get a single affiliateCode by ID with optional field selection.

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

Example selection: ["code", "createdAt", "isDeleted"]

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
idYesModel ID
selectionNoSelection array (fields/relations)
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.8/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive operation. The description adds useful behavioral context by enumerating selectable fields and available relations, though it does not discuss missing-ID behavior or the guarded relation-expansion fallback.

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?

The definition is compact and front-loads the core operation. The field list is truncated with "...", which is slightly incomplete but keeps the description efficient.

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?

For a simple single-record read tool with full schema coverage and rich annotations, the description supplies the key additional context: available fields and relations. Missing error/response details are minor because the schema and annotations carry much of that burden.

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 coverage is 100%, so the baseline is adequate, but the description goes further by listing concrete field names, relations, and an example selection array. This meaningfully clarifies the otherwise generic "fields/relations" selection parameter.

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: retrieve a single affiliateCode by ID. The phrase "single ... by ID" implicitly distinguishes it from list-oriented siblings, but it does not explicitly name or contrast with them.

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?

Usage is implied by "single affiliateCode by ID," which suggests fetching one known record rather than listing. However, there is no explicit guidance on when to choose this versus the list or stat siblings, nor any stated preconditions.

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