Borrowing it
Nothing to install: this file belongs to mafzaal/d365fo-client. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mafzaal/d365fo-client/main/.github/prompts/odata-action.prompt.mdgit clone --depth 1 https://github.com/mafzaal/d365fo-clientWrote 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.
[](https://agentmods.dev/commands/mafzaal/d365fo-client/odata-action)<a href="https://agentmods.dev/commands/mafzaal/d365fo-client/odata-action"><img src="https://agentmods.dev/badge/commands/mafzaal/d365fo-client/odata-action/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/mafzaal/d365fo-client/odata-action"><img src="https://agentmods.dev/badge/commands/mafzaal/d365fo-client/odata-action.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00011 | $0.02450 |
| Opus 5.5 | $0.00004 | $0.00980 |
| Sonnet 5.5 | $0.00002 | $0.00490 |
| Haiku 4.5 | $0.00001 | $0.00245 |
Grade A, and why
odata-action 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 370 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OData Action Implementation Prompt
You are a Python developer working on the d365fo-client package. Your task is to implement a method for calling an OData action in Microsoft Dynamics 365 Finance & Operations. Follow these steps systematically:
Step 1: Search and Analyze Action Metadata
First, search the metadata to find details about the OData action:
# Search for the action in the metadata
action_info = client.get_action_info("ActionName")
# If not found in cached metadata, search in PublicEntities
entity_info = await client.get_public_entity_info("EntityName")
if entity_info and entity_info.actions:
action_info = next((a for a in entity_info.actions if a.name == "ActionName"), None)
Step 2: Determine Action Binding Type
Analyze if the action is:
- Static Action: Not bound to any entity (
is_bound=Falseorbinding_kind="") - Entity Bound: Bound to a single entity instance (
binding_kind="Entity") - Collection Bound: Bound to an entity set (
binding_kind="Collection")
if action_info.binding_kind == "Entity":
# Entity-bound action - requires entity key
binding_type = "entity"
elif action_info.binding_kind == "Collection":
# Collection-bound action - operates on entity set
binding_type = "collection"
else:
# Static action - no binding required
binding_type = "static"
Step 3: Analyze Parameters and Return Type
Extract parameter information and return type:
# Analyze parameters
parameters = []
for param in action_info.parameters:
param_info = {
'name': param.name,
'type': param.type.type_name,
'is_collection': param.type.is_collection,
'is_optional': False # Determine from metadata
}
parameters.append(param_info)
# Analyze return type
return_type = None
if action_info.return_type:
return_type = {
'type': action_info.return_type.type_name,
'is_collection': action_info.return_type.is_collection
}
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.
- 1mo ago First seen · 370 lines · 11 tokens per session scan A b9e31b42830b
odata-action is a command published in the GitHub repository mafzaal/d365fo-client (40 stars, last pushed 3d ago), licensed MIT. It adds 11 tokens to every session and 2,450 once invoked, about $0.0000 per session on Opus 5.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-11.
Other commands, from other repositories
sugar-task
Create a comprehensive Sugar task with rich context and metadata.
consolidate-triggers
Wraps agents/trigger-consolidator/AGENT.md. Finds every trigger on a given sObject and produces a single-handler migration plan using templates/apex/TriggerHandler.cls + TriggerControl.cls.
mx-scaffold-microflow
GATED WRITE. Scaffold a new Mendix microflow with the 8 safety pillars. Pre-tag, clean-tree check, Studio Pro lock check, version check, pre/post mx check, auto-restore on fail.
api-endpoints
Create comprehensive FastAPI endpoints with proper structure, validation, and documentation.
app-factory
Create a scalable Flask application using the factory pattern with blueprints and configuration management.
checklist
Generate a custom checklist for the current feature based on user requirements.