Koskamo

Validate gRPC response status and metadata

Verification that the gRPC request returned a successful status code (0) and contains expected metadata or trailers.

How it works

Read-onlySoftware development

The agent sends a gRPC request using the Postman server. It then executes JavaScript test assertions to check the response status code, ensuring it equals 0 for success. Additionally, it verifies the presence and values of specific response metadata (e.g., 'content-type') and trailers (e.g., 'grpc-status-details-bin') using the pm.response object properties available for gRPC requests.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Validate gRPC response status and metadata
Send a gRPC request to the configured endpoint. Then, run the following test assertions to validate the response: 1. Assert the status code is 0. 2. Assert that the 'content-type' metadata is present and equals 'application/grpc'. 3. Assert that the 'grpc-status-details-bin' trailer is present. Use the pm.response object properties specific to gRPC.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

You can use the statusCode property available over pm.response to test the status code of the response.
Write tests for gRPC requests using JavaScript assertions in Postman | Postman Docs

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.