Skip to main content
Glama

Set card history

set_card_history
DestructiveIdempotent

Saves the cards the user used to have and no longer holds, with the months they know (opened, closed, when the welcome bonus posted). compare_welcome_offers then checks each issuer's published repeat-bonus rule against them and the saved cards: "Chase says you may not get this bonus again", or "Not before March 2027". Only the card id is needed; ask for months only when the issuer's rule counts from one. Replaces the whole list, so call list_wallet first and include the ones to keep. Only rules issuers publish are checked; never assume one (5/24 is skippedIssuers on set_memberships). Never suggest closing a card to earn a bonus again. It uses the user's hosted earnrate wallet, not a wallet file on their computer.

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": {
      "pastCards": "<pastCards>"
    },
    "name": "set_card_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pastCardsYesCards the user used to have and no longer holds, with the months they know. Only the card is needed; months make the dates exact. Replaces the saved list, so include the ones to keep; [] clears it.

Output Schema

NameRequiredDescriptionDefault
notesYes
cardIdsYes
createdYes
messageYes
membershipsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes beyond the annotations by explaining *why* it is destructive — it replaces the whole list, so omitted cards are dropped and [] clears it — and by disclosing storage location (the hosted earnrate wallet, not a local wallet file) and downstream behavior in compare_welcome_offers with example outputs. The remaining gap is minor since destructive/idempotent hints and an output schema already cover the rest; a small amount of text is policy advice rather than behavior of this tool.

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?

Front-loaded with purpose, then downstream effects, then operational rules, and nearly every sentence carries information (replacement semantics, prerequisite, no-assumed-rules). It is dense and slightly long, with a couple of policy asides that could be trimmed, but nothing is redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter destructive write with an output schema, rich annotations, and 100% schema coverage, the description covers the storage model, replacement risk, prerequisite read, date-asking conditions, and what the data is later used for. Nothing an agent needs in order to call it correctly is missing.

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 baseline is 3, but the description adds reasoning the schema lacks: months are optional and should only be requested when the issuer's rule counts from a specific date, and it reinforces that the card id alone suffices. That is genuine meaning beyond the field-level descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — saves cards the user used to have and no longer holds, with dates — and immediately distinguishes the role from siblings by naming compare_welcome_offers as the consumer and list_wallet as a prerequisite. An agent can tell this apart from add_card/remove_card without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use and how-to-use rules: 'Only the card id is needed; ask for months only when the issuer's rule counts from one', 'call list_wallet first and include the ones to keep', and 'Only rules issuers publish are checked; never assume one'. It also names a sibling (set_memberships/skippedIssuers) to route 5/24 elsewhere and gives a clear do-not ('Never suggest closing a card to earn a bonus again').

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.