diff --git a/.changeset/fix-catalog-mcp-action-schemas.md b/.changeset/fix-catalog-mcp-action-schemas.md new file mode 100644 index 0000000000..e9b1f6de24 --- /dev/null +++ b/.changeset/fix-catalog-mcp-action-schemas.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-backend': patch +--- + +Added missing description to the `type` parameter on the `unregister-entity` MCP action. diff --git a/plugins/catalog-backend/src/actions/createUnregisterCatalogEntitiesAction.ts b/plugins/catalog-backend/src/actions/createUnregisterCatalogEntitiesAction.ts index 542fc79ac5..22dbb15eb6 100644 --- a/plugins/catalog-backend/src/actions/createUnregisterCatalogEntitiesAction.ts +++ b/plugins/catalog-backend/src/actions/createUnregisterCatalogEntitiesAction.ts @@ -40,9 +40,9 @@ Once completed, all entities associated with the Location will be deleted from t `, schema: { input: z => - z - .object({ - type: z.union([ + z.object({ + type: z + .union([ z.object({ locationId: z .string() @@ -55,11 +55,11 @@ Once completed, all entities associated with the Location will be deleted from t `URL of the catalog-info.yaml file to unregister for example: https://github.com/backstage/demo/blob/master/catalog-info.yaml`, ), }), - ]), - }) - .describe( - 'The type to the unregister-entity action. Either locationId or locationUrl must be provided.', - ), + ]) + .describe( + 'Identifies the entity to unregister. Provide either locationId or locationUrl.', + ), + }), output: z => z.object({}), }, action: async ({ input: { type }, credentials }) => {