Skip to main content
Glama
bpamiri

u2-mcp

by bpamiri

export_to_json

Export records from a Universe file to JSON format. Specify file name and record IDs to convert data for analysis or integration.

Instructions

Export records from a Universe file to JSON format.

Reads the specified records and returns them as a JSON string. Useful for data analysis and integration with other tools.

Args: file_name: Name of the Universe file record_ids: List of record IDs to export expand_mv: If True, expand multivalues into separate objects. If False (default), preserve multivalue arrays.

Returns: Dictionary containing: - status: success or error - format: "json" - record_count: Number of records exported - data: JSON string of the exported records

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expand_mvNo
file_nameYes
record_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

The description states it 'reads' records and returns JSON, implying a read-only operation. With no annotations provided, the description does not explicitly disclose whether this is a safe, non-destructive operation or any authorization requirements.

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 well-structured with a short paragraph followed by Args and Returns sections. It is concise but could be slightly tighter; the Returns section is detailed but adds value.

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?

Given 3 parameters and an existing output schema, the description covers parameters, return values, and use case. It lacks mention of prerequisites like a connection, but overall it is fairly complete.

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

Parameters4/5

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

Despite 0% schema description coverage, the description includes an Args section that explains each parameter: file_name, record_ids, and expand_mv (with behavior for True/False). This adds meaningful information beyond the schema titles.

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 tool exports records from a Universe file to JSON format. The verb 'export' and resource 'records to JSON' are specific, and it distinguishes from sibling tools like export_to_csv and read_record.

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

Usage Guidelines3/5

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

The description mentions the tool is useful for data analysis and integration, providing some context. However, it does not explicitly state when to use this tool over alternatives (e.g., export_to_csv, read_record) nor when not to use it.

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/bpamiri/u2-mcp'

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