Skip to main content
Glama

nope-mcp — Open Educational Resources search

Get Educational Resource

get_resource
Read-onlyIdempotent

Retrieve a single piece of content by naddr (preferred — pass a search_content result's naddr), d-tag identifier, or event ID. naddrs of ANY content type from search_content work (resources, articles, wikis, projects, measures, publications); non-resource kinds return the same shape as their search results. Bare identifier/eventId lookups (no naddr) always resolve the full educational-resource metadata (kind 30142), including creator/publisher and educational properties. get_resource is never license-filtered: a learning resource carries license ({id, label}, or null when unlicensed) and accessLevel ("full" for Creative Commons, Public Domain and free software/documentation licenses, and DINI-AG-KIM license types that resolve to one of these; "metadata-only" otherwise). Only accessLevel:"full" resources have indexed fulltext, snippets and passages — present a "metadata-only" resource by its title, description, license and link, never quoted beyond its metadata, and always name the license and the creator/publisher. openLicense is kept for compatibility (deprecated; use accessLevel). When presenting the resource, render a markdown link the user can open: prefer its sourcePage (the original source page); fall back to url (the edufeed viewer) only when sourcePage is absent.

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

Input Schema

NameRequiredDescriptionDefault
naddrNoNIP-19 naddr from a search result — the preferred handoff to fetch full metadata.
authorNoAuthor pubkey (hex) to disambiguate if multiple resources share the same identifier
relaysNoRestrict the lookup to specific relays — pass the relays a search found the result on. Only relays returned by list_relays (default or extra) are accepted, by full URL or short name (e.g. "oersi"). Default: the naddr's relay hints that list_relays knows, else the default relay set.
eventIdNoNostr event ID (hex) for direct lookup. Alternative to identifier.
languageNoPreferred language for labels (default: "de")de
identifierNoResource identifier (d-tag). Use this for stable lookups.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. 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"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • changedInput schema / properties / relays / description
      Previous value: -"Restrict the lookup to specific relays — pass the relays a search found the result on. Only relays returned by list_relays (default or extra) are accepted, by full URL or short name (e.g. \"oersi\"). Default: the default relay set."New value: +"Restrict the lookup to specific relays — pass the relays a search found the result on. Only relays returned by list_relays (default or extra) are accepted, by full URL or short name (e.g. \"oersi\"). Default: the naddr's relay hints that list_relays knows, else the default relay set."
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add behavior, and it does: no license filtering, accessLevel "full" vs "metadata-only" determines whether fulltext/snippets/passages exist, and metadata-only items must not be quoted. That is genuinely useful pre-call context. It stops short of error behavior (what happens when no relay matches, or when a bare identifier matches multiple resources and author is needed), which keeps it off 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?

Front-loaded and dense, with no filler sentences, but it is a single long paragraph that mixes retrieval semantics, license policy, and presentation instructions, and it restates the metadata-only rule several times ("never quoted beyond its metadata", "name the license and the creator/publisher", plus the deprecated openLicense note). The rendering guidance (markdown link, sourcePage vs url fallback) is useful but arguably belongs in a separate section rather than the same block.

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?

There is no output schema, so the description carries the return-shape burden and does: it names license ({id, label} or null), accessLevel values, indexed fulltext availability, and the sourcePage/url presentation fields. For a read tool with six optional params this is complete enough to call and to interpret the 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 baseline is 3; the description earns above that by explaining cross-parameter resolution behavior — naddr works for any content kind and preserves that kind's shape, while bare identifier/eventId lookups always resolve kind 30142 with creator/publisher metadata. That meaning is not derivable from the per-parameter schema text. It does not clarify how author interacts with identifier or when language applies to labels.

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?

Opens with a specific verb+resource ("Retrieve a single piece of content") and immediately names the three lookup keys, plus it distinguishes itself from the search siblings by framing naddr as "a search_content result's naddr" — i.e., search first, fetch here. An agent can tell exactly what this returns without opening the schema.

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

Usage Guidelines5/5

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

Explicitly ranks the alternatives (naddr "preferred", d-tag "for stable lookups", eventId as "alternative to identifier") and explains the relay constraint — only relays from list_relays, by URL or short name — with a stated default. It also tells the agent when naddrs of non-resource kinds are acceptable, removing the main selection ambiguity.

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.