Skip to main content
Glama

Truvana Tech Card Processing and POS Database

Card surcharge and cash rules by state

card_surcharge_rules
Read-onlyIdempotent

A US state's rules on adding a credit card surcharge and on refusing cash (all 50 states and DC), the highest surcharge allowed there, and, given monthly card sales and the card cost %, what a surcharge or a cash discount would recover each month. Interactive version: https://truvanatech.com/tools/credit-card-surcharge-checker

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": {
      "state": "<state>"
    },
    "name": "card_surcharge_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYesUS state name, or "Washington, DC". One of: Alabama, Alaska, Arizona, Arkansas, California, Colorado, Connecticut, Delaware, Florida, Georgia, Hawaii, Idaho, Illinois, Indiana, Iowa, Kansas, Kentucky, Louisiana, Maine, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Montana, Nebraska, Nevada, New Hampshire, New Jersey, New Mexico, New York, North Carolina, North Dakota, Ohio, Oklahoma, Oregon, Pennsylvania, Rhode Island, South Carolina, South Dakota, Tennessee, Texas, Utah, Vermont, Virginia, Washington, Washington, DC, West Virginia, Wisconsin, Wyoming
feePercentNoWhat cards cost the merchant, % of sales (optional; from card_fee_calculator)
creditShareNoShare of card sales on credit cards, % (only credit can carry a surcharge)
samplePriceNoA menu price to show the card price for, $
monthlySalesNoCard sales in a month, $ (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, closed-world, non-destructive operation, so the safety profile is covered. The description adds useful scope (all 50 states plus DC, the highest allowed surcharge) and, with no output schema, hints at what is returned; however, it does not say how results vary when the optional sales/fee inputs are omitted, which is a real behavioral question for a tool whose calculation half depends on them.

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?

One dense sentence lists the three deliverables in order, followed by the interactive link, so the important content is front-loaded with no filler. It is a long, comma-heavy sentence that reads slightly as a run-on, but every clause carries information.

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 no output schema, the description does the necessary work of enumerating what comes back (state rules, max surcharge, monthly recovery), which makes the tool predictable. The remaining gap is that the conditional behavior of the optional calculation inputs and the creditShare/samplePrice effects are not covered anywhere outside the schema.

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 baseline is 3. The description does add meaning by tying monthly card sales and the card cost percentage to the recovery figure, explaining why those optional parameters exist, but it never mentions creditShare or samplePrice, leaving those two entirely to the schema.

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?

The description names the specific resource (a state's credit-card surcharge and cash-refusal rules) and the three outputs: the rules, the maximum surcharge, and a monthly recovery computation. It is clear enough to distinguish from card_fee_calculator, though that distinction is left implicit rather than stated as an explicit split of responsibilities.

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: you would call this when you need a state's surcharge or cash rules, or want to estimate what a surcharge or cash discount recovers. There is no explicit when-to-use, no mention of when a sibling like card_fee_calculator or card_price_sign_check is the better fit, and no prerequisites stated.

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.