Skip to main content
Glama

midnight-get-latest-syntax

Read-only

Obtain authoritative Compact syntax reference with correct patterns, common mistakes, and type casting rules to prevent hallucination before writing contracts.

Instructions

🚨 CALL THIS BEFORE GENERATING ANY COMPACT CODE! Get the authoritative Compact syntax reference. Prevents hallucination by providing:

  • Correct syntax patterns (Compact is NOT TypeScript!)

  • commonMistakes array with wrong→correct mappings

  • Type casting rules (Uint→Bytes needs two casts)

  • disclose() requirements for circuit params

  • Map.lookup()/Set.member() ARE available in circuits

ALWAYS check this reference before writing Compact contracts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoRepository name (default: 'compact')
Behavior4/5

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

Annotations already indicate readOnlyHint=true and openWorldHint=true. Description adds behavioral context: it prevents hallucination, provides authoritative syntax, and lists specific outputs. No contradictions.

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

Conciseness3/5

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

Description is front-loaded with a strong call to action but is somewhat verbose with emojis and capital letters. Bullet points add structure, but some content could be more concise.

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?

No output schema, but description enumerates what the tool provides (syntax patterns, commonMistakes, type casting rules, etc.), which is sufficiently complete for a reference tool.

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 coverage is 100% as the single optional param 'repo' is described with default. Description does not add any additional 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?

Description clearly states the tool provides the authoritative Compact syntax reference, with specific items like syntax patterns, commonMistakes, and type casting rules. Distinguishes from siblings like midnight-compare-syntax by focusing on latest authoritative reference.

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

Usage Guidelines5/5

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

Explicitly instructs to 'CALL THIS BEFORE GENERATING ANY COMPACT CODE!' and 'ALWAYS check this reference before writing Compact contracts.' Provides clear when-to-use guidance with no ambiguity.

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/Olanetsoft/midnight-mcp'

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