Skip to main content
Glama
FundFluent

FluentLab Funding Assistant

by FundFluent

Get Funding Options

get-funding-options
Read-onlyIdempotent

Find available grants and funding opportunities with eligibility criteria and application details to support your project financing needs.

Instructions

Retrieve available funding opportunities with detailed information including name and description. Use this tool when users need to explore available grants, funds, or financing opportunities. The results include program names, descriptions, eligibility criteria, and application details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYes
pageYes

Implementation Reference

  • Handler function that executes the tool logic by querying FluentLab API and returning JSON results.
    handler: async (params) => {
      const fundingOptions = await fluentLab.fundingOption.getFundingOptions(params);
    
      if (fundingOptions.isOk()) {
        return {
          content: [
            { 
              type: 'text', 
              text: JSON.stringify(fundingOptions.value, null, 2), 
              mimeType: "application/json" 
            }
          ]
        };
      } else {
        // Error handling is now done by middleware, just throw the original error
        throw fundingOptions.error;
      }
    }
  • Zod schema defining the input parameters for the getFundingOptions tool (limit and page).
    export const FundingOptionQuerySchema = z.object({
      limit: z.number().int().positive().min(1).max(100),
      page: z.number().int().positive().min(1),
    });
  • Helper method in FundingOption class that performs the actual API request to retrieve funding options from FluentLab.
    async getFundingOptions(query: TFundingOptionQuery): Promise<ResultAsync<TFundingOptionPage, TApiError>> {
      try {
        const res = await this.axiosInstance.get('mcp/funding-options', { params: query });
        return ok(res.data);
      } catch (error: unknown) {
        if (error instanceof AxiosError) {
          if (error.response?.status === 401)
            return err({
              type: 'API_UNAUTHORIZED_ERROR',
              error,
            })
          return err({
            type: 'AXIOS_ERROR',
            error,
          })
        }
        return err({
          type: 'UNKNOWN_ERROR',
          error,
        })
      }
    }
  • src/tools/index.ts:5-7 (registration)
    Registration of the getFundingOptionsTool in the central tool registry using its name.
    export const toolRegistry: ToolRegistry = {
      [getFundingOptionsTool.definition.name]: getFundingOptionsTool,
    };
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=false, covering key behavioral traits. The description adds context about the type of data returned ('program names, descriptions, eligibility criteria, and application details'), which is useful but doesn't provide rich behavioral details like rate limits or error handling.

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?

The description is concise and well-structured: three sentences that efficiently cover purpose, usage, and result details without redundancy. Each sentence adds clear value, making it front-loaded and easy to parse.

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?

Given the tool's moderate complexity (read-only search with two parameters), annotations cover safety and idempotency, and the description explains purpose, usage, and result content. However, without an output schema, the description could benefit from more detail on return format or pagination, though it's largely complete for its context.

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 input schema fully documents the two parameters (limit and page) with types and constraints, but schema description coverage is 0%. The description doesn't mention parameters at all, so it adds no semantic value beyond the schema. Baseline 3 is appropriate since the schema handles parameter documentation.

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: 'Retrieve available funding opportunities with detailed information including name and description.' It specifies the verb ('retrieve'), resource ('funding opportunities'), and scope ('detailed information'), though it doesn't differentiate from siblings as none exist.

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

Usage Guidelines4/5

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

The description provides explicit usage guidance: 'Use this tool when users need to explore available grants, funds, or financing opportunities.' This clearly indicates when to use the tool, but since there are no sibling tools, it doesn't specify alternatives or exclusions.

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/FundFluent/funding-assistant'

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