Skip to main content
Glama

Get affiliateCodeStat

codecks_get_affiliate_code_stat
Read-onlyIdempotent

Retrieve a single affiliate code statistic by ID, choosing fields like month, visitors, revenue, and signups, to inspect affiliate performance data.

Instructions

Get a single affiliateCodeStat by ID with optional field selection.

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

Example selection: ["month", "newVisitors", "revenue"]

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

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.6/5.0
Behavior3/5

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

The read-only, idempotent, non-destructive behavior is already declared by annotations, so the description need not repeat it – and it doesn't. What is missing is behavior beyond that: how 'include_relations' guarded fallback behaves, what markdown vs json output looks like, and what happens when an unknown field is requested.

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?

Four short lines, front-loaded with the purpose, then the field inventory, the relation, and one worked example. No sentence is filler and the example directly demonstrates the trickiest parameter.

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 single-entity read with no output schema and full schema description coverage, the description is mostly adequate, but it never explains the 'include_relations' guarded-fallback semantics or the response_format trade-off, both of which affect how an agent should call it.

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?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description's job is narrower. It does add real value beyond the schema: the schema only says 'Selection array (fields/relations)', while the description enumerates the six selectable fields, names the 'affiliateCode' relation, and gives a concrete example selection array.

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: 'Get a single affiliateCodeStat by ID'. The word 'single' implicitly contrasts with the list sibling, but the definition never names codecks_list_affiliate_code_stat as the alternative, so the differentiation is left to inference.

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 only implied by 'by ID' – an agent can infer this is the fetch-one path rather than the list path, but there is no explicit when-to-use or when-not-to-use statement and no prerequisites (e.g., whether the ID comes from the list tool) are given.

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