New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

theory_validate_ranges

Check every note in a Score JSON against its instrument's standard practical range. Returns warnings for out-of-range pitches with measure, beat, MIDI number, and severity. WHEN TO USE: after parsing a MusicXML file with theory_parse_xml and before analysis — catch unplayable or extreme notes ear...

SERVERGradus Notation SOURCE@gradusmusic/notation-mcp
Low RISK CLASS
Category Read
Parameters 52 required
Recommended Allowedsee the rule below
Registry record Grade C, identity unverified Pull the record →

This record as markdown: /tools/com-gradusmusic-notation/theory-validate-ranges.md

What theory_validate_ranges does on Gradus Notation

AI agents call theory_validate_ranges to retrieve information from Gradus Notation without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

ParameterTypeRequiredDescription
notes array Yes Flat array of Note objects from a Score.
parts array Yes Array of PartInfo objects ({ id, name }).
measureCount integer
keySignatures array
timeSignatures array

Parameters from the server's own tool schema.

Why theory_validate_ranges is rated Low

This is purely an analytical/validation tool that inspects data (a Score JSON) and returns informational warnings about range compliance. It has no side effects on the score or any external system. It reads and reports; it does not write, execute arbitrary code, delete data, or commit financial transactions.

From the tool's definition Tool checks/validates notes against ranges and returns warnings; description states 'Check every note in a Score JSON against its instrument's standard practical range. Returns warnings for out-of-range pitches'.

Risk signalsBulk/mass operation — affects multiple targets

Questions about theory_validate_ranges

What does the theory_validate_ranges tool do? +

Check every note in a Score JSON against its instrument's standard practical range. Returns warnings for out-of-range pitches with measure, beat, MIDI number, and severity. WHEN TO USE: after parsing a MusicXML file with theory_parse_xml and before analysis — catch unplayable or extreme notes early; when generating or editing a score programmatically and want to verify instrument idiomatic range; when a student submits a composition for critique and range errors should be flagged. SEVERITY LEVELS: "error" = note is > 1 semitone outside the practical range; "warn" = note is at the boundary (within 1 semitone). SUPPORTED INSTRUMENTS (partial name match, case-insensitive): Violin, Viola, Cello, Double Bass, Harp, Flute, Piccolo, Oboe, English Horn, Clarinet, Bass Clarinet, Bassoon, Contrabassoon, Soprano/Alto/Tenor/Baritone Sax, Horn, Trumpet, Trombone, Tuba, Piano, Organ, Marimba, Xylophone, Vibraphone, Glockenspiel, Timpani, Soprano/Mezzo/Alto/Tenor/Baritone/Bass (voice). INPUT: a maestroAnalyst Score object — obtain one by calling theory_parse_xml with MusicXML text. OUTPUT: { ok, requestId, warnings: [{ measure, beat, pitch, midi, partId, instrumentName, min, max, severity }], attribution }. Empty warnings array means all notes are in range. EXAMPLE: pass a Score with a Violin part containing a note at A7 (MIDI 105) — it will return severity "error" since violin tops out around B7/MIDI 107 but A7 is beyond practical range. It is categorised as a Read tool in the Gradus Notation MCP Server, which means it retrieves data without modifying state.

What parameters does theory_validate_ranges accept? +

theory_validate_ranges accepts 5 parameters: notes, parts, measureCount, keySignatures, timeSignatures. Required: notes, parts. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on theory_validate_ranges? +

Register the Gradus Notation MCP server in PolicyLayer and add a rule for theory_validate_ranges: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Gradus Notation. Nothing to install.

What risk level is theory_validate_ranges? +

theory_validate_ranges is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit theory_validate_ranges? +

Yes. Add a rate_limit block to the theory_validate_ranges rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block theory_validate_ranges completely? +

Set action: deny in the PolicyLayer policy for theory_validate_ranges. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides theory_validate_ranges? +

theory_validate_ranges is provided by the Gradus Notation MCP server (@gradusmusic/notation-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Gradus Notation, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Gradus Notation's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.