Skip to main content
Glama

Sample

sample
Read-only

Generate model responses from a base model or checkpoint using the recommended Cookbook renderer for prompt testing and checkpoint comparison.

Instructions

Sample a base model or checkpoint through the model-recommended Cookbook renderer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds only that the renderer defaults to the 'model-recommended Cookbook renderer', a small but real behavioral detail. It omits any mention of generation cost, latency, determinism/seed behavior, or how sampling and num_samples affect output.

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

Conciseness4/5

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

A single, front-loaded sentence with no wasted words. Efficient, though brevity here trades away necessary detail for a tool this complex.

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

Completeness2/5

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

For a nested, multi-field sampling tool with 0% schema coverage, the description leaves most invocation-critical detail unstated. The output schema covers return values, but nothing tells the agent how to populate sampling, num_samples, or the target/renderer selection.

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% on a deeply nested request object. The description hints at 'target' (model or checkpoint) and 'renderer', but says nothing about sampling controls (temperature, top_p, top_k, max_tokens, seed, stop), num_samples, or include_logprobs, leaving most parameters undocumented in both schema and description.

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

Purpose4/5

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

States a specific verb ('Sample') and resource ('a base model or checkpoint'), which is clearer than the tautological title 'Sample'. However, it does not name or distinguish itself from the closest sibling, compute_logprobs, which also runs inference against a model.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance or exclusions. An agent cannot tell from the text when to reach for 'sample' versus compute_logprobs, evaluate, or dataset_render_preview — all of which operate on models/checkpoints.

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