Skip to main content
Glama

execute_query

Run a Datalog query against Logseq to fetch matching data. Supports optional parameters for dynamic filtering.

Instructions

Execute a Datalog query in Logseq

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe Datalog query to execute
inputsNoOptional query inputs/parameters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the action without revealing whether the tool is read-only, what side effects it may have, how errors are handled, or any limits on query execution. The agent is left entirely in the dark about the operation's behavior beyond the literal verb.

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?

A single, front-loaded sentence communicates the core purpose with zero excess words. Every element is relevant, and there is no redundancy with the schema.

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

Completeness2/5

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

With no annotations and no output schema, the description is too sparse to be fully contextual. It does not explain what the query returns, whether it mutates state, or how inputs are used. For a simple two-parameter tool this is a notable but not fatal gap.

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

Parameters3/5

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

Schema description coverage is 100%, so the input schema already documents both `query` and `inputs`. The description adds no additional meaning about parameter formats, defaults, or relationships, but it does not need to because the schema covers everything.

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?

The description names a specific verb ('Execute'), a specific resource ('a Datalog query in Logseq'), and is clearly distinguishable from the sibling tools, which are all page/block CRUD operations. An agent can immediately tell this is the querying tool without inspecting schemas.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites. It does not mention that this is the right choice for read-only analysis or that it differs from page/block manipulation. The only context is implied by the tool's name and purpose.

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