Skip to main content
Glama
jonmmease

jons-mcp-java

by jonmmease

type_definition

Find the type definition for a symbol in your Java code by providing its file path, line, and character position.

Instructions

Navigate to the type definition of a symbol at the given position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
lineYes
characterYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed5 schema fields changedv0.0.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "result": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "description": "Result returned by definition, type_definition, and implementation.",
      +        "properties": {
      +          "items": {
      +            "items": {
      +              "additionalProperties": false,
      +              "description": "Normalized target returned by navigation tools.",
      +              "properties": {
      +                "fullRange": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "description": "One-based source range returned by public tools.",
      +                      "properties": {
      +                        "end": {
      +                          "anyOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "description": "One-based source position returned by public tools.",
      +                              "properties": {
      +                                "character": {
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                },
      +                                "line": {
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "line",
      +                                "character"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "type": "null"
      +                            }
      +                          ],
      +                          "default": null
      +                        },
      +                        "start": {
      +                          "additionalProperties": false,
      +                          "description": "One-based source position returned by public tools.",
      +                          "properties": {
      +                            "character": {
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            },
      +                            "line": {
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "line",
      +                            "character"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      },
      +                      "required": [
      +                        "start"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "additionalProperties": true,
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "inWorkspace": {
      +                  "type": "boolean"
      +                },
      +                "originRange": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "description": "One-based source range returned by public tools.",
      +                      "properties": {
      +                        "end": {
      +                          "anyOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "description": "One-based source position returned by public tools.",
      +                              "properties": {
      +                                "character": {
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                },
      +                                "line": {
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "line",
      +                                "character"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "type": "null"
      +                            }
      +                          ],
      +                          "default": null
      +                        },
      +                        "start": {
      +                          "additionalProperties": false,
      +                          "description": "One-based source position returned by public tools.",
      +                          "properties": {
      +                            "character": {
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            },
      +                            "line": {
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "line",
      +                            "character"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      },
      +                      "required": [
      +                        "start"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "additionalProperties": true,
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "range": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "description": "One-based source range returned by public tools.",
      +                      "properties": {
      +                        "end": {
      +                          "anyOf": [
      +                            {
      +                              "additionalProperties": false,
      +                              "description": "One-based source position returned by public tools.",
      +                              "properties": {
      +                                "character": {
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                },
      +                                "line": {
      +                                  "minimum": 1,
      +                                  "type": "integer"
      +                                }
      +                              },
      +                              "required": [
      +                                "line",
      +                                "character"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            {
      +                              "type": "null"
      +                            }
      +                          ],
      +                          "default": null
      +                        },
      +                        "start": {
      +                          "additionalProperties": false,
      +                          "description": "One-based source position returned by public tools.",
      +                          "properties": {
      +                            "character": {
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            },
      +                            "line": {
      +                              "minimum": 1,
      +                              "type": "integer"
      +                            }
      +                          },
      +                          "required": [
      +                            "line",
      +                            "character"
      +                          ],
      +                          "type": "object"
      +                        }
      +                      },
      +                      "required": [
      +                        "start"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "additionalProperties": true,
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null
      +                },
      +                "uri": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "uri",
      +                "inWorkspace"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "totalItems": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "items",
      +          "totalItems"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": true,
      +        "type": "object"
      +      }
      +    ]
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "result"
      +]
    • addedOutput schema / x-fastmcp-wrap-result
      Added value: +true
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose behavior. It does not mention what happens if the symbol has no type definition, whether the operation is read-only, or any side effects. The description is minimal.

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?

The description is a single, clear sentence with no unnecessary words. It is concise and front-loaded with the main action.

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?

Given the tool has three required parameters and no annotations, the description is too brief. It does not explain the return value (though output schema exists) or edge cases, making it incomplete for an agent to use reliably.

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

Parameters1/5

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

Schema description coverage is 0%, but the description adds no information about the parameters. It does not explain what each parameter means (e.g., file_path, line, character) or how they relate to the symbol position.

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 clearly states the action ('Navigate to the type definition') and the target (a symbol at a given position). It distinguishes itself from the sibling tool 'definition' by specifying 'type definition'.

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?

No guidance is provided on when to use this tool versus alternatives like 'definition', or any prerequisites or context. The description is purely functional with no usage hints.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonmmease/jons-mcp-java'

If you have feedback or need assistance with the MCP directory API, please join our Discord server