Skip to main content
Glama
ismaeldosil

FinaShopping MCP Server

by ismaeldosil

get-benefits

Find available discounts and benefits for financial product users by category, including Food, Entertainment, Services, and Fuel.

Instructions

Get available benefits and discounts for financial product users. | Obtener beneficios y descuentos disponibles para usuarios de productos financieros.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoBenefit category (Food, Entertainment, Services, Fuel) | Categoría de beneficio (Alimentación, Entretenimiento, Servicios, Combustible)

Implementation Reference

  • Handler for the 'get-benefits' tool. Fetches all benefits using getBenefits(), optionally filters by 'category' parameter, and returns a JSON string with filtered benefits, count, and available categories.
    async ({ category }) => {
      const benefits = await getBenefits();
      let filteredBenefits = [...benefits];
    
      if (category) {
        filteredBenefits = filteredBenefits.filter(b =>
          b.category.toLowerCase().includes(category.toLowerCase())
        );
      }
    
      return {
        content: [{
          type: 'text' as const,
          text: JSON.stringify({
            benefits: filteredBenefits,
            count: filteredBenefits.length,
            categories: [...new Set(benefits.map(b => b.category))]
          }, null, 2)
        }]
      };
    }
  • Input schema for the 'get-benefits' tool, defining an optional 'category' string parameter.
    {
      category: z.string().optional().describe('Benefit category (Food, Entertainment, Services, Fuel) | Categoría de beneficio (Alimentación, Entretenimiento, Servicios, Combustible)')
    },
  • Registration of the 'get-benefits' tool on the MCP server, specifying name, description, and referencing schema and handler.
    server.tool(
      'get-benefits',
      'Get available benefits and discounts for financial product users. | Obtener beneficios y descuentos disponibles para usuarios de productos financieros.',
  • Helper function getBenefits() that calls the API fetchBenefits() and extracts the benefits array.
    /**
     * Fetch benefits from API
     */
    async function getBenefits(): Promise<Benefit[]> {
      const response = await fetchBenefits();
      return response.benefits;
    }
  • Core API fetch function for benefits data from '/api/v1/benefits' endpoint.
     */
    export async function fetchBenefits(): Promise<BenefitsResponse> {
      const response = await apiClient.get<BenefitsResponse>('/api/v1/benefits');
      return response.data;
    }
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 states the tool retrieves benefits but doesn't describe traits like whether it requires user authentication, rate limits, pagination, or error handling. For a read operation with zero annotation coverage, this is a significant gap, as it leaves the agent guessing about implementation details beyond the basic function.

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 appropriately sized and front-loaded, with the primary purpose stated first in English, followed by a Spanish translation. Both sentences are direct and waste no words, though the bilingual format adds minor redundancy. It earns a high score for efficiency, as every sentence contributes to clarity without unnecessary elaboration.

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 low complexity (1 parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on behavioral traits, usage context, or return values. Without annotations or output schema, the agent must infer more about the operation, making it incomplete for optimal tool selection, though it meets the minimum for a simple read tool.

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?

The description adds no parameter-specific information beyond what the input schema provides. The schema has 100% description coverage for the single parameter 'category', including examples (Food, Entertainment, etc.). With high schema coverage, the baseline is 3, as the description doesn't compensate with additional semantics, but it also doesn't contradict or omit necessary details.

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 clearly states the tool's purpose: 'Get available benefits and discounts for financial product users.' It specifies the verb ('Get') and resource ('benefits and discounts'), and distinguishes it from sibling tools like 'calculate-loan-payment' or 'search-credit-cards' by focusing on benefits rather than products or calculations. However, it doesn't explicitly differentiate from all siblings (e.g., 'get-card-details' might overlap in scope), keeping it from a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context (e.g., user authentication), or compare it to sibling tools like 'search-credit-cards' that might also involve benefits. Usage is implied by the purpose but lacks explicit instructions, scoring low due to the absence of when/when-not statements or alternatives.

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