Skip to main content
Glama
pitchmuc

Knowledge Graph MCP Server

by pitchmuc

get_graph_schema

Read-only

Inspect the knowledge graph's classes, properties, and namespace before writing SPARQL queries or checking account and contact fields.

Instructions

Describe the knowledge graph's classes, properties, and namespace.

Call this before writing a raw SPARQL query with run_sparql_query, or to understand what fields are available on accounts and contacts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is fully covered without the description. The description adds the sequencing advice (call before run_sparql_query), which is more usage than behavior, and says nothing about caching, cost, or stability of the returned schema. Adequate but not rich beyond the annotations.

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?

Two sentences, front-loaded with the core purpose and followed by the trigger condition. No filler, no repetition of the tool name or title.

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 no parameters and an output schema present, the description needs only to say what is returned conceptually and when to call it, which it does. It could still note the graph's scope or whether multiple schemas exist, but nothing essential is missing.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline of 4 applies. No parameter meaning is lost because no parameters exist.

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 (describe) and resource (the knowledge graph's classes, properties, namespace), so the agent knows exactly what comes back. It also implicitly separates itself from data-returning siblings like get_account or search_contacts, which return instances rather than 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 names the sibling tool run_sparql_query and the condition that should trigger this call first. It also volunteers a second use case (understanding account/contact fields), which covers the main reasons an agent would reach for this tool.

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