Skip to main content
Glama

Calculate chart rating

calculate_rating
Read-onlyIdempotent

The rating a maimai DX chart gives for an achievement, the achievement a rating needs, and the rating of each rank (S to SSS+). Give a chart (looked up with its current internal level) or an internal level. Achievements are integers in 1/10000 of a percent: 100.7543% is 1007543.

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": "calculate_rating"
  }
}

Input Schema

NameRequiredDescriptionDefault
songNoThe chart: a sheet ID (dsht_…), or a song ID or name with type and difficulty. Or give internal_level.
typeNoType of the chart of song: dx or std
comboNoCombo lamp: fc, fcp (FC+), ap or app (AP+). AP and AP+ add 1 to the rating.
serverNoGame server (jp, intl, usa, cn), whose internal level is used where it differs. Default jp.
difficultyNoDifficulty of the chart of song: basic … remaster
achievementNoAchievement in 1/10000 of a percent, an integer: 100.7543% is 1007543, 99.5% is 995000
target_ratingNoA rating of the chart to reach: the lowest achievement that gives it
internal_levelNoInternal level (譜面定数) instead of a chart: 13.7

Output Schema

NameRequiredDescriptionDefault
chartYesThe chart, when one was given
resultYesThe rating of achievement, when one was given
serverYes
sourceYes
targetYes
dataAsOfYesWhen the catalog was last updated
thresholdsYesThe rating at the lowest achievement of each rank from S to SSS+
internalLevelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed3 schema fields changed
    • removedOutput schema / properties / source / properties / license
      Removed value: -{
      -  "const": "CC BY-NC 4.0",
      -  "type": "string"
      -}
    • removedOutput schema / properties / source / properties / licenseUrl
      Removed value: -{
      -  "type": "string"
      -}
    • changedOutput schema / properties / source / required
      Previous value: -[
      -  "name",
      -  "url",
      -  "license",
      -  "licenseUrl",
      -  "attribution"
      -]New value: +[
      +  "name",
      +  "url",
      +  "attribution"
      +]
  3. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, closed-world, non-destructive behavior, so the safety profile is covered. The description adds real domain behavior beyond that: ratings are resolved against a chart's current internal level, server choice affects which internal level is used, and AP/AP+ lamps add 1 to the result. It does not describe return shape or failure modes, which keeps it at a 4 rather than a 5.

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?

Three short sentences with no filler, and the achievement encoding note is well placed at the end. But the first sentence is a comma-less list of noun phrases that requires re-reading to parse, pushing key information later than it should be. Compactness is good; front-loading and grammar are not.

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 an output schema present, the description need not explain return values, and it correctly delegates parameter detail to the schema. Yet with eight optional parameters and zero required ones, the description leaves the legal combinations underspecified — how target_rating, combo, and server interact with a chart versus a bare internal_level is left to inference. For an eight-parameter calculator that is a meaningful gap.

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 the schema already documents all eight parameters including the 1/10000-of-a-percent achievement encoding. The description restates the achievement integer format (100.7543% = 1007543) and the chart-versus-internal-level alternative, which is useful corroboration but largely duplicative. Baseline 3 applies when the schema does the heavy lifting.

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 enumerates the three computations concretely: the rating a chart gives for an achievement, the achievement required for a target rating, and the rating thresholds for each rank (S to SSS+). That is far more specific than the title alone and tells an agent exactly what the tool returns. It does not differentiate itself from the sibling calculate_best50, and the opening is a noun-phrase list rather than a verb-led statement of purpose, so it stops short of a 5.

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?

It gives positive invocation guidance — supply a chart (sheet ID, or song ID/name plus type and difficulty) or an internal level instead — which tells the agent the two input modes. However, it never says when to prefer calculate_rating over calculate_best50 or get_sheet, nor when to choose an internal level over a chart lookup. Usage is implied by the parameter combinations rather than stated as selection criteria.

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.