Skip to main content
Glama

italy-parliament-mcp-server

Query parliamentary SPARQL

itparl_query_sparql
Read-only

Run a read-only SELECT or ASK against one chamber’s official RDF endpoint. See itparl_list_reference with query_constraints for supported syntax and prefixes for predeclared namespaces. SELECT defaults to 100 rows with a 1,000-row cap on the limit argument. Use an explicit LIMIT up to 10,000 when needed. The response includes the canonical query submitted to the source.

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": {
      "chamber": "<chamber>",
      "query": "<query>"
    },
    "name": "itparl_query_sparql"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoServer-added SELECT limit, default 100 and capped at 1,000. Omit for ASK or when the query has an explicit LIMIT.
queryYesA local SELECT or ASK query in the chamber’s supported SPARQL subset.
chamberYesOfficial RDF endpoint to query.

Output Schema

NameRequiredDescriptionDefault
formNoSPARQL query form.
rowsNoSELECT rows in source order, keyed by bound variable name.
errorNoPresent when the call failed. Absent on success.
booleanNoASK answer.
noticesNoInformation about applied query constraints.
sourcesNoOfficial endpoint and source attribution.
row_countNoNumber of SELECT rows returned.
variablesNoSELECT variable names in source order.
elapsed_msNoElapsed time for the upstream query in milliseconds.
totalCountNoComplete SELECT result count before the top-level LIMIT, available when OFFSET is absent or zero and the response falls below both the effective LIMIT and the source ceiling.
executed_queryNoExact canonical SPARQL text submitted to the chamber.
possibly_truncatedNoWhether SELECT reached the endpoint’s 10,000-row response ceiling.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description goes further by disclosing the 100-row default, the 1,000-row cap on the limit argument, the 10,000 ceiling for explicit LIMIT clauses, and that the canonical submitted query is echoed back. It stops short of covering error behavior or endpoint-permission requirements, but the added context is substantial.

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?

Four front-loaded sentences with no filler: capability, syntax reference, row-limit mechanics, then return content. Each sentence contributes something an agent needs before calling.

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 and full schema description coverage, the description only needs to supply behavioral framing, which it largely does. The remaining gap is failure modes and the practical limit of the supported SPARQL subset beyond a pointer to itparl_list_reference.

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 already 100%, so the baseline is 3; the description adds cross-parameter meaning the schema cannot express, namely the interaction between the limit argument and an explicit LIMIT clause, and when limit should be omitted entirely. It slightly restates the schema's default/cap figures, but the ASK/omit guidance is genuine added value.

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 (run) and resource (read-only SELECT or ASK against one chamber's official RDF endpoint), and scopes it to a single chamber. This clearly separates it from the sibling itparl_search_* and itparl_get_* tools, which cover fixed query shapes rather than arbitrary SPARQL.

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 concrete when-to guidance for the limit argument (omit for ASK or when the query carries an explicit LIMIT) and routes agents to itparl_list_reference for supported syntax and prefixes. It does not, however, say when an agent should prefer the purpose-built search siblings over hand-written SPARQL, leaving that trade-off to inference.

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.