Skip to main content
Glama
domechn

Merkl MCP Server

by domechn

Aggregate Min

opportunities-aggregate-min

Calculate the minimum value of a selected numeric field, such as APR, TVL, or dailyRewards, across Merkl opportunities filtered by chain, protocol, status, or token.

Instructions

GET /v4/opportunities/aggregate/min/{field}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoFilter by name
tagsNoFilter by tag
testNoInclude opportunities with test campaigns
typeNoA comma separated list of Opportunity type
fieldYesNumeric field to compute min on (e.g. apr, tvl, dailyRewards)
pointNoInclude opportunities with point campaigns
actionNoA comma separated list actions. Legal values: POOL,HOLD,DROP,LEND,BORROW,LONG,SHORT,SWAP,INVALID
searchNoSearch amongst multiple values (token, protocols, tags, campaigns)
statusNoA comma separated list of status. Legal values: LIVE,PAST,SOON
tokensNoA comma separated list of token symbol. Use to filter by token
chainIdNoA comma separated list of chain ids. Example: ?chainId=1,42161
campaignsNoInclude campaign data. Will slow down the request
chainNameNoA comma separated list of chain names. Example: ?chainName=ethereum,arbitrum
campaignIdNoSearch the opportunity linked to a given campaignId
identifierNoFilter by identifier (mainParameter)
maximumAprNoMaximum APR threshold
maximumTvlNoMaximum TVL threshold in USD
minimumAprNoMinimum APR threshold
minimumTvlNoMinimum TVL threshold in USD
tokenTypesNoFilter by token type. Use POINT to include point campaigns and PRETGE to include preTGE campaigns.
creatorSlugNo
programSlugsNoA comma separated list of program ids or slugs. See GET /v4/programs
creatorAddressNoFilter by creator address
mainProtocolIdNoA comma separated list of protocol ids. See GET /v4/protocols
distributionTypesNoFilter by distribution type. Legal values: FIX_REWARD, MAX_REWARD, DUTCH_AUCTION
rewardTokenSymbolNoFilter by opportunity with at least 1 campaign where the reward token has this symbol
excludeSubCampaignsNoExclude sub-campaigns from the results

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesMinimum value for the requested field across matching opportunities

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.9

TDQS

D1.7/5.0
Behavior1/5

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

With no annotations provided, the description carries the full behavioral burden and delivers nothing: no mention of response shape, pagination, auth requirements, rate limits, or what happens when the referenced field is non-numeric. A bare HTTP path is not behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single-line endpoint string is short but under-specified rather than concise; it wastes the entire description slot on a path that is already implied by the name and title, and front-loads no actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool with 27 parameters, one required, and no annotations. An output schema exists so return values need not be explained, but the description still omits purpose, usage routing, and any behavioral context, leaving it wholly inadequate.

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 96%, so the schema already documents nearly all 27 parameters including the required 'field' with examples (apr, tvl, dailyRewards). The description adds no parameter meaning beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is nothing but the raw endpoint path 'GET /v4/opportunities/aggregate/min/{field}'. It restates the tool name rather than explaining what the tool does, and gives no indication of what a 'min' aggregation over a field returns or how it differs from opportunities-aggregate-max beyond the literal word 'min'.

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

Usage Guidelines1/5

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

There is no guidance on when to use this tool versus opportunities-aggregate, opportunities-aggregate-max, or opportunities-search. No prerequisites, no conditions, no exclusions are stated.

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