---
id: change/bcapps/14739
type: change
title: "#14739 Opting in for Data query tools in Agent metadata for PA"
summary: The Payables Agent now supports data query tools and benefits from refined prompt instructions based on initial testing to improve agent behavior.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - permissionset payables agent - run
  - enumextension pa agent metadata
  - codeunit payables agent metadata
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-12-04T01:06:55.824Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1e4e0f37e6210dd5634bd709b27a6647107b3cc0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14739
    title: "microsoft/BCApps#14739: Opting in for Data query tools in Agent metadata for PA"
    date: "2026-12-03"
    commit: 1e4e0f37e6210dd5634bd709b27a6647107b3cc0
    t: null
    quote: Opting-in to data query tools on PA, and applying prompt changes after the first iteration of the prompt evolution loop
links:
  learn: []
  objects:
    - object/permissionset/3346
    - object/enumextension/3304
    - object/codeunit/3352
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-agent-sdk-define-register
      title: Define and register an agent programmatically (preview)
      label: possibly related
      why: Documents defining and registering custom AI agents; this change configures Payables Agent with data query tools.
      by: model
number: 14739
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14739
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-03T19:00:18Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 5
  additions: 58
  deletions: 165
  al: 3
apps:
  - PayablesAgent
objects_touched:
  - key: permissionset/3346
    page: permissionset/3346
    type: permissionset
    id: 3346
    name: Payables Agent - Run
    app: PayablesAgent
    status: modified
  - key: enumextension/3304
    page: enumextension/3304
    type: enumextension
    id: 3304
    name: PA Agent Metadata
    app: PayablesAgent
    status: modified
  - key: codeunit/3352
    page: codeunit/3352
    type: codeunit
    id: 3352
    name: Payables Agent Metadata
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659521
systems:
  - copilot
quote: Opting-in to data query tools on PA, and applying prompt changes after the first iteration of the prompt evolution loop
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14739 Opting in for Data query tools in Agent metadata for PA

> The Payables Agent now supports data query tools and benefits from refined prompt instructions based on initial testing to improve agent behavior.

[Pull request](https://github.com/microsoft/BCApps/pull/14739) · merged into `main` (BC30) on 2026-12-03 by mynjj · 5 files (+58 -165), 3 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Payables Agent opts in to data query tools through its agent metadata enum extension and metadata codeunit
- Agent instructions prompt and PDF text extraction prompt are revised after a first prompt evolution iteration
- The Payables Agent - Run permission set gets a small update
- Behaviour changes for users or extensions.

## AL objects touched

- [Permission set 3346 "Payables Agent - Run"](../../objects/permissionset/3346.md), PayablesAgent: modified
- [Enum extension 3304 "PA Agent Metadata"](../../objects/enumextension/3304.md), PayablesAgent: modified
- [Codeunit 3352 "Payables Agent Metadata"](../../objects/codeunit/3352.md), PayablesAgent: modified

## Context

- Work items: AB#659521
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: "Opting-in to data query tools on PA, and applying prompt changes after the first iteration of the prompt evolution loop"

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Define and register an agent programmatically (preview)](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/ai/ai-agent-sdk-define-register) — possibly related: Documents defining and registering custom AI agents; this change configures Payables Agent with data query tools. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
