Deedglass

v0.15.0
io.github.deedglass/deedglass Checked 3 hours ago Published 1 month ago

Deedglass lets rules decide each AI agent tool call, checks what really changed and seals a record.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

postgres_call Call

Call an allow-listed function with named arguments: public.ship_order(bigint): Mark a paid order shipped.

ParameterTypeDescription
function *stringAn allow-listed function.
argsobjectThe function's named arguments.

postgres_describe Describe

List the tables the agent can read: columns, types, primary keys, row estimates, and which tables are writable and watched.

ParameterTypeDescription
schemastringOnly this schema.
tablestringOnly this table.

postgres_execute Execute

Run one INSERT, UPDATE, DELETE or MERGE in a transaction Deedglass controls, as a least-privilege role. Writable tables: public.orders, public.refunds.

ParameterTypeDescription
sql *stringOne INSERT, UPDATE, DELETE or MERGE. Use $1, $2 … for values.
paramsarrayValues for $1, $2 …: strings, integers, booleans or null; at most 100.

postgres_query Query

Run one read-only SQL statement against public and get up to 500 rows back. Read-only: it never commits.

ParameterTypeDescription
sql *stringOne read-only SQL statement (SELECT). Use $1, $2 … for values.
limitintegerReturn at most this many rows (default and maximum 500).
paramsarrayValues for $1, $2 …: strings, integers, booleans or null; at most 100.

deedglass_check_approval Check a Deedglass approval

Checks whether a person has countersigned an action that Deedglass paused for approval. Call it with the approval_id from a 'Waiting for approval' message. It waits up to wait_seconds (0 to 20, default 10) for the decision, so one call is usually enough. If it was approved, Deedglass runs the original tool call and returns its result. Nothing runs while the approval is pending.

ParameterTypeDescription
approval_id *stringThe approval id, for example apr_01j9zs4k7m2n3p5q6r7s8t9v0w
wait_secondsintegerHow long to wait for a person's decision before answering, in seconds.