mendix-odata-pushdown

mendix-odata-pushdown is a skill for Claude Code, Codex from mendixlabs/mxcli. It costs 117 tokens per session (2,526 once invoked), scanned A, original, Apache-2.0.

A set of Mendix Java actions for passing OData query options into custom SQL for a read-only resource. OData is a web API format; its options include filtering, sorting, paging, counting, and looking up one record.

In plain words
What is it for?
Use it when exposing warehouse views, legacy databases, or other data without a normal Mendix table through OData while preserving filters, sorting, paging, counts, and key lookups.
Why use it?
Without this handling, a Mendix resource backed by a read microflow can return the wrong rows or send the entire result set even when the client requests a page or a specific record.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mendixlabs/mxcli/mendix-odata-pushdown
Any agent
npx skills add mendixlabs/mxcli --skill mendix-odata-pushdown
Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mendix-odata-pushdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/mendixlabs/mxcli/mendix-odata-pushdown.svg)](https://agentmods.dev/skills/mendixlabs/mxcli/mendix-odata-pushdown)
Your own site
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/mendix-odata-pushdown"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/mendix-odata-pushdown.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,526 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00117 $0.02526
Opus 5 $0.00059 $0.01263
Sonnet 5 $0.00023 $0.00505
Haiku 4.5 $0.00012 $0.00253

Measured yesterday against content hash 89fd12e09ea0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mendix-odata-pushdown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/packs/mendix-odata-pushdown/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pushing OData query options into your own SQL

The problem this exists for

Mendix will publish any entity over OData, including one with no table behind it: declare the resource non-persistable, give it a read microflow, done. What the documentation does not say is that Mendix then applies none of the query options to your answer. $filter, $orderby, $top, $skip, $count and the key lookup all arrive on the request URI and all stay there. Whatever the microflow returns is exactly what the client gets.

That is not a 500 and not an empty grid. It is a 200 with the wrong rows:

  • ?$top=5 returns all 917 rows and the widget shows five of them, so paging looks correct while every page ships the whole table.
  • A client re-reading one held row by key gets the collection back, adopts the first row as that object's identity, and keeps it. A detail page for one record shows another record's data, and nothing logs a word.

The second one is the reason to care. It is not a performance problem; it is wrong data on screen, and every check is green.

What the pack gives you

Four Java actions and the entity they return. Nothing in them is specific to any database or any app.

{{MODULE}}.Parse(Uri, Columns, Dialect, MaxTop, DefaultTop,
                 DefaultOrderBy, KeyField, RejectUnsupported) -> {{MODULE}}.Query
{{MODULE}}.Key(Uri, KeyField)                                 -> String
{{MODULE}}.FilterNumber(Uri, Field, Fallback)                 -> Long
{{MODULE}}.CallStatement(Routine, Kind, Parameters, Dialect)  -> String

Parse is the whole thing. Key and FilterNumber are short forms for the common case — a resource reachable one way only ("the sessions of this weekend"), whose entire contract is one value out of $filter. CallStatement builds the invocation for a resource backed by a stored routine.

{{MODULE}}.Query

Field Style What it is
FilterSql splice " WHERE …", or empty
OrderBySql splice " ORDER BY … LIMIT n OFFSET m"
SelectSql splice " a, b, c" for $select, or empty for all columns
SelectedColumns bind the same columns as exposed names
Key bind the key the client is re-reading one row by; empty for a collection
Top, Skip bind the page, already clamped to MaxTop
SortColumn1/2, SortDirection1/2 bind the sort, as exposed names and A/D
WantsCount both $count=true — the client wants the size of the set
Rejected, RejectReason bind the request asked for something untranslatable. Only a bind caller sees these: with RejectUnsupported = true (what a splice caller passes) Parse throws instead of returning, so a splice caller always has Rejected = false

Read the full file on GitHub · 208 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 208 lines · 117 tokens per session scan A 89fd12e09ea0

Subscribe to this mod's changes

mendix-odata-pushdown is a skill published in the GitHub repository mendixlabs/mxcli (115 stars, last pushed 2d ago), licensed Apache-2.0. It adds 117 tokens to every session and 2,526 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

fix-failing-tests

Diagnose a failing test in the googleapis/mcp-toolbox repo and land a fix by reasoning from the actual error: read the failure, reproduce it, shrink it until the cause is forced into the open, then fix the cause. Use this whenever a test or CI job is red, a build breaks after a change, many packages fail at once, or a…

googleapis/mcp-toolbox · 87 tokens

stale-sweep

Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…

googleapis/mcp-toolbox · 159 tokens

triage-issues

Triage GitHub issues in the googleapis/mcp-toolbox repo: propose the correct labels (type / priority / product / status), check for duplicates, verify a bug has enough info to act on, and draft a triage comment. Use whenever a maintainer asks you to triage, label, categorize, prioritize, or "look at" an issue (or a…

googleapis/mcp-toolbox · 164 tokens

backend-engineer

Supabase integration specialist. Handles database schema, authentication, Row Level Security (RLS), real-time subscriptions, and storage. Connects existing UI to real backend. Only called AFTER UI exists with mock data. Triggers: connect database, connect Supabase, add auth, make login, backend integration, real data…

wasintoh/toh-framework · 75 tokens

new-migration

Create a new database migration file with the correct next ID, preventing duplicates.

TheAstrelo/Claude-Pipeline · 18 tokens