Skip to main content
Glama

grid402_workdays

Project financial maturity dates and count business days under ANBIMA conventions, or check if a date is a banking business day for settlement planning.

Instructions

Calcula dias úteis financeiros e projeção de vencimentos na convenção ANBIMA (D+0 exclusivo no início e inclusivo no fim) ou verifica se uma data é dia útil bancário (0.0050 USDC / 1 crédito).

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": "grid402_workdays"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoData pontual no formato AAAA-MM-DD para verificação de dia útil.
daysNoQuantidade inteira de dias úteis para projeção de vencimento (positivo para futuro, negativo para passado).
end_dateNoData de término no formato AAAA-MM-DD para contagem de intervalo de dias úteis.
start_dateNoData de início no formato AAAA-MM-DD para contagem de intervalo ou projeção de prazo.
payment_tx_hashNoComprovante opcional de pagamento Multi-Chain USDC (0.0050 USDC em Base, Polygon, Arbitrum ou Solana) ou token pass_g402_...

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • changedInput schema / properties / payment_tx_hash / description
      Previous value: -"Hash opcional de transacao na Base Mainnet comprovando o pagamento de 0.0050 USDC caso nao utilize liquidacao automatica."New value: +"Comprovante opcional de pagamento Multi-Chain USDC (0.0050 USDC em Base, Polygon, Arbitrum ou Solana) ou token pass_g402_..."
  2. Changed1 schema field changedv1.7.1
    • changedInput schema / properties / payment_tx_hash / description
      Previous value: -"Hash opcional de transacao na Base Mainnet comprovando o pagamento de 0.0005 USDC caso nao utilize liquidacao automatica."New value: +"Hash opcional de transacao na Base Mainnet comprovando o pagamento de 0.0050 USDC caso nao utilize liquidacao automatica."
  3. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose two valuable traits: the ANBIMA day-count convention (D+0 exclusive at start, inclusive at end) and the cost (0.0050 USDC / 1 credit), which is useful pricing context. However, it omits what the calendar is based on (national holidays?), what happens when no payment/credit is supplied, whether `payment_tx_hash` is required for paid calls, and error or response behavior for a paid tool.

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?

A single dense sentence that front-loads the primary function and appends the secondary mode and price. Nothing is redundant, though the parenthetical price and the convention clause make it feel crammed into one breath rather than structured into separate mode statements.

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?

With five optional parameters, no annotations, and no output schema, the description should explain what is returned for each mode (a count, a projected date, or a boolean). It covers purpose, convention, and pricing but leaves return shape and the no-parameter default behavior unspecified, which is a meaningful gap for a paid computational 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?

Schema description coverage is 100%, so each of the five parameters is already documented in the schema, including formats and the sign convention for `days`. The description adds only the conceptual framing (counting vs. checking) and does not map parameters to modes or clarify how `days` and `end_date` interact. Baseline 3 applies 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.

Purpose4/5

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

States specific verbs and resource: 'Calcula dias úteis financeiros e projeção de vencimentos' and the alternative mode 'verifica se uma data é dia útil bancário'. The two operating modes (range/projection vs. single-date check) are distinguishable, and the ANBIMA convention is named. It stops short of naming a sibling such as grid402_holidays, so the agent must infer the boundary with that tool.

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 'ou' construction implies two usage scenarios, but the description never states the trigger conditions explicitly (e.g. use `date` for the single-date check, use `start_date`/`end_date`/`days` for counting or projection). No exclusions, prerequisites, or alternatives are given, so mode selection is left to inference from the schema.

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