Skip to main content
Glama
informatics-isi-edu

Deriva MCP Server

Official

get_table_sample_data

Retrieve sample rows from a specified table to test Handlebars templates with real values. Validate template outputs by fetching up to 10 example records, ensuring correct variable usage.

Instructions

Get sample row data from a table for template testing.

Retrieves a few sample rows from the table that can be used to test Handlebars templates. Use this to see real values that would be available in templates.

Args: table_name: Name of the table. limit: Number of sample rows to return (default: 3, max: 10).

Returns: JSON with sample rows and their column values.

Example: get_table_sample_data("Image", 2) -> { "table": "Image", "sample_rows": [ {"RID": "1-ABC", "Filename": "scan001.jpg", "Subject": "2-DEF", ...}, {"RID": "1-XYZ", "Filename": "scan002.jpg", "Subject": "2-DEF", ...} ], "template_test_suggestion": "Try: {{{Filename}}} - Subject: {{{Subject}}}" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
table_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the limit behavior (default 3, max 10), the JSON return format, and includes a detailed example with sample rows and a template suggestion. It implies a read-only operation but does not explicitly describe error handling or side effects.

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?

The description is organized with clear sections (Args, Returns, Example) and is easy to scan. The opening two sentences are somewhat redundant ('Get sample row data...' and 'Retrieves a few sample rows...'), which prevents a perfect conciseness score.

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

Completeness4/5

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

The tool's purpose, parameters, return format, and an illustrative example are all covered. Since the context indicates an output schema exists, the description is not required to exhaustively list return fields. It adequately covers the essential information for correct usage, though it could mention edge cases like invalid table names.

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

Parameters5/5

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

Schema description coverage is 0%, so the description's Args section is essential. It defines table_name as 'Name of the table' and explains limit's default and max, adding a constraint (max 10) not present in the schema. This fully compensates for the schema's lack of parameter descriptions.

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 clearly states the action ('Get sample row data') and the resource ('from a table for template testing'). It further explains it retrieves sample rows for Handlebars templates, which distinguishes it from sibling tools like get_record or preview_table.

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?

The instruction 'Use this to see real values that would be available in templates' provides a clear context for when to invoke this tool. It does not explicitly list alternatives or when-not-to-use scenarios, but the purpose is specific enough to guide selection.

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

Install Server

Other Tools

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/informatics-isi-edu/deriva-mcp'

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