Skip to main content
Glama
xTey-wu

openEuler MCP Toolkit

by xTey-wu

simulate_page_replacement

Read-onlyIdempotent

Simulate FIFO, LRU, CLOCK, or OPT page replacement on a reference string to compute page faults and evaluate memory management strategies.

Instructions

PURE PAGE-REPLACEMENT SIMULATION using FIFO/LRU/CLOCK/OPT.

Use only for a page reference string. Not for disk block allocation, filesystem scans, or live memory. Required JSON keys: reference_string and algorithm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
algorithmYesRequired page algorithm: FIFO, LRU, CLOCK, or OPT
frame_countNoNumber of simulated page frames; default 4
reference_stringYesRequired ordered page-reference sequence, for example [1,2,3,1,4]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hitsYes
stepsYes
faultsYes
summaryYes
hit_rateYes
algorithmYes
fault_rateYes
frame_countYes
reference_lengthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description's 'PURE' framing reinforces that this is a side-effect-free simulation and rules out live-memory effects, but adds no further behavioral detail (no scale limits, no runtime expectations).

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

Conciseness4/5

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

Front-loaded with the core identity, then exclusions, then required inputs — each sentence serves a purpose. The 'Required JSON keys' line is mildly redundant with the schema's required array and the line breaks make it slightly choppier than necessary.

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?

With an output schema present, return values need no explanation, and the algorithm set, exclusions, and required inputs are all covered. Eligibility constraints such as maximum reference-string or frame limits are left entirely to the schema, which is acceptable but leaves little margin.

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%, and each parameter (algorithm, frame_count default/min/max, reference_string with example) is fully documented in the schema. The description only restates the two required keys already marked required in the schema, adding no new semantics, so the baseline 3 applies.

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?

States a specific verb and resource ('PURE PAGE-REPLACEMENT SIMULATION') and enumerates the four supported algorithms (FIFO/LRU/CLOCK/OPT). It also explicitly carves out adjacent domains ('not for disk block allocation'), which separates it from the sibling simulate_disk_allocation without requiring schema inspection.

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

Usage Guidelines4/5

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

Gives a clear usage condition ('Use only for a page reference string') and explicit exclusions ('not for disk block allocation, filesystem scans, or live memory'), which is strong routing guidance. It stops short of naming a specific sibling tool to use instead, so it is not quite a 5.

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