Skip to main content
Glama

Affine Earth Math Court Remote

code_ir_equiv

Read-onlyIdempotent

Code Court LLVM IR constant-pool equivalence verifier: compares two textual .ll files (left_file and right_file, or files array) by the exact multiset digest of their scalar and vector IR constants. Returns WIN when equal or CODE_IR_DIVERGED naming the first unmatched value.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "code_ir_equiv"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
left_irNo
right_irNo
left_fileNo
right_fileNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / properties / files / description
      Removed value: -"Exactly two whole files when left_file/right_file are not used. The payload IS the files. e.g. [{\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"},{\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}]"
    • removedInput schema / properties / files / items / properties / content / description
      Removed value: -"entire file body, not a fragment, e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / files / items / properties / path / description
      Removed value: -"file path including extension, e.g. left.ll"
    • removedInput schema / properties / left_file / description
      Removed value: -"Whole source file of the first implementation. The payload IS the file. e.g. {\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • removedInput schema / properties / left_file / properties / content / description
      Removed value: -"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / left_file / properties / path / description
      Removed value: -"file path including extension. e.g. left.ll"
    • removedInput schema / properties / left_ir / description
      Removed value: -"LEGACY fragment of the first implementation. Still accepted and lifted into a whole file with a defaulted path; prefer left_file. e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / right_file / description
      Removed value: -"Whole source file of the second implementation. The payload IS the file. e.g. {\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • removedInput schema / properties / right_file / properties / content / description
      Removed value: -"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / right_file / properties / path / description
      Removed value: -"file path including extension. e.g. right.ll"
    • removedInput schema / properties / right_ir / description
      Removed value: -"LEGACY fragment of the second implementation. Still accepted and lifted into a whole file with a defaulted path; prefer right_file. e.g. define i32 @f() { ret i32 143 }"
  2. Changed11 schema fields changed
    • addedInput schema / properties / files / description
      Added value: +"Exactly two whole files when left_file/right_file are not used. The payload IS the files. e.g. [{\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"},{\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}]"
    • addedInput schema / properties / files / items / properties / content / description
      Added value: +"entire file body, not a fragment, e.g. define i32 @f() { ret i32 143 }"
    • addedInput schema / properties / files / items / properties / path / description
      Added value: +"file path including extension, e.g. left.ll"
    • addedInput schema / properties / left_file / description
      Added value: +"Whole source file of the first implementation. The payload IS the file. e.g. {\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • addedInput schema / properties / left_file / properties / content / description
      Added value: +"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • addedInput schema / properties / left_file / properties / path / description
      Added value: +"file path including extension. e.g. left.ll"
    • addedInput schema / properties / left_ir / description
      Added value: +"LEGACY fragment of the first implementation. Still accepted and lifted into a whole file with a defaulted path; prefer left_file. e.g. define i32 @f() { ret i32 143 }"
    • addedInput schema / properties / right_file / description
      Added value: +"Whole source file of the second implementation. The payload IS the file. e.g. {\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • addedInput schema / properties / right_file / properties / content / description
      Added value: +"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • addedInput schema / properties / right_file / properties / path / description
      Added value: +"file path including extension. e.g. right.ll"
    • addedInput schema / properties / right_ir / description
      Added value: +"LEGACY fragment of the second implementation. Still accepted and lifted into a whole file with a defaulted path; prefer right_file. e.g. define i32 @f() { ret i32 143 }"
  3. Changed11 schema fields changed
    • removedInput schema / properties / files / description
      Removed value: -"Exactly two whole files when left_file/right_file are not used. The payload IS the files. e.g. [{\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"},{\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}]"
    • removedInput schema / properties / files / items / properties / content / description
      Removed value: -"entire file body, not a fragment, e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / files / items / properties / path / description
      Removed value: -"file path including extension, e.g. left.ll"
    • removedInput schema / properties / left_file / description
      Removed value: -"Whole source file of the first implementation. The payload IS the file. e.g. {\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • removedInput schema / properties / left_file / properties / content / description
      Removed value: -"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / left_file / properties / path / description
      Removed value: -"file path including extension. e.g. left.ll"
    • removedInput schema / properties / left_ir / description
      Removed value: -"LEGACY fragment of the first implementation. Still accepted and lifted into a whole file with a defaulted path; prefer left_file. e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / right_file / description
      Removed value: -"Whole source file of the second implementation. The payload IS the file. e.g. {\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • removedInput schema / properties / right_file / properties / content / description
      Removed value: -"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • removedInput schema / properties / right_file / properties / path / description
      Removed value: -"file path including extension. e.g. right.ll"
    • removedInput schema / properties / right_ir / description
      Removed value: -"LEGACY fragment of the second implementation. Still accepted and lifted into a whole file with a defaulted path; prefer right_file. e.g. define i32 @f() { ret i32 143 }"
  4. Added
  5. Removed
  6. Changed11 schema fields changed
    • changedInput schema / properties / files / description
      Previous value: -"Exactly two whole files when left_file/right_file are not used. The payload IS the files."New value: +"Exactly two whole files when left_file/right_file are not used. The payload IS the files. e.g. [{\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"},{\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}]"
    • addedInput schema / properties / files / items / properties / content / description
      Added value: +"entire file body, not a fragment, e.g. define i32 @f() { ret i32 143 }"
    • addedInput schema / properties / files / items / properties / path / description
      Added value: +"file path including extension, e.g. left.ll"
    • changedInput schema / properties / left_file / description
      Previous value: -"Whole source file of the first implementation. The payload IS the file."New value: +"Whole source file of the first implementation. The payload IS the file. e.g. {\"path\":\"left.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • changedInput schema / properties / left_file / properties / content / description
      Previous value: -"entire file body, not a fragment"New value: +"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • changedInput schema / properties / left_file / properties / path / description
      Previous value: -"file path including extension"New value: +"file path including extension. e.g. left.ll"
    • changedInput schema / properties / left_ir / description
      Previous value: -"LEGACY fragment of the first implementation. Still accepted and lifted into a whole file with a defaulted path; prefer left_file."New value: +"LEGACY fragment of the first implementation. Still accepted and lifted into a whole file with a defaulted path; prefer left_file. e.g. define i32 @f() { ret i32 143 }"
    • changedInput schema / properties / right_file / description
      Previous value: -"Whole source file of the second implementation. The payload IS the file."New value: +"Whole source file of the second implementation. The payload IS the file. e.g. {\"path\":\"right.ll\",\"content\":\"define i32 @f() { ret i32 143 }\"}"
    • changedInput schema / properties / right_file / properties / content / description
      Previous value: -"entire file body, not a fragment"New value: +"entire file body, not a fragment. e.g. define i32 @f() { ret i32 143 }"
    • changedInput schema / properties / right_file / properties / path / description
      Previous value: -"file path including extension"New value: +"file path including extension. e.g. right.ll"
    • changedInput schema / properties / right_ir / description
      Previous value: -"LEGACY fragment of the second implementation. Still accepted and lifted into a whole file with a defaulted path; prefer right_file."New value: +"LEGACY fragment of the second implementation. Still accepted and lifted into a whole file with a defaulted path; prefer right_file. e.g. define i32 @f() { ret i32 143 }"
  7. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior, so the description correctly focuses on comparison semantics. It adds valuable scope (scalar and vector IR constants only) and return behavior (WIN on equality; CODE_IR_DIVERGED naming the first unmatched value). It could say more about parsing failures or non-constant differences, but the added context is substantial.

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?

Two tight sentences, front-loaded with purpose and then return behavior. No filler or redundant restatement.

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?

The description covers purpose, comparison basis, and return codes, which is useful because there is no output schema. It remains incomplete for a five-parameter tool with nested objects and zero schema descriptions because the inline-IR parameters and input-mode combinations are not explained.

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?

With 0% schema description coverage, the description does some of the schema's work by naming left_file, right_file, and files array as textual .ll file inputs. However, it omits left_ir and right_ir entirely and does not clarify whether the five optional inputs are alternatives or can be combined, leaving invocation ambiguity.

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?

The description uses a specific verb ('compares') and resource ('two textual .ll files' / constant-pool equivalence) and states the comparison basis. It is clear what the tool does, though it does not explicitly contrast itself with sibling verifiers such as ast_code_verifier.

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 is implied by the comparison operation and the mention of left_file/right_file or files array, but there is no explicit when-to-use/when-not-to-use guidance, no prerequisites, and no named alternative. An agent must infer that this is for constant-pool equivalence rather than full AST or semantic verification.

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