cross-app-agent-calls-need-your-public-api

cross-app-agent-calls-need-your-public-api is an agent for Claude Code from microsoft/BCQuality. It costs 0 tokens per session (265 once invoked), scanned A, original, MIT.

An integration pattern for letting other Business Central apps request work from an agent. The agent's own app exposes a public codeunit, which forwards requests to the internal agent APIs.

In plain words
What is it for?
Use it to create a documented public API for partners or extensions that need to enqueue agent tasks.
Why use it?
The toolkit blocks direct cross-app calls and does not support passing another app's metadata provider.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

About the project

microsoft/BCQuality is a structured knowledge base and skills library for Microsoft Business Central development. It records Business Central-specific rules and platform behaviors that coding agents or developers might otherwise get wrong. The catalogue entries provide the agents and skill that consume this guidance.

microsoft/BCQuality · 206 stars · on GitHub

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 agents/microsoft/bcquality/cross-app-agent-calls-need-your-public-api
Clone the repo
git clone --depth 1 https://github.com/microsoft/BCQuality

Made for: Claude Code.

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 cross-app-agent-calls-need-your-public-api

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/bcquality/cross-app-agent-calls-need-your-public-api.svg)](https://agentmods.dev/agents/microsoft/bcquality/cross-app-agent-calls-need-your-public-api)
Your own site
<a href="https://agentmods.dev/agents/microsoft/bcquality/cross-app-agent-calls-need-your-public-api"><img src="https://agentmods.dev/badge/agents/microsoft/bcquality/cross-app-agent-calls-need-your-public-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 265 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.1 $0.00000 $0.00265
Opus 5 $0.00000 $0.00133
Sonnet 5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00026

Measured 2d ago against content hash f6ffc1caa807, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

cross-app-agent-calls-need-your-public-api 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 2d 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.

community/knowledge/agents/cross-app-agent-calls-need-your-public-api.md · 27 lines

What it actually says

Other apps cannot call the toolkit APIs on your agent; publish your own API

Description

For isolation, Agent, Agent Task Builder, and related toolkit codeunits error when the target instance belongs to another app. There is no supported way to pass another extension's metadata provider into SetInstructions or Create. Partners who need to enqueue work must call a public API you own.

Best Practice

Expose a public codeunit in the agent app (Access = Public) whose procedures take User Security ID and forward to Agent / Agent Task Builder. Document that surface as the integration contract. Keep toolkit calls inside that app.

See sample: cross-app-agent-calls-need-your-public-api.good.al.

Anti Pattern

From app B, calling Agent.SetDisplayName or Agent.Create with app A's metadata provider. Detection signal: toolkit agent APIs used with an Agent Metadata Provider value not declared in the same app.

See sample: cross-app-agent-calls-need-your-public-api.bad.al.

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. 2d ago First seen · 27 lines · 0 tokens per session scan A f6ffc1caa807

Subscribe to this mod's changes

cross-app-agent-calls-need-your-public-api is an agent published in the GitHub repository microsoft/BCQuality (206 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 265 tokens. 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.