跳到正文
cccskills
免费在 GitHub 公开

querying-well-data

How to query a Well workspace correctly — discover the schema first, then query the right root. Use whenever the user asks about their invoices, companies, contacts, bank transactions, accounts, or accounting ledger in Well, or before writing any well_query_records call.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Querying Well data

Well exposes a workspace's financial graph through three MCP tools:

  • well_get_schema() — list every available root (entity type).
  • well_get_schema({ root }) — list the fields available on one root, with types and semantic context.
  • well_query_records({ root, fields, whereClause?, orderBy?, limit? }) — read rows.
  • well_get_entity({ root, id }) — fetch one record by id.

The one rule: discover before you query

Always call well_get_schema(root) first, pick the fields you need from what it returns, then call well_query_records. Field paths are arrays: "invoices.issuer.name" → ["invoices", "issuer", "name"]. Do not guess field names — they vary by root and are documented in the schema response (each field carries a type and often a context explaining what it means).

The roots you can read

Calling well_get_schema() with no argument returns the full set. It includes far more than invoices and companies — in particular the accounting graph:

  • Commercial documents: invoices, invoice_items, invoice_transactions
  • Parties: companies, people, payment_means
  • Banking: accounts, transactions, account_balances
  • Accounting graph (read-only, posted by Well's pipelines): ledger_accounts, journals, journal_entries
  • Reference: tax_rates, exchange_rates, categories, connectors
  • Workspace: memberships, tasks, workspace_connectors

If you are about to answer a financial question by reconstructing it from raw invoices, stop and check well_get_schema() first — the posted ledger (journal_entries, ledger_accounts) is almost always the correct, more accurate source. See the well:compte-de-resultat and well:balance-sheet skills.

Filtering

whereClause is a Hasura-style boolean expression. Use the operator the field's type allows (from the schema):

  • numeric / date → _eq, _gt, _lt, _gte, _lte
  • enum → _eq, _neq, _in, _nin, _is_null
  • text → _eq, _like, _ilike
  • relations → nest: { "issuer": { "name": { "_ilike": "%acme%" } } }

Gotchas

  • Reads are scoped to the authenticated workspace automatically — you never pass a workspace id.
  • Select the specific fields you need (5–15), not everything — it is faster and cheaper.
  • Amounts on commercial documents are in the document currency; check the schema context for currency fields before summing across currencies (see exchange_rates).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ar-aging

免费

Produce an accounts-receivable aging report and surface overdue invoices for a Well workspace. Use when the user asks who owes them money, an AR aging report, overdue invoices, days sales outstanding (DSO), or which customers to chase.

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Iterate until success or limit, composing existing skills with Jidoka integration

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Build a balance sheet (bilan) from a Well workspace. Use when the user asks for a balance sheet, bilan, assets/liabilities/equity, or financial position at a point in time.

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Generate and maintain BPMN 2.0 diagrams linked to Gherkin scenarios

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Forecast cash flow and runway for a Well workspace from booked invoices and collected bank transactions. Use when the user asks for a cash-flow forecast, runway, how long until they run out of cash, projected balance, or expected inflows/outflows.

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

Review code changes against hard rules and conventions

中文简介正在准备中。当前显示原文说明。

WellApp-ai/Well3452026年10月15日 更新

查看 WellApp-ai 的全部技能

报告此技能的问题