Skip to main content
Glama

Leaklens: benchmark leakage checks

Check tasks for leakage

check_task_leakage
Read-onlyIdempotent

Check whether coding tasks from SWE-bench-style benchmarks leaked their fix. Pass one instance ID for the full evidence, or up to 50 IDs in the queries field, as a JSON array of strings or one string separated by commas, spaces or new lines (a results file's task list), to get back which are flagged. Each task returns its tier, state and agreement, countedInHeadline, a one-clause why, a quoted sentence (disputedQuote when the checks disagreed), the upstream fix commit and its date, and the public task page. flaggedCount and countedInHeadline use the benchmark headline's rule: Tier A where both checks agreed, plus Tier C. Tier B (pointerCount) and Tier A settled by a third check (settledCount) keep state flag but are counted apart, as on the site. tier: A (the issue or comments state the fix); B (the text points to the exact file, function or line to change, without giving the change); C (lines of the gold patch appear in the text); none (no quoted evidence found); pending (not checked yet). state: flag (Tier A, B or C); clear (no quoted evidence and no link to the fix); disputed (the checks disagreed and at least one found something; not a flag, never read as clear); link (no quoted evidence, but the issue text or discussion links the pull request that is the fix); pending (not checked yet). agreement: agreed (both checks agreed); split (the two checks disagreed; the lower reading is shown); tiebreak (a third check settled a disagreement); n/a (Tier C, a string match, needs no second check). Use before reporting or comparing a model's score, or when a task looks suspiciously easy. Takes SWE-bench instance IDs, GitHub issue or PR URLs, or repo#number. Covers SWE-bench Verified and Lite.

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

Input Schema

NameRequiredDescriptionDefault
queryNoOne-task form of queries. Give queries or query, not both.
queriesNoSeveral tasks at once: 1 to 50 identifiers separated by commas, spaces or new lines, or a JSON array of strings (sent as an array, or JSON-encoded in this string). Each is a SWE-bench instance ID (django__django-11099), a GitHub issue or PR URL (https://github.com/django/django/pull/11099), or repo#number (django/django#11099).
benchmarkNoOptional: restrict the match to one benchmark. Display names such as 'SWE-bench Verified' are accepted.

Output Schema

NameRequiredDescriptionDefault
asOfNo
noteNo
foundNo
tasksNo
caveatYes
matchesNo
notFoundNo
linkCountNo
flaggedCountNo
pointerCountNo
settledCountNo
totalMatchesNo
disputedCountNo
asOfByBenchmarkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / queries / description
      Previous value: -"Several tasks at once: 1 to 50 identifiers separated by commas, spaces or new lines, or a JSON array of strings (also accepted). Each is a SWE-bench instance ID (django__django-11099), a GitHub issue or PR URL (https://github.com/django/django/pull/11099), or repo#number (django/django#11099)."New value: +"Several tasks at once: 1 to 50 identifiers separated by commas, spaces or new lines, or a JSON array of strings (sent as an array, or JSON-encoded in this string). Each is a SWE-bench instance ID (django__django-11099), a GitHub issue or PR URL (https://github.com/django/django/pull/11099), or repo#number (django/django#11099)."
  2. Changed6 schema fields changed
    • addedOutput schema / properties / asOf
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / asOfByBenchmark
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / disputedCount
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / linkCount
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / pointerCount
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / settledCount
      Added value: +{
      +  "type": "integer"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / benchmark / description
      Previous value: -"Optional: restrict the match to one benchmark."New value: +"Optional: restrict the match to one benchmark. Display names such as 'SWE-bench Verified' are accepted."
    • changedInput schema / properties / queries / description
      Previous value: -"Several tasks at once: 1 to 50 identifiers separated by commas, spaces or new lines. Each is a SWE-bench instance ID (django__django-11099), a GitHub issue or PR URL (https://github.com/django/django/pull/11099), or repo#number (django/django#11099)."New value: +"Several tasks at once: 1 to 50 identifiers separated by commas, spaces or new lines, or a JSON array of strings (also accepted). Each is a SWE-bench instance ID (django__django-11099), a GitHub issue or PR URL (https://github.com/django/django/pull/11099), or repo#number (django/django#11099)."
    • changedInput schema / properties / queries / maxLength
      Previous value: -10000New value: +10100
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations, which only cover read-only/idempotent/closed-world: it explains the batch cap, the counting rule (Tier A agreement plus Tier C in the headline; B and settled A counted apart), and the non-obvious refusal to read disputed as clear. That last point is exactly the kind of trap an agent would otherwise fall into.

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?

Purpose and modes are front-loaded, but the middle collapses into long semicolon-chained enumerations of tier, state and agreement values that read like documentation prose rather than tool guidance. The content is useful, yet the run-on sentence structure makes it harder to parse than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a real output schema, it still contributes the semantics an agent cannot infer from field names, such as what countedInHeadline, disputedQuote and settledCount actually mean. Edge states (pending, link, disputed) are all defined, leaving nothing an agent needs to interpret a result correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: query yields full evidence for one task while queries yields a flagged/not-flagged roll-up for the rest, and it accepts a results file's task list. It reinforces the accepted ID formats already documented in the schema, which is redundant but harmless.

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?

Opens with a specific verb and resource: "Check whether coding tasks from SWE-bench-style benchmarks leaked their fix," and scopes the coverage to SWE-bench Verified and Lite. It never names the sibling benchmark_leakage_summary, so the agent must infer the per-task vs aggregate split from the output description alone.

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?

"Use before reporting or comparing a model's score, or when a task looks suspiciously easy" gives explicit trigger conditions, and the description states the single-ID vs up-to-50-ID modes with what each returns. There are no explicit exclusions or named alternatives, which keeps it short of a 5.

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