Skip to main content
Glama

check_last_response

Read-only

Evaluates assertions against the last call_operation, soap_call, or rest_call response using real values, letting you test assertions before writing them into a scenario file.

Instructions

Evaluate assertions against the last call_operation / soap_call / rest_call response (real values). Use it to try assertions before writing them into a scenario file.

Input Schema

NameRequiredDescriptionDefault
assertionsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely behavioral context beyond that: it operates only on the most recent call response and uses real (captured) values rather than mocks, which explains the implicit dependency on a prior call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences: the operation and its data source first, the intended workflow second. No filler, and the routing information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the annotations cover safety, so return values need not be explained. However, for a tool whose entire input is a free-form assertion list, the missing assertion syntax and the undefined behavior when no prior call exists leave a real gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the single parameter `assertions` is an array of arbitrary objects with additionalProperties=true, so neither schema nor description says what an assertion object looks like. The description names the concept but supplies no shape, keys, or examples for the one required input.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb/resource pair: evaluate assertions against the last call_operation / soap_call / rest_call response. Naming the three sibling tools whose output it consumes lets an agent immediately tell this apart from scenario-level tools like run_scenario or validate_scenario.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use it to try assertions before writing them into a scenario file" gives a concrete when-to-use and implicitly positions it ahead of the scenario-file siblings. It stops short of an explicit when-not or naming validate_scenario as the follow-on alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.