Skip to main content
Glama
ismaeldosil

FinaShopping MCP Server

by ismaeldosil

search-credit-cards

Search available credit cards in Uruguay by payment network and maximum annual fee to find suitable financial products.

Instructions

Search available credit cards in Uruguay. Filter by payment network and maximum annual fee. | Buscar tarjetas de crédito disponibles en Uruguay. Filtrar por red de pago y costo anual máximo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoPayment network | Red de pago
maxAnnualFeeNoMaximum annual fee in Uruguayan pesos | Costo anual máximo en pesos uruguayos

Implementation Reference

  • The handler function that fetches all credit cards, filters by optional network and maxAnnualFee parameters, sorts by ascending annual fee, and returns a structured JSON response with the results, count, applied filters, and usage tip.
    async ({ network, maxAnnualFee }) => {
      const creditCards = await getCreditCards();
      let filteredCards = [...creditCards];
    
      // Filter by network
      if (network) {
        filteredCards = filteredCards.filter(card => card.network === network);
      }
    
      // Filter by max annual fee
      if (maxAnnualFee !== undefined) {
        filteredCards = filteredCards.filter(card => card.annualFee <= maxAnnualFee);
      }
    
      // Sort by annual fee (lowest first)
      filteredCards.sort((a, b) => a.annualFee - b.annualFee);
    
      return {
        content: [{
          type: 'text' as const,
          text: JSON.stringify({
            creditCards: filteredCards,
            count: filteredCards.length,
            filters: { network, maxAnnualFee },
            tip: maxAnnualFee === 0 || (maxAnnualFee !== undefined && maxAnnualFee === 0)
              ? 'You found cards with no annual fee! | Encontraste tarjetas sin costo anual!'
              : 'Tip: Use maxAnnualFee: 0 to see only free cards | Tip: Usa maxAnnualFee: 0 para ver solo tarjetas gratis'
          }, null, 2)
        }]
      };
    }
  • Input schema defined with Zod: optional 'network' as enum ['OCA', 'Visa', 'Mastercard'], optional 'maxAnnualFee' as number >= 0, both with bilingual descriptions.
    {
      network: z.enum(['OCA', 'Visa', 'Mastercard']).optional().describe('Payment network | Red de pago'),
      maxAnnualFee: z.number().min(0).optional().describe('Maximum annual fee in Uruguayan pesos | Costo anual máximo en pesos uruguayos')
    },
  • Primary registration of the 'search-credit-cards' tool via server.tool() within registerCardTools, including bilingual description, input schema, and inline handler.
    server.tool(
      'search-credit-cards',
      'Search available credit cards in Uruguay. Filter by payment network and maximum annual fee. | Buscar tarjetas de crédito disponibles en Uruguay. Filtrar por red de pago y costo anual máximo.',
      {
        network: z.enum(['OCA', 'Visa', 'Mastercard']).optional().describe('Payment network | Red de pago'),
        maxAnnualFee: z.number().min(0).optional().describe('Maximum annual fee in Uruguayan pesos | Costo anual máximo en pesos uruguayos')
      },
      async ({ network, maxAnnualFee }) => {
        const creditCards = await getCreditCards();
        let filteredCards = [...creditCards];
    
        // Filter by network
        if (network) {
          filteredCards = filteredCards.filter(card => card.network === network);
        }
    
        // Filter by max annual fee
        if (maxAnnualFee !== undefined) {
          filteredCards = filteredCards.filter(card => card.annualFee <= maxAnnualFee);
        }
    
        // Sort by annual fee (lowest first)
        filteredCards.sort((a, b) => a.annualFee - b.annualFee);
    
        return {
          content: [{
            type: 'text' as const,
            text: JSON.stringify({
              creditCards: filteredCards,
              count: filteredCards.length,
              filters: { network, maxAnnualFee },
              tip: maxAnnualFee === 0 || (maxAnnualFee !== undefined && maxAnnualFee === 0)
                ? 'You found cards with no annual fee! | Encontraste tarjetas sin costo anual!'
                : 'Tip: Use maxAnnualFee: 0 to see only free cards | Tip: Usa maxAnnualFee: 0 para ver solo tarjetas gratis'
            }, null, 2)
          }]
        };
      }
    );
  • Helper function that fetches credit cards data from the API using fetchCreditCards() and returns the creditCards array.
    async function getCreditCards(): Promise<CreditCard[]> {
      const response = await fetchCreditCards();
      return response.creditCards;
    }
  • Top-level tool registration function that calls registerCardTools(server), indirectly registering search-credit-cards.
    export function registerAllTools(server: McpServer): void {
      registerLoanTools(server);
      registerCardTools(server);
      registerInsuranceTools(server);
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions filtering but doesn't describe what the search returns (e.g., list of cards, details), whether results are paginated, if authentication is required, or any rate limits. For a search tool with zero annotation coverage, this leaves significant behavioral gaps.

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?

The description is efficiently structured as a single sentence in both English and Spanish, front-loading the core purpose and filtering criteria without unnecessary details. However, the bilingual repetition slightly reduces conciseness, though it may serve localization purposes.

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?

Given the tool's moderate complexity (search with two optional filters), no annotations, and no output schema, the description is minimally adequate but incomplete. It covers the purpose and parameters but lacks behavioral details like return format, error handling, or usage context, leaving gaps for an AI agent to infer.

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 both parameters ('network' with enum values and 'maxAnnualFee' with numeric constraints). The description adds no additional semantic context beyond what's in the schema, such as how filtering logic works or parameter interactions. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description clearly states the specific action ('Search available credit cards'), resource ('in Uruguay'), and scope ('Filter by payment network and maximum annual fee'), distinguishing it from sibling tools like 'get-card-details' or 'compare-loans'. The bilingual format reinforces the purpose without redundancy.

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?

The description implies usage for searching credit cards with filtering capabilities, but it doesn't explicitly state when to use this tool versus alternatives like 'get-card-details' or 'compare-loans'. No guidance is provided on prerequisites, exclusions, or specific scenarios where this tool is preferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ismaeldosil/finashopping-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server