Skip to main content
Glama

Grant expense check

wever_grant-expense-check
Read-only

Agent Grants: submit spending records under a grant with the approved budget: the records with the grant, the currency and each expense with its id, budget category, amount, the day spent and whether it was paid from matching funds rather than the grant; the approved budget with the grant, the currency, the first and last day of the grant period, each category with the amount approved for it and the matching spend required. The signed report gives the records and the approved budget, each grant-funded expense totalled under its budget category against the amount approved, every expense in an unbudgeted category or outside the grant period named, and the matching spend against the requirement, and counts them, and names a divergent record set: another currency, an expense in a category the approved budget does not hold, an expense outside the grant period, a category above its approved amount and matching spend below the requirement; then two expenses with one category, amount and day, and another grant name, with the fix for each and what would change the verdict. Expenses with no category or day where the budget states categories or a period, a matching requirement with no expense marked as matching or grant-funded, or a budget that states none of these leaves the records unverified. Expenses total under the category the budget names for them by their words with plurals folded, grant-funded and matching spend kept apart, amounts compare to the cent in one currency and days read against the grant period with its first and last day included. This returns a verdict on grant spending against the approved grant budget: wever_expense-close-pack assembles a closing pack from one period’s payment, receipt and refund records and returns no verdict, while the expense check assembles no pack; and wever_spend-category-brief totals one period of transactions by category and counterparty, while the expense check reads each expense against the categories, caps, period and match the approved budget sets. Verdict grant_expense_divergent, grant_expense_partial, grant_expense_unverified or grant_expense_consistent. POST /api/grant-expense-check. Reads the grant records supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; it reads consistency between documents only: it never applies for a grant, awards one, disburses or moves any money, or judges the merit of an applicant, a project, or a funder’s decision, only whether the records agree with each other and with the terms they were written under, and the records stay in the report, with no network request, fetch, message, payment or external write. Agent Grants reads a grant’s records for consistency between documents: a grant application, a proposed budget, an award letter or grant agreement, milestone records, disbursement records, spending records, a progress or final report and a closeout record, each against the call or guidelines, the terms in the call or award, the application as submitted, the schedules in the award, the approved budget, the records it summarizes or the award terms it should agree with. Beside it, the conditional payments rail tools such as wever_conditional-create create, fund, cancel and report on payments held against conditions between parties, keeping state and moving money, and the Job Records tools such as wever_job-cost-brief read the records of paid work orders, while this family keeps no state, moves nothing, commissions no work and reads the grant records in the call against each other and against the terms they were written under. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-grants-contract. Human page: https://weverlabs.com/agent-grants/.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expenses": "<expenses>",
      "budget": "<budget>"
    },
    "name": "wever_grant-expense-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name recorded in the report.
budgetYes
expensesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses a great deal: the four exact verdict values, the signed report contents, an Ed25519 signed receipt, the pricing ($0.10 USDC per call on Base via x402 exact) with a 10-free-call rolling window, the X-Wever-Wallet-Proof binding requirement, and explicit confirmation that no network request, fetch, payment or external write occurs. It also explains the failure mode 'leaves the records unverified' and its three triggers, which an agent could not infer from the schema.

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 description is a wall of semicolon-chained run-on sentences that repeatedly restate the same idea (it reads documents for consistency, it moves no money, it returns no pack) across four separate passages. Pricing, contract links, receipt format, family-wide philosophy and sibling contrasts are all crammed into one undifferentiated block, so the verdict taxonomy and the failure conditions are hard to locate. Substantial trimming and structural separation would improve it without losing information.

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?

For a nested two-object input with no output schema, the description covers what matters: the returned verdict enum, the report's components (evidence, findings with fixes, what would change the verdict), the unverified cases, and the comparison rules. Minor gaps remain — no indication of how many findings are returned or how the label parameter surfaces in the report — but nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 33% on three top-level params (two of which are deep nested objects), the description carries real weight: it enumerates the expense fields (id, budget category, amount, day spent, matching flag) and the budget fields (grant, currency, period bounds, per-category approved amount and matching requirement). It goes further than the schema by specifying evaluation semantics — plurals folded when matching categories, grant-funded and matching spend kept apart, amounts compared to the cent in one currency, and the grant period treated as inclusive of first and last day.

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 core statement 'returns a verdict on grant spending against the approved grant budget' gives a specific verb and resource, and the description explicitly distinguishes it from wever_expense-close-pack ('returns no verdict... assembles no pack') and wever_spend-category-brief ('totals one period of transactions by category and counterparty'). However, this purpose sentence is buried mid-way through a very long narrative, so an agent must read several hundred words before reaching the one-line definition of what the tool does.

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?

Two named alternatives are contrasted with concrete behavioral differences (close-pack returns no verdict; spend-category-brief aggregates per period rather than reading each expense against budget categories, caps, period and match). It also states a negative boundary: it never applies for, awards, disburses or moves money. What is missing is routing guidance against the other grant-*-check siblings (budget-check, report-check, disbursement-check), which are far closer alternatives than the two named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources