Skip to main content
Glama

Truo

Top merchants

top_merchants
Read-only

The merchants the household spent the most with over a period: total spent, number of purchases and category per merchant. Excludes internal transfers. Every answer states the date the data is current as at.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
nNoHow many merchants to return (default 10).
newest-timeNoInclusive end of the period, ISO 8601 date or date-time (e.g. 2026-05-31). Defaults to the most recent data.
oldest-timeNoInclusive start of the period, ISO 8601 date or date-time (e.g. 2026-05-01). Defaults to 90 days before the end of the period, or the start of available data if there is less than that. Pass this explicitly to ask about the household's full history.

Output Schema

NameRequiredDescriptionDefault
periodNo
coverageNo
merchantsNo
receiptNoteNo
connectionNoticesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / connectionNotices
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "not": {}
      +        },
      +        {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed3 schema fields changed
    • changedOutput schema / properties / coverage / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "note": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "percentOfSpendCovered": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "spendWithNamedMerchant": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "properties": {
      -              "cents": {
      -                "description": "Whole cents. Negative means money out.",
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "display": {
      -                "description": "The same amount formatted for a person to read.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "spendWithNoMerchantName": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "properties": {
      -              "cents": {
      -                "description": "Whole cents. Negative means money out.",
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "display": {
      -                "description": "The same amount formatted for a person to read.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "note": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "percentOfSpendCovered": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "receipt": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "historyNote": {
      +                "anyOf": [
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "not": {}
      +                      },
      +                      {
      +                        "$ref": "#/properties/merchants/anyOf/0/items/properties/receipt/anyOf/0/properties/historyNote/anyOf/0/anyOf/1"
      +                      }
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "line": {
      +                "description": "One line: period, accounts, count, and what was left out.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "link": {
      +                "anyOf": [
      +                  {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "linkLabel": {
      +                "anyOf": [
      +                  {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "transactions": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "spendWithNamedMerchant": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "cents": {
      +                "description": "Whole cents. Negative means money out.",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "display": {
      +                "description": "The same amount formatted for a person to read.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "spendWithNamedMerchantReceipt": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "historyNote": {
      +                "anyOf": [
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "not": {}
      +                      },
      +                      {
      +                        "$ref": "#/properties/merchants/anyOf/0/items/properties/receipt/anyOf/0/properties/historyNote/anyOf/0/anyOf/1"
      +                      }
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "line": {
      +                "description": "One line: period, accounts, count, and what was left out.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "link": {
      +                "anyOf": [
      +                  {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "linkLabel": {
      +                "anyOf": [
      +                  {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "transactions": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "spendWithNoMerchantName": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "cents": {
      +                "description": "Whole cents. Negative means money out.",
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "display": {
      +                "description": "The same amount formatted for a person to read.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "spendWithNoMerchantNameReceipt": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "historyNote": {
      +                "anyOf": [
      +                  {
      +                    "anyOf": [
      +                      {
      +                        "not": {}
      +                      },
      +                      {
      +                        "$ref": "#/properties/merchants/anyOf/0/items/properties/receipt/anyOf/0/properties/historyNote/anyOf/0/anyOf/1"
      +                      }
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "line": {
      +                "description": "One line: period, accounts, count, and what was left out.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "link": {
      +                "anyOf": [
      +                  {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "linkLabel": {
      +                "anyOf": [
      +                  {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "transactions": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / merchants / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "properties": {
      -        "category": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "merchant": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "purchases": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "totalSpent": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": true,
      -              "properties": {
      -                "cents": {
      -                  "description": "Whole cents. Negative means money out.",
      -                  "type": [
      -                    "number",
      -                    "null"
      -                  ]
      -                },
      -                "display": {
      -                  "description": "The same amount formatted for a person to read.",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "category": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "merchant": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "purchases": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "receipt": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "properties": {
      +                "historyNote": {
      +                  "anyOf": [
      +                    {
      +                      "anyOf": [
      +                        {
      +                          "not": {}
      +                        },
      +                        {
      +                          "type": "string"
      +                        }
      +                      ]
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "line": {
      +                  "description": "One line: period, accounts, count, and what was left out.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "link": {
      +                  "anyOf": [
      +                    {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "linkLabel": {
      +                  "anyOf": [
      +                    {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "transactions": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "totalSpent": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": true,
      +              "properties": {
      +                "cents": {
      +                  "description": "Whole cents. Negative means money out.",
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "display": {
      +                  "description": "The same amount formatted for a person to read.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / receiptNote
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the bar is lower. The description adds real behavioral context beyond them: internal transfers are excluded, and every answer states the as-at currency date of the data, which matters for interpreting freshness.

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?

Two compact sentences: the first front-loads what is returned, the second the two key scoping caveats. No redundant restatement of the title or the parameters.

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?

A read-only ranked-list tool with a full schema and an output schema, so return format need not be explained. The description covers scope, exclusions and data freshness; only explicit sibling routing is missing.

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 coverage is 100% and the schema already documents n, newest-time and oldest-time including defaults. The description only echoes the period concept without adding syntax or edge-case meaning, so the baseline 3 applies.

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?

Names a specific verb+resource: merchants ranked by household spend over a period, and enumerates the returned fields (total spent, purchase count, category). It is clearly distinguishable from find_merchant (lookup) and spending_by_category (category aggregation).

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?

Implies usage through the period semantics (oldest-time/newest-time defaults, full-history option) but never states when to prefer this over spending_by_category or find_merchant. The exclusion of internal transfers is useful scoping but is not framed as guidance against alternatives.

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