Skip to main content
Glama

verify_mock

Verify mock API call counts to ensure applications make correct API calls. Check actual invocation details against expected, minimum, or maximum parameters.

Instructions

Check whether a mock was called the expected number of times. Returns pass/fail status, actual call count, and invocation details. Optionally assert with expected_count, at_least, or at_most parameters. Use this to assert your application is making the right API calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
at_leastNoMinimum invocations expected
at_mostNoMaximum invocations expected
expected_countNoExpected number of invocations (exact match)
idYesMock ID to verify

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/getmockd/mockd'

If you have feedback or need assistance with the MCP directory API, please join our Discord server