Skip to main content
Glama

Generate Layout Proposals

generate_recipe

Analyze a sample file and generate layout proposals. Accepts images, PDF, CSV, Excel (xlsx), Markdown, and plain text (e.g. a layout specification document). AI automatically detects the document type and suggests appropriate field definitions. Requires Standard plan or higher. Daily limit: 50 uses.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image_url": "<image_url>"
    },
    "name": "generate_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional user comment to guide AI analysis (e.g., 'I want to extract invoice line items', 'Focus on product names and prices'). Max 500 characters.
image_urlYesURL of the file to analyze (HTTPS). Supports image/PDF samples and CSV/Excel/Markdown/plain-text documents. Only single file URLs are supported; folder URLs are not accepted.
field_languageNoLanguage for generated field descriptions and layout names. Supported: ja (Japanese, default), en (English), es (Spanish), fr (French), zh (Simplified Chinese).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare a non-read-only, open-world, non-idempotent operation, and the description adds genuinely useful context beyond them: required plan tier, a 50-use daily limit, and AI-driven automatic document-type detection. What is missing is whether proposals are persisted or merely returned, and whether repeated calls on the same file consume quota — relevant for a non-idempotent tool.

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?

Four short sentences, front-loaded with the core action, then formats, then constraints. No filler and no repetition of annotation-provided facts beyond what helps the caller decide.

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?

With no output schema, the description omits the most important missing piece: what a 'layout proposal' actually contains and how the agent should use it (e.g. feed it to create_layout_from_recipe). Input coverage, format support, plan requirements, and quota are all adequately covered, so the gap is limited to the return/next-step story.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters are already fully documented, including formats, enum languages, and the comment length cap. The description largely restates the image_url format list and adds only the clarifying example that a plain-text file may be 'a layout specification document'; baseline 3 is appropriate.

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+resource ('Analyze a sample file and generate layout proposals') and enumerates accepted input types, so the agent knows exactly what the tool produces. It does not explicitly distinguish itself from the sibling 'create_layout_from_recipe' or 'create_layout', so the boundary between 'proposals' and actual layout creation must be inferred.

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?

Usage context is implied rather than stated: the tool is for bootstrapping layouts from a sample file, and the plan/quota constraints ('Standard plan or higher', '50 uses/day') do frame when the call will succeed. However, no alternative tool is named and there is no when-not guidance, e.g. that create_layout_from_recipe is the follow-up step once a proposal is chosen.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources