Skip to main content
Glama
PubLedge MCP Server

PubLedge MCP Server

Official
by snapsynapse

fetch_by_url

Retrieves a bundled legal instrument record from its canonical URL or path, including source and editorial fields, without fetching over the network.

Instructions

Look up a bundled legal instrument by its canonical URL (e.g. https://publedge.org/us/utah/oaip/rma/2025-001/ or /us/utah/oaip/rma/2025-001/). Returns the same complete record as get_legal-instrument, including source and editorial fields where recorded. Does not fetch the URL over the network.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "fetch_by_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesCanonical hierarchical URL or path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.5

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose a genuinely non-obvious trait: it does not fetch over the network, so it cannot surface unpublished or remote content. It also defines the return payload (complete record with source and editorial fields). It omits not-found/error behavior and any permission or rate constraints.

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?

Three short sentences, front-loaded with what it does, followed by return shape and the network caveat. Nothing is redundant and every sentence carries information an agent needs.

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?

For a one-parameter lookup with no annotations or output schema, the description covers purpose, accepted input forms, return content, and the offline-lookup constraint. The main remaining gap is failure behavior for unknown or malformed URLs, and explicit routing versus get_legal-instrument.

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% and there is a single parameter, so the baseline would be a 3-4; the description exceeds it by showing both an absolute URL and a relative path as valid inputs, which the schema's "Canonical hierarchical URL or path" only implies. It does not clarify normalization rules or whether trailing slashes/case matter.

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 ("Look up") and resource ("bundled legal instrument") and names the keying mechanism (canonical URL/path), with two concrete example forms. It also distinguishes itself from get_legal-instrument by noting the identical record payload, so an agent knows the difference is the lookup key, not the result.

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 only implied: the URL-based key suggests 'use this when you already have a canonical URL,' and citing get_legal-instrument hints the two are interchangeable. However, it never states explicitly when to prefer this over get_legal-instrument (e.g., by ID) or what to do when only an ID is known.

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