Interface: ActionMetadata
Defined in: packages/core/src/core/types.ts:132
Metadata for a single action within a grouped tool.
Returned by ToolBuilder.getActionMetadata for introspection, compliance audits, or dashboard generation.
Example
const meta = builder.getActionMetadata();
for (const action of meta) {
console.log(`${action.key}: destructive=${action.destructive}`);
}
// Output: "users.create: destructive=false"
// "users.delete: destructive=true"See
GroupedToolBuilder.getActionMetadata
Properties
actionName
readonly actionName: string;Defined in: packages/core/src/core/types.ts:136
Action name within its group
description
readonly description: string | undefined;Defined in: packages/core/src/core/types.ts:140
Human-readable description
destructive
readonly destructive: boolean;Defined in: packages/core/src/core/types.ts:142
Whether this action is destructive
groupName
readonly groupName: string | undefined;Defined in: packages/core/src/core/types.ts:138
Group name (undefined for flat actions)
hasMiddleware
readonly hasMiddleware: boolean;Defined in: packages/core/src/core/types.ts:150
Whether this action has group/action-level middleware
idempotent
readonly idempotent: boolean;Defined in: packages/core/src/core/types.ts:144
Whether this action is idempotent
key
readonly key: string;Defined in: packages/core/src/core/types.ts:134
Full action key (e.g. "admin.create" for grouped, "list" for flat)
presenterHasContextualRules
readonly presenterHasContextualRules: boolean | undefined;Defined in: packages/core/src/core/types.ts:161
Whether the Presenter has dynamic (context-aware) system rules
presenterName
readonly presenterName: string | undefined;Defined in: packages/core/src/core/types.ts:155
Presenter name (if MVA pattern is used via returns: Presenter)
presenterSchemaKeys
readonly presenterSchemaKeys: readonly string[] | undefined;Defined in: packages/core/src/core/types.ts:157
Schema keys exposed by the Presenter (Zod shape keys)
presenterStaticRules
readonly presenterStaticRules: readonly string[] | undefined;Defined in: packages/core/src/core/types.ts:163
Static rule strings for fingerprinting (empty if rules are contextual)
presenterUiBlockTypes
readonly presenterUiBlockTypes: readonly string[] | undefined;Defined in: packages/core/src/core/types.ts:159
UI block types supported by the Presenter (e.g. 'echarts', 'mermaid')
readOnly
readonly readOnly: boolean;Defined in: packages/core/src/core/types.ts:146
Whether this action is read-only
requiredFields
readonly requiredFields: readonly string[];Defined in: packages/core/src/core/types.ts:148
Required field names from the Zod schema