Skip to main content
Glama

Exchange.news — Crypto offers, campaigns and news

Get one brand offer

get_code
Read-onlyIdempotent

Get a brand or alias, exact published code/link, offer type, instructions and caveats. A brand match never establishes region or product eligibility. Unknown brands return found:false.

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": {
      "brand": "<brand>"
    },
    "name": "get_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYesBrand name, slug or alias, e.g. OKX or ether.fi.
regionNoOptional region context. Does not establish eligibility.
productNoOptional product context. Does not establish eligibility.

Output Schema

NameRequiredDescriptionDefault
foundYes
offerYes
noticeYes
disclosureYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / offer / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "applicability": {
      -        "type": "string"
      -      },
      -      "article_caveat": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "benefit": {
      -        "type": "string"
      -      },
      -      "box_title": {
      -        "type": "string"
      -      },
      -      "brand": {
      -        "type": "string"
      -      },
      -      "canonical_url": {
      -        "type": "string"
      -      },
      -      "categories": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "caveat": {
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "code_display_label": {
      -        "type": "string"
      -      },
      -      "code_expires_at": {
      -        "type": "null"
      -      },
      -      "code_validity": {
      -        "anyOf": [
      -          {
      -            "const": "lifetime"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "cta": {
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "type": "null"
      -      },
      -      "guide_url": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "historical_verification_date": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "label": {
      -        "type": "string"
      -      },
      -      "link_expires_at": {
      -        "type": "null"
      -      },
      -      "link_validity": {
      -        "const": "lifetime"
      -      },
      -      "offer_type": {
      -        "type": "string"
      -      },
      -      "provenance": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "review_url": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "show_code": {
      -        "type": "boolean"
      -      },
      -      "signup_url": {
      -        "type": "string"
      -      },
      -      "slug": {
      -        "type": "string"
      -      },
      -      "usage_steps": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "validity": {
      -        "const": "lifetime"
      -      }
      -    },
      -    "required": [
      -      "slug",
      -      "brand",
      -      "categories",
      -      "offer_type",
      -      "label",
      -      "box_title",
      -      "cta",
      -      "code",
      -      "show_code",
      -      "code_display_label",
      -      "benefit",
      -      "caveat",
      -      "article_caveat",
      -      "signup_url",
      -      "canonical_url",
      -      "guide_url",
      -      "review_url",
      -      "validity",
      -      "code_validity",
      -      "link_validity",
      -      "code_expires_at",
      -      "link_expires_at",
      -      "expires_at",
      -      "provenance",
      -      "applicability",
      -      "usage_steps",
      -      "historical_verification_date"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "applicability": {
      +        "type": "string"
      +      },
      +      "article_caveat": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "benefit": {
      +        "type": "string"
      +      },
      +      "box_title": {
      +        "type": "string"
      +      },
      +      "brand": {
      +        "type": "string"
      +      },
      +      "canonical_url": {
      +        "type": "string"
      +      },
      +      "categories": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "caveat": {
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "code_display_label": {
      +        "type": "string"
      +      },
      +      "code_expires_at": {
      +        "type": "null"
      +      },
      +      "code_validity": {
      +        "anyOf": [
      +          {
      +            "const": "lifetime"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "cta": {
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "type": "null"
      +      },
      +      "guide_url": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "historical_verification_date": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "label": {
      +        "type": "string"
      +      },
      +      "link_expires_at": {
      +        "type": "null"
      +      },
      +      "link_validity": {
      +        "const": "lifetime"
      +      },
      +      "offer_type": {
      +        "type": "string"
      +      },
      +      "provenance": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "review_url": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "show_code": {
      +        "type": "boolean"
      +      },
      +      "signup_note": {
      +        "type": "string"
      +      },
      +      "signup_url": {
      +        "type": "string"
      +      },
      +      "slug": {
      +        "type": "string"
      +      },
      +      "usage_steps": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "validity": {
      +        "const": "lifetime"
      +      }
      +    },
      +    "required": [
      +      "slug",
      +      "brand",
      +      "categories",
      +      "offer_type",
      +      "label",
      +      "box_title",
      +      "cta",
      +      "code",
      +      "show_code",
      +      "code_display_label",
      +      "benefit",
      +      "caveat",
      +      "article_caveat",
      +      "signup_url",
      +      "canonical_url",
      +      "guide_url",
      +      "review_url",
      +      "validity",
      +      "code_validity",
      +      "link_validity",
      +      "code_expires_at",
      +      "link_expires_at",
      +      "expires_at",
      +      "provenance",
      +      "applicability",
      +      "usage_steps",
      +      "historical_verification_date"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), and the description adds real semantic context beyond them: a brand match never establishes region or product eligibility, and unknown brands return found:false. That found:false contract is the kind of edge-case behavior an agent needs and would not get from the annotations alone.

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?

Three short sentences, front-loaded with what is returned, then the eligibility caveat, then the not-found behavior. No filler; the first sentence is a dense noun list but each item maps to a distinct output field.

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?

With an output schema present and annotations carrying the safety profile, the description only needs to supply interpretation caveats, which it does via the eligibility warning and found:false contract. The remaining gap is routing guidance versus the sibling lookup tools, which is a minor omission rather than a blocking one.

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 the schema already documents brand, region and product, including that region and product are context only. The description echoes the brand/alias notion but adds no syntax or interpretation detail beyond what the schema states, so baseline 3 applies.

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 retrieval verb plus the concrete payload (published code/link, offer type, instructions, caveats) for a brand or alias. An agent can tell this returns one brand's offer detail rather than a list, though no sibling is named to sharpen the contrast with search_codes or list_brands.

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: supply a known brand and get its exact code. There is no explicit 'use this instead of search_codes when you already have the brand name' routing, and no stated prerequisites or when-not-to-use conditions. The eligibility caveat guides interpretation of results rather than tool selection.

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.

Resources