Skip to main content
Glama
pdf4me
by pdf4me

convert_json_to_excel

Convert a local UTF-8 JSON file to Excel (XLSX), with configurable worksheet names, formatting, and data conversion options.

Instructions

Convert a local JSON file to Excel (XLSX) using the PDF4me ConvertJsonToExcel API. Provide the file path to UTF-8 JSON. Options: worksheet_name, title formatting, number/date conversion and formats, ignore_null_values, first_row/first_column (1-based), and optional output path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to the JSON file (.json).
first_rowNoFirst data row (1-based).
output_dirNo
date_formatNoDate format string for the API.01/01/2025
first_columnNoFirst data column (1-based).
is_title_boldNoBold title row when supported.
number_formatNoNumber format string for the API.11
worksheet_nameNoTarget worksheet name.Sheet1
output_file_nameNo
ignore_null_valuesNoSkip null values when building the sheet.
is_title_wrap_textNoWrap text in title row when supported.
convert_number_and_dateNoEnable number/date cell conversion.
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits. It mentions the API and lists options, but does not state what happens to the output (e.g., where the Excel file is saved, default output directory), whether it returns a result, or potential side effects. The phrase 'optional output path' hints at output but lacks specifics.

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?

The description is two sentences, front-loaded with the main action and API name, then a compact list of options. Every sentence earns its place; no fluff.

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?

Given there is no output schema and no annotations, the description should explain the output behavior more clearly. It mentions 'optional output path' but does not specify default locations or return values. However, the schema covers most parameter details, and the core purpose is clear. This is a minimum viable description but with gaps.

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?

Schema description coverage is 83%, so the baseline is 3. The description adds grouping and context: it summarizes options like 'worksheet_name, title formatting, number/date conversion and formats, ignore_null_values, first_row/first_column' and clarifies that first_row/first_column are 1-based. This adds meaning beyond the schema.

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 'Convert a local JSON file to Excel (XLSX)' with a specific verb ('Convert') and resource (JSON to Excel). This distinguishes it from sibling tools like convert_pdf_to_excel. The mention of 'PDF4me ConvertJsonToExcel API' adds specificity.

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 description conveys that this tool is for local JSON files, implying use when you have a .json file to convert to Excel. It does not explicitly mention alternatives or exclusions, but the context is clear enough. The phrase 'Provide the file path to UTF-8 JSON' gives actionable guidance.

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/pdf4me/pdf4me-mcp'

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